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 #17 received at 71363 <at> debbugs.gnu.org (full text, mbox):
Ikumi Keita <ikumi <at> ikumi.que.jp> writes:
> Hi Robert and Paul,
>
>>>>>> Paul Nelson <ultrono <at> gmail.com> writes:
>>> Functionally, version 14.0.5 has at least one shortcoming that makes it
>>> unusable for me: invoking org-edit-special from an org-mode latex src block
>>> opens a buffer in latex-mode (not LaTeX-mode). This is a change from
>>> version 13.3.
>
>> In case it's of any help, I've been using (add-hook 'latex-mode-hook
>> #'LaTeX-mode) as a workaround for the source block issue that you
>> mention
>
> 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
This bug report was last modified 1 year and 8 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.