[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#63345: 28.2; provided-mode-derived-p doesn't work when passed an ali
From: |
Stefan Monnier |
Subject: |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
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