all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.