3b9ffc6868d9fadff374eca4206c66fd8d71b1a9 — Ihor Radchenko 2 months ago 4cad6c8
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.
1 files changed, 2 insertions(+), 2 deletions(-)

M lisp/ox.el
M lisp/ox.el => lisp/ox.el +2 -2
@@ 6813,14 6813,14 @@ or FILE."
		 (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)))
            (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.