GNU bug report logs - #63345
28.2; provided-mode-derived-p doesn't work when passed an alias in MODES

Previous Next

Package: emacs;

Reported by: Damien Cassou <damien <at> cassou.me>

Date: Sun, 7 May 2023 09:50:02 UTC

Severity: normal

Found in version 28.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 63345 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Damien Cassou <damien <at> cassou.me>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 63345 <at> debbugs.gnu.org
Subject: Re: bug#63345: 28.2; provided-mode-derived-p doesn't work when
 passed an alias in MODES
Date: Sun, 07 May 2023 10:23:22 -0400
Hi Damien,

>>   (provided-mode-derived-p 'javacript-mode 'javascript-mode)
>>     ⇒ nil
>> Is that a bug?

I'd put it into "not a bug" because there really is a difference between
a mode and an alias to a mode (e.g. you can expect a mode to have
matching `<mode>-map`, `<mode>-hook`, ... vars).

But admittedly, this is a messy area.

What was the original scenario where you bumped into this problem?


        Stefan





This bug report was last modified 2 years and 74 days ago.

Previous Next


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