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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34979 in the body.
You can then email your comments to 34979 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#34979; Package emacs. (Sun, 24 Mar 2019 18:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thomas Bucaioni <thomas.bucaioni <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 24 Mar 2019 18:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Thomas Bucaioni <thomas.bucaioni <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.5; indent .tex broken
Date: Sun, 24 Mar 2019 18:04:10 +0100
[Message part 1 (text/plain, inline)]
Hello,

When pressing the TAB key, the indentation doesn't happen. Even, the
text is translated as in a Word or LibreOffice document.

See also :
http://lists.gnu.org/archive/html/help-gnu-emacs/2012-09/msg00222.html



In GNU Emacs 24.5.1 (i686-pc-linux-gnu, GTK+ Version 3.22.11)
 of 2017-09-12 on x86-grnet-01, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11902000
System Description: Debian GNU/Linux 9.8 (stretch)

Configured using:
 `configure --build i686-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
 --without-gnutls --build i686-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
 --without-gnutls --with-x=yes --with-x-toolkit=gtk3
 --with-toolkit-scroll-bars 'CFLAGS=-g -O2
 -fdebug-prefix-map=/build/emacs24-f5SXzK/emacs24-24.5+1=.
-fstack-protector-strong
 -Wformat -Werror=format-security -Wall -fno-PIE' 'CPPFLAGS=-Wdate-time
 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-z,relro -no-pie''

Important settings:
  value of $LANG: fr_FR.UTF-8
  locale-coding-system: utf-8-unix

Major mode: TeX

Minor modes in effect:
  shell-dirtrack-mode: t
  show-paren-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
Saving file /home/user/Documents/M2MPA/SolEx1.tex...
Wrote /home/user/Documents/M2MPA/SolEx1.tex
Indenting region...done
Saving file /home/user/Documents/M2MPA/SolEx1.tex...
Wrote /home/user/Documents/M2MPA/SolEx1.tex
Indenting region...done
Quit
Auto-saving...done
byte-code: Beginning of buffer
Auto-saving...done

Load-path shadows:
/usr/share/emacs/24.5/site-lisp/debian-startup hides
/usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs24/site-lisp/latex-cjk-thai/thai-word hides
/usr/share/emacs/24.5/lisp/language/thai-word

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util help-fns mail-prsvr mail-utils misearch multi-isearch tex-mode
compile shell pcomplete comint ansi-color ring latexenc edmacro kmacro
cl-loaddefs cl-lib paren cus-start cus-load time-date tooltip electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 8 130097 8740)
 (symbols 24 20052 0)
 (miscs 20 144 407)
 (strings 16 16742 5371)
 (string-bytes 1 447182)
 (vectors 8 14281)
 (vector-slots 4 834121 14072)
 (floats 8 74 731)
 (intervals 28 7726 16)
 (buffers 512 17))
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34979; Package emacs. (Wed, 27 Mar 2019 12:28:02 GMT) Full text and rfc822 format available.

Message #8 received at 34979 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Thomas Bucaioni <thomas.bucaioni <at> gmail.com>
Cc: 34979 <at> debbugs.gnu.org
Subject: Re: bug#34979: 24.5; indent .tex broken
Date: Wed, 27 Mar 2019 08:27:36 -0400
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).




Added tag(s) moreinfo. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 02 Apr 2019 01:09:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34979; Package emacs. (Wed, 03 Apr 2019 18:52:01 GMT) Full text and rfc822 format available.

Message #13 received at 34979 <at> debbugs.gnu.org (full text, mbox):

From: Thomas Bucaioni <thomas.bucaioni <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>, 34979 <at> debbugs.gnu.org
Subject: Re: bug#34979: 24.5; indent .tex broken
Date: Sat, 30 Mar 2019 19:31:07 +0100
[Message part 1 (text/plain, inline)]
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).
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34979; Package emacs. (Wed, 03 Apr 2019 18:52:02 GMT) Full text and rfc822 format available.

Message #16 received at 34979 <at> debbugs.gnu.org (full text, mbox):

From: Thomas Bucaioni <thomas.bucaioni <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>, 34979 <at> debbugs.gnu.org
Subject: Re: bug#34979: 24.5; indent .tex broken
Date: Sun, 31 Mar 2019 12:16:46 +0200
[Message part 1 (text/plain, inline)]
By the way, \mathbb{R}^{*[*0,\infty)} breaks the indentation too on emacs
25. It's the probabilists notation... With \mathopen and \mathclose, it's
fixed :
\mathbb{R}^{\mathopen{[}0,\infty\mathclose{)}}

How do pass to emacs26, apt-get install emacs26 answers 'not found' ?

Le sam. 30 mars 2019 à 19:31, Thomas Bucaioni <thomas.bucaioni <at> gmail.com> a
écrit :

> 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).
>>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34979; Package emacs. (Wed, 03 Apr 2019 18:52:02 GMT) Full text and rfc822 format available.

Message #19 received at 34979 <at> debbugs.gnu.org (full text, mbox):

From: Thomas Bucaioni <thomas.bucaioni <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>, 34979 <at> debbugs.gnu.org
Subject: Re: bug#34979: 24.5; indent .tex broken
Date: Sun, 31 Mar 2019 13:43:04 +0200
[Message part 1 (text/plain, inline)]
This breaks the indentation too :

\newcommand{\intervalleof}[2]{
  {\left.\vphantom{#1#2}\right]}
           {#1}
           \mathpunct{};\mathpunct{}
                     {#2}
                     {\left.\vphantom{#1#2}\right]}
                       }


Le dim. 31 mars 2019 à 12:16, Thomas Bucaioni <thomas.bucaioni <at> gmail.com> a
écrit :

> By the way, \mathbb{R}^{*[*0,\infty)} breaks the indentation too on emacs
> 25. It's the probabilists notation... With \mathopen and \mathclose, it's
> fixed :
> \mathbb{R}^{\mathopen{[}0,\infty\mathclose{)}}
>
> How do pass to emacs26, apt-get install emacs26 answers 'not found' ?
>
> Le sam. 30 mars 2019 à 19:31, Thomas Bucaioni <thomas.bucaioni <at> gmail.com>
> a écrit :
>
>> 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).
>>>
>>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34979; Package emacs. (Wed, 03 Apr 2019 18:52:03 GMT) Full text and rfc822 format available.

Message #22 received at 34979 <at> debbugs.gnu.org (full text, mbox):

From: Thomas Bucaioni <thomas.bucaioni <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>, 34979 <at> debbugs.gnu.org
Subject: Re: bug#34979: 24.5; indent .tex broken
Date: Sun, 31 Mar 2019 15:02:58 +0200
[Message part 1 (text/plain, inline)]
A minimal example in attachment

Le dim. 31 mars 2019 à 13:43, Thomas Bucaioni <thomas.bucaioni <at> gmail.com> a
écrit :

> This breaks the indentation too :
>
> \newcommand{\intervalleof}[2]{
>   {\left.\vphantom{#1#2}\right]}
>            {#1}
>            \mathpunct{};\mathpunct{}
>                      {#2}
>                      {\left.\vphantom{#1#2}\right]}
>                        }
>
>
> Le dim. 31 mars 2019 à 12:16, Thomas Bucaioni <thomas.bucaioni <at> gmail.com>
> a écrit :
>
>> By the way, \mathbb{R}^{*[*0,\infty)} breaks the indentation too on
>> emacs 25. It's the probabilists notation... With \mathopen and \mathclose,
>> it's fixed :
>> \mathbb{R}^{\mathopen{[}0,\infty\mathclose{)}}
>>
>> How do pass to emacs26, apt-get install emacs26 answers 'not found' ?
>>
>> Le sam. 30 mars 2019 à 19:31, Thomas Bucaioni <thomas.bucaioni <at> gmail.com>
>> a écrit :
>>
>>> 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).
>>>>
>>>
[Message part 2 (text/html, inline)]
[minimalIndetationBreak.tex (text/x-tex, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34979; Package emacs. (Fri, 05 Apr 2019 11:38:02 GMT) Full text and rfc822 format available.

Message #25 received at 34979 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: Thomas Bucaioni <thomas.bucaioni <at> gmail.com>
Cc: Glenn Morris <rgm <at> gnu.org>, 34979 <at> debbugs.gnu.org
Subject: Re: bug#34979: 24.5; indent .tex broken
Date: Fri, 05 Apr 2019 12:36:53 +0100
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?

Thanks,

-- 
Basil




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34979; Package emacs. (Fri, 05 Apr 2019 11:38:02 GMT) Full text and rfc822 format available.

Message #28 received at 34979 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: Thomas Bucaioni <thomas.bucaioni <at> gmail.com>
Cc: Glenn Morris <rgm <at> gnu.org>, 34979 <at> debbugs.gnu.org
Subject: Re: bug#34979: 24.5; indent .tex broken
Date: Fri, 05 Apr 2019 12:36:59 +0100
Thomas Bucaioni <thomas.bucaioni <at> gmail.com> writes:

> How do pass to emacs26, apt-get install emacs26 answers 'not found' ?

Which distro are you on?  Emacs 26 was introduced in Debian 10 (codename
Buster) and Ubuntu 19.04 (codename Disco Dingo).

-- 
Basil




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34979; Package emacs. (Sat, 06 Apr 2019 22:35:02 GMT) Full text and rfc822 format available.

Message #31 received at 34979 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: Thomas Bucaioni <thomas.bucaioni <at> gmail.com>
Cc: 34979 <at> debbugs.gnu.org
Subject: Re: 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34979; Package emacs. (Sat, 06 Apr 2019 23:18:02 GMT) Full text and rfc822 format available.

Message #34 received at 34979 <at> debbugs.gnu.org (full text, mbox):

From: Thomas Bucaioni <thomas.bucaioni <at> gmail.com>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 34979 <at> debbugs.gnu.org
Subject: Re: bug#34979: 24.5; indent .tex broken
Date: Sun, 7 Apr 2019 01:17:13 +0200
[Message part 1 (text/plain, inline)]
as the file had the '.tex' extension, I expected Emacs would indent it by
pressing the Tab key

Le dim. 7 avr. 2019 00:34, Basil L. Contovounesios <contovob <at> tcd.ie> a
écrit :

> [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
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34979; Package emacs. (Thu, 16 Jan 2020 14:17:02 GMT) Full text and rfc822 format available.

Message #37 received at 34979 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 34979 <at> debbugs.gnu.org, Thomas Bucaioni <thomas.bucaioni <at> gmail.com>
Subject: Re: bug#34979: 24.5; indent .tex broken
Date: Thu, 16 Jan 2020 15:16:11 +0100
"Basil L. Contovounesios" <contovob <at> tcd.ie> writes:

> [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).

So if I read this discussion correctly, the problem is, quoting SE:

    The problem is likely that your other files use tex-plain-mode
    instead of latex-mode. The .tex extension is used for both, so
    Emacs tries to guess, and it tends to err on the side of
    tex-plain-mode.

    You can add a -*- mode: latex -*- somewhere on the first line of
    your files to avoid the problem.

Is this something we would like to change, or is this working as
expected and therefore notabug?

Best regards,
Stefan Kangas




Reply sent to Stefan Kangas <stefan <at> marxist.se>:
You have taken responsibility. (Tue, 04 Aug 2020 15:54:02 GMT) Full text and rfc822 format available.

Notification sent to Thomas Bucaioni <thomas.bucaioni <at> gmail.com>:
bug acknowledged by developer. (Tue, 04 Aug 2020 15:54:02 GMT) Full text and rfc822 format available.

Message #42 received at 34979-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 34979-done <at> debbugs.gnu.org, Thomas Bucaioni <thomas.bucaioni <at> gmail.com>
Subject: Re: bug#34979: 24.5; indent .tex broken
Date: Tue, 4 Aug 2020 08:53:38 -0700
Stefan Kangas <stefan <at> marxist.se> writes:

> So if I read this discussion correctly, the problem is, quoting SE:
>
>     The problem is likely that your other files use tex-plain-mode
>     instead of latex-mode. The .tex extension is used for both, so
>     Emacs tries to guess, and it tends to err on the side of
>     tex-plain-mode.
>
>     You can add a -*- mode: latex -*- somewhere on the first line of
>     your files to avoid the problem.
>
> Is this something we would like to change, or is this working as
> expected and therefore notabug?

More information was requested, but none given within 28 weeks. I'm
therefore assuming this is working as expected, and I'm closing this
bug.

Please reply back if this is an issue and we can reopen the bug.

Best regards,
Stefan Kangas




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 02 Sep 2020 11:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 235 days ago.

Previous Next


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