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

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

[elpa] externals/org 233ad88651 1/2: org-export: Do not use `always' not


From: ELPA Syncer
Subject: [elpa] externals/org 233ad88651 1/2: org-export: Do not use `always' not available in Emacs <28
Date: Sat, 8 Oct 2022 01:57:55 -0400 (EDT)

branch: externals/org
commit 233ad886511850010a621129ca63facd0f8a6449
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>

    org-export: Do not use `always' not available in Emacs <28
    
    * lisp/ox.el (org-export--generate-copy-script): Use explicit `lambda'
    instead of `always', which is not yet available in all the supported
    Emacs versions.
    
    Reported-by: Kyle Meyer <kyle@kyleam.com>
---
 lisp/ox.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ox.el b/lisp/ox.el
index 95268d3e38..e059983fb4 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -2693,7 +2693,7 @@ The function assumes BUFFER's major mode is `org-mode'."
            (overlay-put (make-overlay start end) 'invisible invis))
           ;; Never write the buffer copy to disk, despite
           ;; `buffer-file-name' not being nil.
-          (setq write-contents-functions (list #'always)))))))
+          (setq write-contents-functions (list (lambda (&rest _) t))))))))
 
 (defun org-export--delete-comment-trees ()
   "Delete commented trees and commented inlinetasks in the buffer.



reply via email to

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