* prog-mode-p?
@ 2022-11-24 4:08 T.V Raman
2022-11-24 4:22 ` prog-mode-p? Yuan Fu
0 siblings, 1 reply; 3+ messages in thread
From: T.V Raman @ 2022-11-24 4:08 UTC (permalink / raw)
To: emacs-devel
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?
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: prog-mode-p?
2022-11-24 4:08 prog-mode-p? T.V Raman
@ 2022-11-24 4:22 ` Yuan Fu
2022-11-24 4:57 ` prog-mode-p? T.V Raman
0 siblings, 1 reply; 3+ messages in thread
From: Yuan Fu @ 2022-11-24 4:22 UTC (permalink / raw)
To: T.V Raman; +Cc: emacs-devel
> 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.
Yuan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: prog-mode-p?
2022-11-24 4:22 ` prog-mode-p? Yuan Fu
@ 2022-11-24 4:57 ` T.V Raman
0 siblings, 0 replies; 3+ messages in thread
From: T.V Raman @ 2022-11-24 4:57 UTC (permalink / raw)
To: Yuan Fu; +Cc: emacs-devel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 154 bytes --]
:-) never thought of looking for that one:-)
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
7©4 Id: kg:/m/0285kf1 0Ü8
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-11-24 4:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-24 4:08 prog-mode-p? T.V Raman
2022-11-24 4:22 ` prog-mode-p? Yuan Fu
2022-11-24 4:57 ` prog-mode-p? T.V Raman
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).