unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#34979: 24.5; indent .tex broken
@ 2019-03-24 17:04 Thomas Bucaioni
  2019-03-27 12:27 ` Glenn Morris
  0 siblings, 1 reply; 12+ messages in thread
From: Thomas Bucaioni @ 2019-03-24 17:04 UTC (permalink / raw)
  To: 34979

[-- Attachment #1: Type: text/plain, Size: 4100 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 4615 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#34979: 24.5; indent .tex broken
  2019-03-24 17:04 bug#34979: 24.5; indent .tex broken Thomas Bucaioni
@ 2019-03-27 12:27 ` Glenn Morris
  2019-03-30 18:31   ` Thomas Bucaioni
  0 siblings, 1 reply; 12+ messages in thread
From: Glenn Morris @ 2019-03-27 12:27 UTC (permalink / raw)
  To: Thomas Bucaioni; +Cc: 34979

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





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#34979: 24.5; indent .tex broken
  2019-03-27 12:27 ` Glenn Morris
@ 2019-03-30 18:31   ` Thomas Bucaioni
  2019-03-31 10:16     ` Thomas Bucaioni
  2019-04-05 11:36     ` Basil L. Contovounesios
  0 siblings, 2 replies; 12+ messages in thread
From: Thomas Bucaioni @ 2019-03-30 18:31 UTC (permalink / raw)
  To: Glenn Morris, 34979

[-- Attachment #1: Type: text/plain, Size: 585 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1049 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#34979: 24.5; indent .tex broken
  2019-03-30 18:31   ` Thomas Bucaioni
@ 2019-03-31 10:16     ` Thomas Bucaioni
  2019-03-31 11:43       ` Thomas Bucaioni
  2019-04-05 11:36       ` Basil L. Contovounesios
  2019-04-05 11:36     ` Basil L. Contovounesios
  1 sibling, 2 replies; 12+ messages in thread
From: Thomas Bucaioni @ 2019-03-31 10:16 UTC (permalink / raw)
  To: Glenn Morris, 34979

[-- Attachment #1: Type: text/plain, Size: 981 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2056 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#34979: 24.5; indent .tex broken
  2019-03-31 10:16     ` Thomas Bucaioni
@ 2019-03-31 11:43       ` Thomas Bucaioni
  2019-03-31 13:02         ` Thomas Bucaioni
  2019-04-05 11:36       ` Basil L. Contovounesios
  1 sibling, 1 reply; 12+ messages in thread
From: Thomas Bucaioni @ 2019-03-31 11:43 UTC (permalink / raw)
  To: Glenn Morris, 34979

[-- Attachment #1: Type: text/plain, Size: 1374 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2926 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#34979: 24.5; indent .tex broken
  2019-03-31 11:43       ` Thomas Bucaioni
@ 2019-03-31 13:02         ` Thomas Bucaioni
  0 siblings, 0 replies; 12+ messages in thread
From: Thomas Bucaioni @ 2019-03-31 13:02 UTC (permalink / raw)
  To: Glenn Morris, 34979


[-- Attachment #1.1: Type: text/plain, Size: 1551 bytes --]

A minimal example in attachment

Le dim. 31 mars 2019 à 13:43, Thomas Bucaioni <thomas.bucaioni@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@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@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@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).
>>>>
>>>

[-- Attachment #1.2: Type: text/html, Size: 3354 bytes --]

[-- Attachment #2: minimalIndetationBreak.tex --]
[-- Type: text/x-tex, Size: 902 bytes --]

\documentclass{article}

\newcommand{\intervalle}[4] {
  \mathopen{#1}
  #2
  \mathpunct{};
  #3
  \mathclose{#4}
}
\newcommand{\intff}[2] {
  \intervalle
      {\left[\vphantom{#1#2}\right.}
        {#1}
        {#2}
        {\left.\vphantom{#1#2}\right]}
}
\newcommand{\intfo}[2] {
  \intervalle
      {\left[\vphantom{#1#2}\right.}
        {#1}
        {#2}
        {\left[\vphantom{#1#2}\right.}
        }
        \newcommand{\intoo}[2] {
          \intervalle
              {\left.\vphantom{#1#2}\right]}
                   {#1}
                   {#2}
                   {\left[\vphantom{#1#2}\right.}
                   }
                   \newcommand{\intof}[2] {
                     \intervalle{\left.\vphantom{#1#2}\right]}
                              {#1}
                              {#2}{\left.\vphantom{#1#2}\right]}
}

\begin{document}
Bonjour, j'\'edite en \LaTeX~!
\end{document}

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#34979: 24.5; indent .tex broken
  2019-03-30 18:31   ` Thomas Bucaioni
  2019-03-31 10:16     ` Thomas Bucaioni
@ 2019-04-05 11:36     ` Basil L. Contovounesios
       [not found]       ` <CAKLB5NS7HLz2sP=rL+6Np7GP9=XiHhoBKokZx1Zf7QYs5wuxWw@mail.gmail.com>
  1 sibling, 1 reply; 12+ messages in thread
From: Basil L. Contovounesios @ 2019-04-05 11:36 UTC (permalink / raw)
  To: Thomas Bucaioni; +Cc: 34979

Thomas Bucaioni <thomas.bucaioni@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@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





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#34979: 24.5; indent .tex broken
  2019-03-31 10:16     ` Thomas Bucaioni
  2019-03-31 11:43       ` Thomas Bucaioni
@ 2019-04-05 11:36       ` Basil L. Contovounesios
  1 sibling, 0 replies; 12+ messages in thread
From: Basil L. Contovounesios @ 2019-04-05 11:36 UTC (permalink / raw)
  To: Thomas Bucaioni; +Cc: 34979

Thomas Bucaioni <thomas.bucaioni@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





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#34979: 24.5; indent .tex broken
       [not found]       ` <CAKLB5NS7HLz2sP=rL+6Np7GP9=XiHhoBKokZx1Zf7QYs5wuxWw@mail.gmail.com>
@ 2019-04-06 22:34         ` Basil L. Contovounesios
  2019-04-06 23:17           ` Thomas Bucaioni
  2020-01-16 14:16           ` Stefan Kangas
  0 siblings, 2 replies; 12+ messages in thread
From: Basil L. Contovounesios @ 2019-04-06 22:34 UTC (permalink / raw)
  To: Thomas Bucaioni; +Cc: 34979

[Please keep the bug address in the To or Cc header.]

Thomas Bucaioni <thomas.bucaioni@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@tcd.ie> a écrit :
>
>  Thomas Bucaioni <thomas.bucaioni@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@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





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#34979: 24.5; indent .tex broken
  2019-04-06 22:34         ` Basil L. Contovounesios
@ 2019-04-06 23:17           ` Thomas Bucaioni
  2020-01-16 14:16           ` Stefan Kangas
  1 sibling, 0 replies; 12+ messages in thread
From: Thomas Bucaioni @ 2019-04-06 23:17 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: 34979

[-- Attachment #1: Type: text/plain, Size: 2119 bytes --]

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@tcd.ie> a
écrit :

> [Please keep the bug address in the To or Cc header.]
>
> Thomas Bucaioni <thomas.bucaioni@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@tcd.ie>
> a écrit :
> >
> >  Thomas Bucaioni <thomas.bucaioni@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@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
>

[-- Attachment #2: Type: text/html, Size: 3131 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#34979: 24.5; indent .tex broken
  2019-04-06 22:34         ` Basil L. Contovounesios
  2019-04-06 23:17           ` Thomas Bucaioni
@ 2020-01-16 14:16           ` Stefan Kangas
  2020-08-04 15:53             ` Stefan Kangas
  1 sibling, 1 reply; 12+ messages in thread
From: Stefan Kangas @ 2020-01-16 14:16 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: 34979, Thomas Bucaioni

"Basil L. Contovounesios" <contovob@tcd.ie> writes:

> [Please keep the bug address in the To or Cc header.]
>
> Thomas Bucaioni <thomas.bucaioni@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





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#34979: 24.5; indent .tex broken
  2020-01-16 14:16           ` Stefan Kangas
@ 2020-08-04 15:53             ` Stefan Kangas
  0 siblings, 0 replies; 12+ messages in thread
From: Stefan Kangas @ 2020-08-04 15:53 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: 34979-done, Thomas Bucaioni

Stefan Kangas <stefan@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





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-08-04 15:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-24 17:04 bug#34979: 24.5; indent .tex broken Thomas Bucaioni
2019-03-27 12:27 ` Glenn Morris
2019-03-30 18:31   ` Thomas Bucaioni
2019-03-31 10:16     ` Thomas Bucaioni
2019-03-31 11:43       ` Thomas Bucaioni
2019-03-31 13:02         ` Thomas Bucaioni
2019-04-05 11:36       ` Basil L. Contovounesios
2019-04-05 11:36     ` Basil L. Contovounesios
     [not found]       ` <CAKLB5NS7HLz2sP=rL+6Np7GP9=XiHhoBKokZx1Zf7QYs5wuxWw@mail.gmail.com>
2019-04-06 22:34         ` Basil L. Contovounesios
2019-04-06 23:17           ` Thomas Bucaioni
2020-01-16 14:16           ` Stefan Kangas
2020-08-04 15:53             ` Stefan Kangas

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