unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Habert <Luc.Habert@ens.fr>
Subject: tex-mode
Date: Mon, 27 Oct 2003 13:32:51 +0100 (MET)	[thread overview]
Message-ID: <200310271232.h9RCWpf13046@quassia.ens.fr> (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...

                 reply	other threads:[~2003-10-27 12:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200310271232.h9RCWpf13046@quassia.ens.fr \
    --to=luc.habert@ens.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).