emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org-transclusion e1c68d113d 08/18: Use org-export-befor


From: ELPA Syncer
Subject: [elpa] externals/org-transclusion e1c68d113d 08/18: Use org-export-before-processing-functions if available
Date: Sun, 21 Jan 2024 15:58:42 -0500 (EST)

branch: externals/org-transclusion
commit e1c68d113d284b8c1f48bcc6f504f3820e883721
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    Use org-export-before-processing-functions if available
    
    This hook variable was renamed in [1: fe90cab95].
    
    1: 2022-09-06 fe90cab9564bd6fa08c9abe0882e0e06cc5626f9
       lisp/ox.el: Rename abnormal hook names to end with "-functions"
---
 org-transclusion.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/org-transclusion.el b/org-transclusion.el
index 9015a851ee..1dc30cafe7 100644
--- a/org-transclusion.el
+++ b/org-transclusion.el
@@ -312,7 +312,9 @@ and variables."
   (add-hook 'after-save-hook #'org-transclusion-after-save-buffer nil t)
   (add-hook 'kill-buffer-hook #'org-transclusion-before-kill nil t)
   (add-hook 'kill-emacs-hook #'org-transclusion-before-kill nil t)
-  (add-hook 'org-export-before-processing-hook
+  (add-hook (if (version< org-version "9.6")
+                'org-export-before-processing-hook
+              'org-export-before-processing-functions)
             #'org-transclusion-inhibit-read-only nil t)
   (org-transclusion-yank-excluded-properties-set)
   (org-transclusion-load-extensions-maybe))
@@ -326,7 +328,9 @@ This function also removes all the transclusions in the 
current buffer."
   (remove-hook 'after-save-hook #'org-transclusion-after-save-buffer t)
   (remove-hook 'kill-buffer-hook #'org-transclusion-before-kill t)
   (remove-hook 'kill-emacs-hook #'org-transclusion-before-kill t)
-  (remove-hook 'org-export-before-processing-hook
+  (remove-hook (if (version< org-version "9.6")
+                   'org-export-before-processing-hook
+                 'org-export-before-processing-functions)
                #'org-transclusion-inhibit-read-only t)
   (org-transclusion-yank-excluded-properties-remove))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]