GNU bug report logs - #71363
14.0.5; AUCTeX 14.05 and LaTeX Mode

Previous Next

Package: auctex;

Reported by: Robert Morelli <morelli <at> flux.utah.edu>

Date: Tue, 4 Jun 2024 14:27:02 UTC

Severity: normal

Found in version 14.0.5

Done: Ikumi Keita <ikumi <at> ikumi.que.jp>

Bug is archived. No further changes may be made.

Full log


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

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Arash Esbati <arash <at> gnu.org>
Cc: 71363 <at> debbugs.gnu.org, Robert Morelli <morelli <at> flux.utah.edu>,
 Paul Nelson <ultrono <at> gmail.com>
Subject: Re: bug#71363: 14.0.5; AUCTeX 14.05 and LaTeX Mode
Date: Mon, 01 Jul 2024 17:44:49 +0900
Hi Arash,

>>>>> Arash Esbati <arash <at> gnu.org> writes:
> Thanks.  I wonder why we can't leave this decision to the user?

> ,----[ C-h v org-src-lang-modes RET ]
> | org-src-lang-modes is a variable defined in ‘org-src.el’.
...
> `----

> So people only need to customize

>   ("beamer" . latex)

> to

>   ("beamer" . LaTeX)

> and it should work, IIUC.

I don't think that's enough. If I understand correctly, the major
problem is that LaTeX code block other than beamer code block is handled
by `latex-mode' by default. The doc string of `org-edit-special' says:
,----
| The LaTeX environment is copied into a new buffer.  Major mode is
| set to the one associated to "latex" in ‘org-src-lang-modes’,
| or to ‘latex-mode’ if there is none.
`----
So users have to add another entry
("latex" . LaTeX)
in ‘org-src-lang-modes’.

As I wrote in the separate message, I think AUCTeX can accept to add
such entry by default.

(But adding
   ("latex" . LaTeX)
and changing
   ("beamer" . latex)
to
   ("beamer" . LaTeX)
aren't much trouble, after all. So it's reasonable as well to leave this
decision to the user, of course.)

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW




This bug report was last modified 316 days ago.

Previous Next


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