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

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

[elpa] externals/org 3b9ffc6868: org-latex-export-to-latex: Use nil arg


From: ELPA Syncer
Subject: [elpa] externals/org 3b9ffc6868: org-latex-export-to-latex: Use nil arg for `write-region'
Date: Sat, 18 Mar 2023 07:59:15 -0400 (EDT)

branch: externals/org
commit 3b9ffc6868d9fadff374eca4206c66fd8d71b1a9
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    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.
---
 lisp/ox.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/ox.el b/lisp/ox.el
index 7e4042bb8f..f9fc9a99b4 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -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.



reply via email to

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