[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tex-mode
From: |
Luc Habert |
Subject: |
tex-mode |
Date: |
Mon, 27 Oct 2003 13:32:51 +0100 (MET) |
In GNU Emacs 21.2.1 (sparc-sun-solaris2.7, X toolkit, Xaw3d scroll bars)
of 2002-10-05 on clipper
configured using `configure --prefix=/usr/local/util/packages/emacs-21.2'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: fr
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
locale-coding-system: iso-latin-1
default-enable-multibyte-characters: t
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
Hi.
I am reporting two bugs in tex-mode.el that have appeared with emacs 21.
First, visit a new .tex file (say `foo.tex'), type some text, do not save
and type `C-c C-f' (and eventually save when prompted to). Then emacs
attempts to run tex upon `foo.tex.tex'.
This is due to the fact that `tex-file' calls `save-some-buffers' only
after calling `tex-main-file', so that `foo.tex' does not exist yet when
`tex-main-file' is called. Now, `tex-main-file' ends with :
(if (file-exists-p file) file (concat file ".tex"))
... A fix would be to call `save-some-buffers' before `tex-main-file'.
Second (only in latex-mode), put point at the end of the buffer and do `C-c
C-o'. Then emacs immediately complains that :
latex-indent: Wrong type argument: integerp, nil
before even prompting for the environment to insert. I found out that
removing the first `\n' in the definition of the skeleton in
`tex-latex-block' solves the problem. Note that this is not a purely
academic problem : I use `C-c C-o' to insert the `document' environment,
and I often do it at the end of the file...
[Prev in Thread] |
Current Thread |
[Next in Thread] |