unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Testing whether a mode is enabled
@ 2022-10-16 15:24 Heime via Users list for the GNU Emacs text editor
  2022-10-16 23:15 ` Michael Heerdegen
  0 siblings, 1 reply; 3+ messages in thread
From: Heime via Users list for the GNU Emacs text editor @ 2022-10-16 15:24 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Am using icomplete-mode but find things somewhat confusing.

To enable or disable the mode one uses (icomplete-mode 1) and (icomplete-mode -1)

I want to test whether the mode is enabled or disabled with "(if icomplete-mode" and
(if (not icomplete-mode)".

(not OBJECT) returns t if OBJECT is nil, and returns nil otherwise.

When I use conditional with "icomplete-mode" is it correct to say that if "icomplete-mode" is nil,
then the mode is disabled?

I am uncertain because of the numeric values used to enable and disable.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-16 23:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-16 15:24 Testing whether a mode is enabled Heime via Users list for the GNU Emacs text editor
2022-10-16 23:15 ` Michael Heerdegen
2022-10-16 23:26   ` Heime

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