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

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

[elpa] externals/org 04e5d08 2/4: Merge branch 'km/from-emacs-master'


From: ELPA Syncer
Subject: [elpa] externals/org 04e5d08 2/4: Merge branch 'km/from-emacs-master'
Date: Tue, 9 Mar 2021 23:57:12 -0500 (EST)

branch: externals/org
commit 04e5d08faf5f18af54b947ef615d8d841f3f2ec1
Merge: 37749c1 2da3b0e
Author: Kyle Meyer <kyle@kyleam.com>
Commit: Kyle Meyer <kyle@kyleam.com>

    Merge branch 'km/from-emacs-master'
---
 lisp/ox-texinfo.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el
index 78d58be..6e8d0d6 100644
--- a/lisp/ox-texinfo.el
+++ b/lisp/ox-texinfo.el
@@ -1629,17 +1629,16 @@ Return output file's name."
 
 (defun org-texinfo-export-to-texinfo-batch ()
   "Export Org file INFILE to Texinfo file OUTFILE, in batch mode.
+Overwrites existing output file.
 Usage: emacs -batch -f org-texinfo-export-to-texinfo-batch INFILE OUTFILE"
   (or noninteractive (user-error "Batch mode use only"))
   (let ((infile (pop command-line-args-left))
        (outfile (pop command-line-args-left))
-       (org-export-coding-system org-texinfo-coding-system))
+       (org-export-coding-system org-texinfo-coding-system)
+        (make-backup-files nil))
     (unless (file-readable-p infile)
       (message "File `%s' not readable" infile)
       (kill-emacs 1))
-    (when (file-exists-p outfile)
-      (message "File `%s' already exists" outfile)
-      (kill-emacs 1))
     (with-temp-buffer
       (insert-file-contents infile)
       (org-export-to-file 'texinfo outfile))))



reply via email to

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