help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Testing whether a mode is enabled


From: Michael Heerdegen
Subject: Re: Testing whether a mode is enabled
Date: Mon, 17 Oct 2022 01:15:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

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

The variable has a docstring.  This is the crucial source for you.
Nearly all mode variables are interpreted as Bools in Emacs.

The argument of the mode functions is different because it is often also
the prefix arg, which is a number (not even only just that, actually).
But it can also be called from Elisp.  That's why its semantics are a
bit ugly.

Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]