* tex-mode
@ 2003-10-27 12:32 Luc Habert
0 siblings, 0 replies; only message in thread
From: Luc Habert @ 2003-10-27 12:32 UTC (permalink / raw)
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...
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-10-27 12:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-27 12:32 tex-mode Luc Habert
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).