[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prog-mode-p?

From: Yuan Fu
Subject: Re: prog-mode-p?
Date: Wed, 23 Nov 2022 20:22:50 -0800

> On Nov 23, 2022, at 8:08 PM, T.V Raman <raman@google.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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]