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

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

[elpa] externals-release/org f0d8041 2/3: ox: Clarify `org-export-to-(bu


From: ELPA Syncer
Subject: [elpa] externals-release/org f0d8041 2/3: ox: Clarify `org-export-to-(buffer|file)' docstrings
Date: Fri, 10 Dec 2021 04:57:48 -0500 (EST)

branch: externals-release/org
commit f0d8041f0c648b0db1d5c70b653863600aeb8c2d
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Commit: Nicolas Goaziou <mail@nicolasgoaziou.fr>

    ox: Clarify `org-export-to-(buffer|file)' docstrings
    
    * lisp/ox.el (org-export-to-buffer):
    (org-export-to-file): Fix example and add precision about the need for
    quoting lambda sexps.
---
 lisp/ox.el | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/lisp/ox.el b/lisp/ox.el
index b27ec56..80202b0 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -6373,7 +6373,11 @@ use it to set a major mode there, e.g,
     (&optional async subtreep visible-only body-only ext-plist)
     (interactive)
     (org-export-to-buffer \\='latex \"*Org LATEX Export*\"
-      async subtreep visible-only body-only ext-plist (lambda () 
(LaTeX-mode))))
+      async subtreep visible-only body-only ext-plist
+      #'LaTeX-mode))
+
+When expressed as an anonymous function, using `lambda',
+POST-PROCESS needs to be quoted.
 
 This function returns BUFFER."
   (declare (indent 2))
@@ -6436,7 +6440,10 @@ to send the output file through additional processing, 
e.g,
     (let ((outfile (org-export-output-file-name \".tex\" subtreep)))
       (org-export-to-file \\='latex outfile
         async subtreep visible-only body-only ext-plist
-        (lambda (file) (org-latex-compile file)))
+        #'org-latex-compile)))
+
+When expressed as an anonymous function, using `lambda',
+POST-PROCESS needs to be quoted.
 
 The function returns either a file name returned by POST-PROCESS,
 or FILE."



reply via email to

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