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

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.