]> git.eshelyaron.com Git - emacs.git/commit
subr.el: Add multiple inheritance to `derived-mode-p`
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 6 Nov 2023 21:57:05 +0000 (16:57 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 9 Nov 2023 05:33:46 +0000 (00:33 -0500)
commit5afa55a946a0271c624359e9de5d62bcaf39729b
tree42c55658d176a352285bf0c8b14b857f74c0778e
parent492920dd5b469e18596a49a62fbefd8ad2cc518b
subr.el: Add multiple inheritance to `derived-mode-p`

Add the ability for a major mode to declare "extra parents" in
addition to the one from which it inherits.

* lisp/subr.el (derived-mode-add-parents): New function.
(derived-mode-all-parents): Adjust accordingly.
lisp/subr.el