1
0
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:
Ihor Radchenko 2023-03-18 12:33:15 +01:00
parent 4cad6c8eaf
commit 3b9ffc6868
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B

View File

@ -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.