emacs-pretest-bug
[Top][All Lists]
Advanced

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

stray char in tex-shell


From: walter
Subject: stray char in tex-shell
Date: Tue, 10 Aug 2004 12:07:36 +0200 (CEST)

The TeX shell seems to get a stray char after each command.  Here is a
sample session.

First run (C-c C-f):

  (doc.tex (/usr/local/share/texmf/tex/latex/base/article.cls
  Document Class: article 1999/09/10 v1.4a Standard LaTeX document class
  (/usr/local/share/texmf/tex/latex/base/size10.clo)) (tex2page.tex)
  (/usr/local/share/texmf/tex/latex/graphics/graphicx.sty
  (/usr/local/share/texmf/tex/latex/graphics/keyval.sty)
  (/usr/local/share/texmf/tex/latex/graphics/graphics.sty
  (/usr/local/share/texmf/tex/latex/graphics/trig.sty)
  (/usr/local/share/texmf/tex/latex/config/graphics.cfg)
  (/usr/local/share/texmf/tex/latex/graphics/dvips.def))) (doc.aux)
  Underfull \hbox (badness 10000) in paragraph at lines 83--94

  <me.eps> (/usr/local/share/texmf/tex/latex/base/omscmr.fd) [1] [2] [3] [4]
  [5] (doc.aux) )
  (see the transcript file for additional information)
  Output written on doc.dvi (5 pages, 14496 bytes).
  Transcript written on doc.log.

Everything is alright, but in the second run the zsh corrects the
command for me:

  (2)hyde502% latex \\nonstopmode\\input doc.tex
  ÿlatex \\nonstopmode\\input doc.tex
  zsh: correct 'ÿlatex' to 'latex' [nyae]? y
  y

  This is TeX, Version 3.14159 (Web2C 7.3.1)
  LaTeX2e <1999/12/01> patch level 1

  (doc.tex (/usr/local/share/texmf/tex/latex/base/article.cls
  Document Class: article 1999/09/10 v1.4a Standard LaTeX document class
  (/usr/local/share/texmf/tex/latex/base/size10.clo)) (tex2page.tex)
  (/usr/local/share/texmf/tex/latex/graphics/graphicx.sty
  (/usr/local/share/texmf/tex/latex/graphics/keyval.sty)
  (/usr/local/share/texmf/tex/latex/graphics/graphics.sty
  (/usr/local/share/texmf/tex/latex/graphics/trig.sty)
  (/usr/local/share/texmf/tex/latex/config/graphics.cfg)
  (/usr/local/share/texmf/tex/latex/graphics/dvips.def))) (doc.aux)
  Underfull \hbox (badness 10000) in paragraph at lines 83--94

  <me.eps> (/usr/local/share/texmf/tex/latex/base/omscmr.fd) [1] [2] [3] [4]
  [5] (doc.aux) )
  (see the transcript file for additional information)
  Output written on doc.dvi (5 pages, 14496 bytes).
  Transcript written on doc.log.

Please note at this point the 'y' with umlaut that appears in front of
the "latex" command.  From now on, every command the TeX shell
executes will have that stray character prepended.

Even switching shell doesn't help:

  (2)hyde502% 
  (2)hyde502% env -i sh
  env -i sh
  $ latex \\nonstopmode\\input doc.tex
  ^\latex \\nonstopmode\\input doc.tex
  latex: not found
  $ 

Here I switched to the TeX shell buffer and manually run the bourne
shell without environment ("env -i sh").  The effect is that "latex"
is no longer in the search path, but as you can see there is a '^\'
preceeding the command which shouldn't be there.  That might be the
equivalent of the y/umlaut I see under zsh.

I couldn't figure out what actually goes wrong.  I traced a couple of
functions but they all seem to get the latex command line right all
the way down to the shell interaction, so I suspect it might be a
character "pushed in the line" at the end of each interaction.  In
fact the very first command doesn't suffer from this problem.

The TeX shell session and the following data were produced under "emacs -q".


In GNU Emacs 21.3.50.1 (i386-unknown-freebsd5.2.1, X toolkit, Xaw3d scroll bars)
 of 2004-04-21 on hyde.home.loc
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: en_GB.ISO8859-15
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_GB.ISO8859-15
  locale-coding-system: iso-latin-9
  default-enable-multibyte-characters: t

Major mode: Apropos

Minor modes in effect:
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  unify-8859-on-encoding-mode: t
  line-number-mode: t

Recent input:
h <return> C-x o C-c C-f C-x o <return> C-x o C-x o 
M-< M-> C-x C-x M-w M-x e m a c s - r e <tab> <backspace> 
<backspace> d <backspace> e r <M-backspace> b u <tab> 
<backspace> <backspace> <tab> <M-backspace> b u g <tab> 
<M-backspace> a p r o p o C-g C-g C-h C-a C-h a b u 
g <return> <help-echo> <help-echo> <down-mouse-1> <mouse-1> 
C-s r e p o r C-s C-s C-s C-s C-x o C-x o M-x r e p 
o r t - e m a c s - b u g <tab> <return>

Recent messages:
$ 

$ "
Making completion list...
Loading help-mode...done
Quit [2 times]
Loading apropos...done
Type C-x 4 b RET to restore the other window.  C-M-v to scroll the help.
Mark saved where search started
Loading emacsbug...done




reply via email to

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