emacs-diffs
[Top][All Lists]
Advanced

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

master 463f635: Update texinfo.el following changes in 'tex-start-option


From: Eli Zaretskii
Subject: master 463f635: Update texinfo.el following changes in 'tex-start-options-string'
Date: Fri, 3 Apr 2020 08:14:08 -0400 (EDT)

branch: master
commit 463f635171683ae3b6907f156305f12fc58ca68e
Author: Ernest N. Mamikonyan <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Update texinfo.el following changes in 'tex-start-options-string'
    
    * lisp/textmodes/texinfo.el (texinfo-texi2dvi-options): New
    defcustom.
    (texinfo-tex-buffer): Take 'tex-start-options' from
    'texinfo-texi2dvi-options'.  (Bug#40001)
    
    * etc/NEWS: Mention the new option.
    
    Copyright-paperwork-exempt: yes
---
 etc/NEWS                  |  6 ++++++
 lisp/textmodes/texinfo.el | 13 ++++++++++---
 2 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/etc/NEWS b/etc/NEWS
index 7588b41..91729e4 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -241,6 +241,12 @@ case-insensitive matching of messages when the old 
behaviour is
 required, but the recommended solution is to use a correctly matching
 regexp instead.
 
+** Texinfo
+
+---
+*** New customizable option 'texinfo-texi2dvi-options'.
+This is used when invoking 'texi2dvi' from 'texinfo-tex-buffer'.
+
 
 * New Modes and Packages in Emacs 28.1
 
diff --git a/lisp/textmodes/texinfo.el b/lisp/textmodes/texinfo.el
index 438cb77..66378cb 100644
--- a/lisp/textmodes/texinfo.el
+++ b/lisp/textmodes/texinfo.el
@@ -958,6 +958,12 @@ to jump to the corresponding spot in the Texinfo source 
file."
   :type 'string
   :group 'texinfo)
 
+(defcustom texinfo-texi2dvi-options ""
+  "Command line options for `texinfo-texi2dvi-command'."
+  :type 'string
+  :group 'texinfo
+  :version "28.1")
+
 (defcustom texinfo-tex-command "tex"
   "Command used by `texinfo-tex-region' to run TeX on a region."
   :type 'string
@@ -1002,9 +1008,10 @@ The value of `texinfo-tex-trailer' is appended to the 
temporary file after the r
   (interactive)
   (require 'tex-mode)
   (let ((tex-command texinfo-texi2dvi-command)
-       ;; Disable tex-start-options-string.  texi2dvi would not
-       ;; understand anything specified here.
-       (tex-start-options-string ""))
+       (tex-start-options texinfo-texi2dvi-options)
+       ;; Disable tex-start-commands.  texi2dvi would not understand
+       ;; anything specified here.
+        (tex-start-commands ""))
     (tex-buffer)))
 
 (defun texinfo-texindex ()



reply via email to

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