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.
This commit is contained in:
parent
8d189720b2
commit
f0d8041f0c
11
lisp/ox.el
11
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)
|
(&optional async subtreep visible-only body-only ext-plist)
|
||||||
(interactive)
|
(interactive)
|
||||||
(org-export-to-buffer \\='latex \"*Org LATEX Export*\"
|
(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."
|
This function returns BUFFER."
|
||||||
(declare (indent 2))
|
(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)))
|
(let ((outfile (org-export-output-file-name \".tex\" subtreep)))
|
||||||
(org-export-to-file \\='latex outfile
|
(org-export-to-file \\='latex outfile
|
||||||
async subtreep visible-only body-only ext-plist
|
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,
|
The function returns either a file name returned by POST-PROCESS,
|
||||||
or FILE."
|
or FILE."
|
||||||
|
|
Loading…
Reference in New Issue