]> git.eshelyaron.com Git - emacs.git/commit
subr.el: Provide a functional API around `derived-mode-parent`
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 8 Nov 2023 16:32:27 +0000 (11:32 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 9 Nov 2023 03:42:16 +0000 (22:42 -0500)
commit19445b6b7bb04e44e39ef2e39a620bd3eadb0acd
treebd8b0f0a0a31556c11fd717264b5c0f89f6a3da5
parent21f36705266934d5a351d4d7f360734540132139
subr.el: Provide a functional API around `derived-mode-parent`

The `derived-mode-parent` property should be an implementation detail,
so we can change it more easily.  To that end, add functions to set and
query it.

* lisp/subr.el (derived-mode-all-parents): New function.
(provided-mode-derived-p): Use it.
(derived-mode-set-parent): New function.
lisp/subr.el