[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Wed, 23 Nov 2022 20:22:50 -0800
> On Nov 23, 2022, at 8:08 PM, T.V Raman <email@example.com> wrote:
> At present, one can look up the "parent" of a derived mode via the
> symbol's property list as in:
> (get 'emacs-lisp-mode 'derived-mode-parent )
> and thus ascend the parent chain -- is there a shortcut to checking if
> a mode derives from say 'prog-mode (my current use case)
> or in general check if mode x has mode y as a parent in its derivation chain?
IIIUC you can use derived-mode-p.
- prog-mode-p?, T.V Raman, 2022/11/23
- Re: prog-mode-p?,
Yuan Fu <=