diff options
| author | Stefan Monnier | 2023-10-27 20:18:54 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2023-10-27 20:18:54 -0400 |
| commit | 81510f2fff5e61c6fca359e01870139f1302e1ed (patch) | |
| tree | c9722240ff1ddbeda5a133d7eb932bd5a4c49352 /java | |
| parent | 9acd8c8e530dda326ae5bf852c2437fdcde4e8cc (diff) | |
| download | emacs-81510f2fff5e61c6fca359e01870139f1302e1ed.tar.gz emacs-81510f2fff5e61c6fca359e01870139f1302e1ed.zip | |
(provided-mode-derived-p): Fix alias case
The new handling of aliases in `provided-mode-derived-p`
introduced in Emacs-28.1 caused a regression where
(provided-mode-derived-p MODE MODE) returns nil if MODE is an alias.
Rework the loop so we consider an alias as a kind of parent.
* lisp/subr.el (provided-mode-derived-p): Step over aliases separately.
* test/lisp/subr-tests.el (subr-tests--derived-mode-1)
(subr-tests--derived-mode-2): Move out of `provided-mode-derived-p`
and give them properly namespaced names.
(provided-mode-derived-p): Add more tests for aliases.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions