unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to test whether symbol is minor-mode
@ 2023-01-21 16:04 yinz Liu
  0 siblings, 0 replies; only message in thread
From: yinz Liu @ 2023-01-21 16:04 UTC (permalink / raw)
  To: help-gnu-emacs

Usually I use forms like `(memq 'read-only-mode minor-mode-list)` to test
whether it is a minor mode, however for `read-only-mode`,  it fails.
Because the read-only-mode related variable is `buffer-read-only` rather
than the same name var, is there any method to test only with the
minor-mode itself ?


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-21 16:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-21 16:04 How to test whether symbol is minor-mode yinz Liu

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).