all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ernest N. Mamikonyan" <Ernest.Mamikonyan@sig.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 40001@debbugs.gnu.org
Subject: bug#40001: tex-start-options-string not updated in texinfo.el
Date: Fri, 13 Mar 2020 10:37:17 -0400	[thread overview]
Message-ID: <y5ev9n8723m.fsf@msx.bala.susq.com> (raw)
In-Reply-To: <83h7ys8iod.fsf@gnu.org>

On Fri, Mar 13 2020, Eli Zaretskii wrote:

>> From: "Ernest N. Mamikonyan" <Ernest.Mamikonyan@sig.com>
>> Date: Mon, 09 Mar 2020 13:26:44 -0400
>> 
>> It seems that 'tex-start-options-string' was not updated to
>> 'tex-start-options' in texinfo.el after the change in version 22.
>> 
>> diff --git a/lisp/textmodes/texinfo.el b/lisp/textmodes/texinfo.el
>> index 438cb7798a..3898a3ba04 100644
>> --- a/lisp/textmodes/texinfo.el
>> +++ b/lisp/textmodes/texinfo.el
>> @@ -1002,9 +1002,9 @@ texinfo-tex-buffer
>>    (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 ""))
>> +	;; Disable tex-start-options.  texi2dvi would not understand
>> +	;; anything specified here.
>> +	(tex-start-options ""))
>>      (tex-buffer)))
>
> Should we also bind tex-start-commands to some value (an empty
> string)?  If not, why not?

Yes, you're right. Since texi2dvi doesn't take initial commands like
TeX, why not get rid of tex-start-commands but allow the user to supply
command-line options:

diff --git a/lisp/textmodes/texinfo.el b/lisp/textmodes/texinfo.el
index 438cb7798a..a687a27e36 100644
--- a/lisp/textmodes/texinfo.el
+++ b/lisp/textmodes/texinfo.el
@@ -958,6 +958,11 @@ texinfo-texi2dvi-command
   :type 'string
   :group 'texinfo)
 
+(defcustom texinfo-texi2dvi-options ""
+  "Command line options for `texinfo-texi2dvi-command'."
+  :type 'string
+  :group 'texinfo)
+
 (defcustom texinfo-tex-command "tex"
   "Command used by `texinfo-tex-region' to run TeX on a region."
   :type 'string
@@ -1002,9 +1007,10 @@ texinfo-tex-buffer
   (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 ()


-- 
Ernie





  reply	other threads:[~2020-03-13 14:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-09 17:26 bug#40001: tex-start-options-string not updated in texinfo.el Ernest N. Mamikonyan
2020-03-13 13:53 ` Eli Zaretskii
2020-03-13 14:37   ` Ernest N. Mamikonyan [this message]
2020-03-30 19:25   ` Ernest N. Mamikonyan
2020-03-31 14:10     ` Eli Zaretskii
2020-04-03 12:14       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=y5ev9n8723m.fsf@msx.bala.susq.com \
    --to=ernest.mamikonyan@sig.com \
    --cc=40001@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.