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: Heime
Subject: Re: Testing whether a mode is enabled
Date: Sun, 16 Oct 2022 23:26:26 +0000





Sent with Proton Mail secure email.

------- Original Message -------
On Sunday, October 16th, 2022 at 11:15 PM, Michael Heerdegen 
<michael_heerdegen@web.de> wrote:


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

I see.  Which is either t or nil in the docstring.
 
> 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.

Not trivial.




reply via email to

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