GNU bug report logs - #34979
24.5; indent .tex broken

Previous Next

Package: emacs;

Reported by: Thomas Bucaioni <thomas.bucaioni <at> gmail.com>

Date: Sun, 24 Mar 2019 18:44:01 UTC

Severity: minor

Tags: moreinfo

Found in version 24.5

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: Thomas Bucaioni <thomas.bucaioni <at> gmail.com>
Cc: 34979 <at> debbugs.gnu.org
Subject: bug#34979: 24.5; indent .tex broken
Date: Sat, 06 Apr 2019 23:34:36 +0100
[Please keep the bug address in the To or Cc header.]

Thomas Bucaioni <thomas.bucaioni <at> gmail.com> writes:

> As the file was a .tex, I expected Emacs to switch to mark-up mode as
> it does for .c files.

Sorry, I don't understand what you mean, can you please elaborate?
Which mark-up mode are you referring to?  How does it relate to *.c
files?

By default, Emacs opens *.tex files in tex-mode (see auto-mode-alist).
This is a generic parent mode which tries to guess which specialised
submode to enable (see tex-guess-mode).  Evaluating the following, for
example, should place you in a latex-mode buffer:

  (find-file (make-temp-file "my-" nil ".tex"))

If tex-guess-mode guesses incorrectly, there are several other ways to
specify the desired major mode, e.g. via an auto-mode-alist entry,
file/directory variable, hook, or otherwise (including the obvious
M-x latex-mode RET).

> Le ven. 5 avr. 2019 à 13:36, Basil L. Contovounesios <contovob <at> tcd.ie> a écrit :
>
>  Thomas Bucaioni <thomas.bucaioni <at> gmail.com> writes:
>
>  > Hello,
>  > Someone found a fix on StackExchange :
>  > https://emacs.stackexchange.com/questions/48553/indentation-broken-with-all-inputfiles-tex
>  >
>  > Le mer. 27 mars 2019 à 13:27, Glenn Morris <rgm <at> gnu.org> a écrit :
>  >
>  >  Thomas Bucaioni wrote:
>  >
>  >  > When pressing the TAB key, the indentation doesn't happen. Even, the
>  >  > text is translated as in a Word or LibreOffice document.
>  >
>  >  Please give a minimal complete example starting from emacs -Q.
>  >
>  >  > In GNU Emacs 24.5.1 (i686-pc-linux-gnu, GTK+ Version 3.22.11)
>  >
>  >  Please try the current release (26.1 at time of writing).
>
>  If the problem is that you were using the wrong major mode, could you
>  please elaborate on what the bug is?

-- 
Basil




This bug report was last modified 4 years and 351 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.