From: Ernest N. Mamikonyan Date: Fri, 13 Mar 2020 14:37:17 +0000 (-0400) Subject: Update texinfo.el following changes in 'tex-start-options-string' X-Git-Tag: emacs-28.0.90~7668 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=463f635171683ae3b6907f156305f12fc58ca68e;p=emacs.git 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 --- diff --git a/etc/NEWS b/etc/NEWS index 7588b418a40..91729e4aaec 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 438cb7798a1..66378cb3468 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 ()