lisp/ox.el: Rename abnormal hook names to end with "-functions"
* lisp/ox.el (org-export-before-processing-functions): (org-export-before-parsing-functions): Rename `org-export-before-processing-hook' and `org-export-before-parsing-hook' to use "-functions" suffix as these hooks are abnormal hooks and we need not to use "-hook" suffix in abnormal hooks. * lisp/org-compat.el (org-export-before-processing-hook): (org-export-before-parsing-hook): Declare obsolete. * lisp/org-attach.el (org-export-before-parsing-functions): Use the new hook name.
This commit is contained in:
parent
e73c5b7d0d
commit
fe90cab956
|
@ -792,7 +792,7 @@ Idea taken from `gnus-dired-attach'."
|
|||
|
||||
|
||||
(add-hook 'org-archive-hook 'org-attach-archive-delete-maybe)
|
||||
(add-hook 'org-export-before-parsing-hook 'org-attach-expand-links)
|
||||
(add-hook 'org-export-before-parsing-functions 'org-attach-expand-links)
|
||||
|
||||
(provide 'org-attach)
|
||||
|
||||
|
|
|
@ -331,6 +331,10 @@ Counting starts at 1."
|
|||
(define-obsolete-function-alias 'org-string-match-p 'string-match-p "9.0")
|
||||
|
||||
;;;; Functions and variables from previous releases now obsolete.
|
||||
(define-obsolete-variable-alias 'org-export-before-processing-hook
|
||||
'org-export-before-processing-functions "Org 9.6")
|
||||
(define-obsolete-variable-alias 'org-export-before-parsing-hook
|
||||
'org-export-before-parsing-functions "Org 9.6")
|
||||
(define-obsolete-function-alias 'org-element-remove-indentation
|
||||
'org-remove-indentation "9.0")
|
||||
(define-obsolete-variable-alias 'org-latex-create-formula-image-program
|
||||
|
|
|
@ -2088,8 +2088,8 @@ keywords before output."
|
|||
|
||||
;;;; Hooks
|
||||
|
||||
(defvar org-export-before-processing-hook nil
|
||||
"Hook run at the beginning of the export process.
|
||||
(defvar org-export-before-processing-functions nil
|
||||
"Abnormal hook run at the beginning of the export process.
|
||||
|
||||
This is run before include keywords and macros are expanded and
|
||||
Babel code blocks executed, on a copy of the original buffer
|
||||
|
@ -2099,8 +2099,8 @@ is at the beginning of the buffer.
|
|||
Every function in this hook will be called with one argument: the
|
||||
back-end currently used, as a symbol.")
|
||||
|
||||
(defvar org-export-before-parsing-hook nil
|
||||
"Hook run before parsing an export buffer.
|
||||
(defvar org-export-before-parsing-functions nil
|
||||
"Abnormal hook run before parsing an export buffer.
|
||||
|
||||
This is run after include keywords and macros have been expanded
|
||||
and Babel code blocks executed, on a copy of the original buffer
|
||||
|
|
Loading…
Reference in New Issue