all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Heime <heimeborgia@protonmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Testing whether a mode is enabled
Date: Sun, 16 Oct 2022 23:26:26 +0000	[thread overview]
Message-ID: <AFxJK7UxXqYNpbF_i7T26UP9BBqaw1Sr2CM1DRtMHrNmocBkXaIpzMXfp2rhfl04peiuhjwp3sIfDpJGa7xMip8szhLU7KSqzvG4ulch7mw=@protonmail.com> (raw)
In-Reply-To: <871qr7fji1.fsf@web.de>






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	other threads:[~2022-10-16 23:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AFxJK7UxXqYNpbF_i7T26UP9BBqaw1Sr2CM1DRtMHrNmocBkXaIpzMXfp2rhfl04peiuhjwp3sIfDpJGa7xMip8szhLU7KSqzvG4ulch7mw=@protonmail.com' \
    --to=heimeborgia@protonmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.