* Re: TeX called improperly
@ 2002-04-20 17:34 Karl Berry
2002-04-22 7:46 ` Richard Stallman
0 siblings, 1 reply; 6+ messages in thread
From: Karl Berry @ 2002-04-20 17:34 UTC (permalink / raw)
Cc: steve, emacs-devel
What do you think is the right solution, the right way to handle
tex-start-options-string?
Just pass whatever is in the variable to tex?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TeX called improperly
2002-04-20 17:34 TeX called improperly Karl Berry
@ 2002-04-22 7:46 ` Richard Stallman
0 siblings, 0 replies; 6+ messages in thread
From: Richard Stallman @ 2002-04-22 7:46 UTC (permalink / raw)
Cc: steve, emacs-devel
What do you think is the right solution, the right way to handle
tex-start-options-string?
Just pass whatever is in the variable to tex?
That won't work.
Perhaps Emacs is adding its own quotes back to the command, so that the
local var could be set to a value like "\\nonstopmode\\input foo" and
this would get passed on the command line as '\nonstopmode\input foo'.
Yes, that is the reason. That is the default case; if it does not
work, that is a worse problem than we have now.
Maybe we could have two variables, tex-start-options-string
and tex-start-commands, and use the latter for TeX commands
like \nonstopmode.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TeX called improperly
@ 2002-04-20 17:42 Karl Berry
0 siblings, 0 replies; 6+ messages in thread
From: Karl Berry @ 2002-04-20 17:42 UTC (permalink / raw)
Cc: steve, emacs-devel
What do you think is the right solution, the right way to handle
tex-start-options-string?
To expand a little ...
Looking at the original bug report again, I see the problem was the
quotes, right? So Emacs should strip off the quotes before sending it
to tex, so the multiple options come through as multiple options.
I'm surprised that this does not happen at a lower level actually, since
I thought all those quotes mean is that the Local Variables: value is a
string constant.
Perhaps Emacs is adding its own quotes back to the command, so that the
local var could be set to a value like "\\nonstopmode\\input foo" and
this would get passed on the command line as '\nonstopmode\input foo'.
Unfortunately that won't work in the presence of multiple options, so
all I can suggest is for Emacs not to be so smart, and just pass the
value it is given. It'll have to be up to the user to put in the right
number of backslashes (four, I guess).
Or if there is too problematic for compatibility, I guess another
variable could be introduced. (tex-start-options-no-implicit-quoting)
Hope this helps,
k
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TeX called improperly
@ 2002-04-19 20:01 Karl Berry
2002-04-20 17:27 ` Richard Stallman
0 siblings, 1 reply; 6+ messages in thread
From: Karl Berry @ 2002-04-19 20:01 UTC (permalink / raw)
Cc: steve, emacs-devel
the command syntax TeX accepts.
The standard Web2c tex and other binaries have accepted a number of
command line options for a while; --help, --version, and others.
Although I've never used miktex, I'm not surprised that it accepts such
options also.
So, the command line to tex can include both regular Unix-style options
and TeX-style stuff such as \nonstopmode.
It (gracefully, I must say) ignores the arguments if they are quoted,
which is how Emacs was delivering them on the command line.
I'm surprised that a quoted argument would be ignored completely. Seems
like it would either be one (very strange) option, or even stranger
filename. But if that's what miktex does, it presumably knows what it's
doing :).
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <auto-000037014791@dc-mx05.cluster1.charter.net>]
end of thread, other threads:[~2002-04-22 7:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-20 17:34 TeX called improperly Karl Berry
2002-04-22 7:46 ` Richard Stallman
-- strict thread matches above, loose matches on Subject: below --
2002-04-20 17:42 Karl Berry
2002-04-19 20:01 Karl Berry
2002-04-20 17:27 ` Richard Stallman
[not found] <auto-000037014791@dc-mx05.cluster1.charter.net>
[not found] ` <200204162017.g3GKHwc24346@aztec.santafe.edu>
[not found] ` <auto-000001251224@mx06.cluster1.charter.net>
2002-04-19 18:43 ` Richard Stallman
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).