bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#61210: 28.2; Request to modify code which can accidentally overwrite


From: Stefan Monnier
Subject: bug#61210: 28.2; Request to modify code which can accidentally overwrite AUCTeX function
Date: Mon, 20 Mar 2023 11:07:14 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

> Thanks, then AUCTeX can use LaTeX-mode etc. for names of its own major
> modes for emacs 29 and later. (I assume that it isn't problematic that
> AUCTeX overrides unconditionally them by `autoload' for them in the init
> code and
> (define-derived-mode LaTeX-mode text-mode "LaTeX" ...)
> or
> (defun LaTeX-mode () ...)
> later.)

It isn't problematic from Emacs's point of view, no.
>From AUCTeX's point of view you do need to take into account that
`autoload` does nothing if the function is already defined, so AUCTeX
will need to remove the aliases before calling `autoload`.


        Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]