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

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

[elpa] externals/org-translate 80a95ac: Use cl-pushnew instead of push f


From: Eric Abrahamsen
Subject: [elpa] externals/org-translate 80a95ac: Use cl-pushnew instead of push for org-export-filter-body-functions
Date: Thu, 29 Jul 2021 19:34:58 -0400 (EDT)

branch: externals/org-translate
commit 80a95ac6fa93a73383861f55969bd5abffc898e3
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>

    Use cl-pushnew instead of push for org-export-filter-body-functions
    
    And require 'cl-lib
    
    * org-translate.el (org-translate-mode): Only push if it's not there
    already.
---
 org-translate.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/org-translate.el b/org-translate.el
index 1b807e8..71a587c 100644
--- a/org-translate.el
+++ b/org-translate.el
@@ -137,6 +137,7 @@
 (require 'bookmark)
 (require 'ox)
 (require 'org-id)
+(require 'cl-lib)
 
 (defgroup org-translate nil
   "Customizations for the org-translate library."
@@ -365,7 +366,7 @@ By default, just remove it."
                ogt-source-segment-overlay (make-overlay (point) (point)))
        (error (org-translate-mode -1)
               (signal (car err) (cdr err))))
-      (push #'ogt-export-remove-segmenters org-export-filter-body-functions)
+      (cl-pushnew #'ogt-export-remove-segmenters 
org-export-filter-body-functions)
       (overlay-put ogt-source-segment-overlay
                   'face 'highlight)
       ;; Doesn't actually delete it, just makes it "inactive" until we



reply via email to

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