GNU bug report logs -
#71363
14.0.5; AUCTeX 14.05 and LaTeX Mode
Previous Next
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 #20 received at 71363 <at> debbugs.gnu.org (full text, mbox):
On Sat, Jun 29, 2024 at 10:31 PM Arash Esbati <arash <at> gnu.org> wrote:
>
> Ikumi Keita <ikumi <at> ikumi.que.jp> writes:
>
> > I'm afraid that isn't a suuposed way to call a major function in emacs.
> > 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.
> > `----
> > Thus I expect
> > (with-eval-after-load 'org-src
> > (push '("latex" . LaTeX) org-src-lang-modes))
> > in your init file does the job. (Maybe you have also to put
> > (setcdr (assoc "beamer" org-src-lang-modes) 'LaTeX)
> > in the `with-eval-after-load' form if you have beamer src block in your
> > org file.)
>
> Ping! Any updates on this?
>
> Best, Arash
I checked that Ikumi's suggestion addresses the issue (more correctly
than my own workaround), but feel that AUCTeX should do something like
this by default, like it did (incidentally, via mode aliasing) until
the recent update. I'm not sure how best to do that. I guess one
could just stick Ikumi's with-eval-after-load block somewhere in
tex.el, but that goes against the general advice of avoiding
with-eval-after-load in package files?
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.