[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AUCTeX and "builtin latex mode" integration
From: |
Stefan Monnier |
Subject: |
Re: AUCTeX and "builtin latex mode" integration |
Date: |
Sun, 25 Sep 2022 10:09:26 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> be a derived mode of `latex-mode'. However, defining `LaTeX-mode' by
> (define-derived-mode LaTeX-mode latex-mode ...) would cause infinite
> loop when redirection is enabled.
Yes, it's ugly. That's part of the reason for the weird way we define
`tex-mode` in `tex-mode.el` (and that was preceded by other weird ways
to do it).
I have an idea for how we should solve this in general in Emacs, but in
the mean time a hack like the (or delay-mode-hooks tex-mode--recursing)
I used in `tex--redirect-to-submode` is about as good as I could make
it :-(
> I expect that we can circumvent the difficulty by putting
> `derived-mode-parent' property on `LaTeX-mode', without
> `define-derived-mode'.
That's another option, indeed.
Stefan
- Re: AUCTeX and "builtin latex mode" integration, (continued)
- Re: AUCTeX and "builtin latex mode" integration, Christopher Dimech, 2022/09/21
- Re: AUCTeX and "builtin latex mode" integration, Ikumi Keita, 2022/09/22
- Re: AUCTeX and "builtin latex mode" integration, Christopher Dimech, 2022/09/22
- Re: AUCTeX and "builtin latex mode" integration, Ikumi Keita, 2022/09/23
- Re: AUCTeX and "builtin latex mode" integration, Stefan Monnier, 2022/09/23
- Re: AUCTeX and "builtin latex mode" integration, Ikumi Keita, 2022/09/25
- Re: AUCTeX and "builtin latex mode" integration, Stefan Monnier, 2022/09/25
- Re: AUCTeX and "builtin latex mode" integration, Stefan Monnier, 2022/09/25
- Re: AUCTeX and "builtin latex mode" integration, Stefan Monnier, 2022/09/25
- Re: AUCTeX and "builtin latex mode" integration, Ikumi Keita, 2022/09/25
- Re: AUCTeX and "builtin latex mode" integration,
Stefan Monnier <=
- Re: AUCTeX and "builtin latex mode" integration, Christopher Dimech, 2022/09/21
- Re: AUCTeX and "builtin latex mode" integration, Stefan Monnier, 2022/09/20
- Re: AUCTeX and "builtin latex mode" integration, Stefan Monnier, 2022/09/20
- Re: AUCTeX and "builtin latex mode" integration, Christopher Dimech, 2022/09/20
- Re: AUCTeX and "builtin latex mode" integration, Tassilo Horn, 2022/09/21
- Re: AUCTeX and "builtin latex mode" integration, Christopher Dimech, 2022/09/21
Re: AUCTeX and "builtin latex mode" integration, Ikumi Keita, 2022/09/20
Re: AUCTeX and "builtin latex mode" integration, Uwe Brauer, 2022/09/20