Subject: Re: bug#61210: 28.2; Request to modify code which can accidentally overwrite AUCTeX function

From: Stefan Monnier <[email-masked]>
Date: Mon, 20 Mar 2023 11:07:14 -0400

> 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