GNU bug report logs - #61210
28.2; Request to modify code which can accidentally overwrite AUCTeX function

Previous Next

Package: emacs;

Reported by: Ikumi Keita <ikumi <at> ikumi.que.jp>

Date: Wed, 1 Feb 2023 12:14:01 UTC

Severity: normal

Tags: moreinfo

Found in version 28.2

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Ikumi Keita <ikumi <at> ikumi.que.jp>
Cc: 61210 <at> debbugs.gnu.org
Subject: bug#61210: 28.2; Request to modify code which can accidentally overwrite AUCTeX function
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





This bug report was last modified 1 year and 251 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.