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

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

Problem with compilation of (La)TeX files in emacs 22


From: Thomas Fanghaenel
Subject: Problem with compilation of (La)TeX files in emacs 22
Date: Mon, 26 Feb 2007 21:02:23 -0800

I'm trying to compile (La)TeX files from within Emacs, by using
tex-file.  The shell I'm using is bash 3.2.5 (Cygwin), and the only
variable I have changed from the default is tex-command (which contains
"pdflatex").

If there is no *tex-shell* buffer open, the compilation via C-c C-f
works fine for the first time.  However, subsequent C-c C-f's will not
cause pdflatex to be invoked.  The only thing that happens is that the
shell prompt gets duplicated in the last line of *tex-shell*.  Please
refer to the following output:

 [20:11 address@hidden foo] pdflatex \\nonstopmode\\input foo.tex
 This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5)

     [... pdflatex output omitted ...]

 Output written on foo.pdf (2 pages, 79161 bytes).
 Transcript written on foo.log.
 [20:11 address@hidden foo] pdflatex \\nonstopmode\\input foo.tex

 [20:11 address@hidden foo] [20:11 address@hidden foo]

Digging a little deeper into this problem, it seems to be caused by
tex-send-command in tex-mode.el.  Somehow, comint-send-input appends two
line feeds at the end of the command that is sent to *tex-shell* (I can
see that in the hex dump of the shell buffer content).

Changing (comint-send-input) to (comint-send-input t) in
tex-send-command seems to fix the problem for me.  Not sure if that's a
correct fix, or just avoiding the symptom...


In GNU Emacs 22.0.94.1 (i386-mingw-nt5.1.2600)
of 2007-02-24 on LENNART-69DE564
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -Ic:/g/include'

Important settings:
 value of $LC_ALL: nil
 value of $LC_COLLATE: nil
 value of $LC_CTYPE: nil
 value of $LC_MESSAGES: nil
 value of $LC_MONETARY: nil
 value of $LC_NUMERIC: nil
 value of $LC_TIME: nil
 value of $LANG: ENU
 locale-coding-system: cp1252
 default-enable-multibyte-characters: t

Major mode: LaTeX

Minor modes in effect:
 shell-dirtrack-mode: t
 show-paren-mode: t
 encoded-kbd-mode: t
 tooltip-mode: t
 mouse-wheel-mode: t
 file-name-shadow-mode: t
 global-font-lock-mode: t
 font-lock-mode: t
 unify-8859-on-encoding-mode: t
 utf-translate-cjk-mode: t
 auto-compression-mode: t
 line-number-mode: t
 transient-mark-mode: t

Recent input:
C-x C-f g u t <tab> <C-backspace> <C-backspace> <C-backspace>
<C-backspace> <C-backspace> <C-backspace> <C-backspace>
h o <tab> t h <tab> c m <tab> <C-backspace> d o c u
<tab> g u t <tab> r e v <tab> . t e <tab> <return>
C-c C-f C-c C-f M-x r e p o <tab> r t <tab> <retur
n>

Recent messages:
For information about the GNU Project and its goals, type C-h C-p. [2 times]
Loading latexenc...done
Loading tex-mode...
Loading regexp-opt...done
Loading tex-mode...done
(No files need saving)
Loading ansi-color...done
(No files need saving)
Making completion list...
Loading emacsbug...done




reply via email to

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