mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-12-04 08:47:03 +00:00
org-latex-export-to-latex: Use nil arg for `write-region'
* lisp/ox.el: Use BEG=nil instead of explicit arguments to `write-region'. This simplifies the code.
This commit is contained in:
parent
4cad6c8eaf
commit
3b9ffc6868
@ -6813,14 +6813,14 @@ or FILE."
|
||||
(with-temp-buffer
|
||||
(insert output)
|
||||
(let ((coding-system-for-write ',encoding))
|
||||
(write-region (point-min) (point-max) ,file)))
|
||||
(write-region nil nil ,file)))
|
||||
(or (ignore-errors (funcall ',post-process ,file)) ,file)))
|
||||
(let ((output (org-export-as
|
||||
backend subtreep visible-only body-only ext-plist)))
|
||||
(with-temp-buffer
|
||||
(insert output)
|
||||
(let ((coding-system-for-write encoding))
|
||||
(write-region (point-min) (point-max) file)))
|
||||
(write-region nil nil file)))
|
||||
(when (and (org-export--copy-to-kill-ring-p) (org-string-nw-p output))
|
||||
(org-kill-new output))
|
||||
;; Get proper return value.
|
||||
|
Loading…
Reference in New Issue
Block a user