From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: master 6a2cdc6: Allow minor modes to specify major modes they're useful in
Date: Sat, 13 Feb 2021 13:03:10 +0100 [thread overview]
Message-ID: <87y2fsp43l.fsf@gnus.org> (raw)
In-Reply-To: <jwvpn15fl6j.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 12 Feb 2021 08:52:45 -0500")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> +@item :interactive @var{value}
>> +Minor modes are interactive commands by default. If @var{value} is
>> +@code{nil}, this is inhibited. If @var{value} is a list of symbols,
>> +it's used to say which major modes this minor mode is useful in.
>> @end table
>
> Please always arrange for keyword arguments to mean the same when `nil`
> is specified as when the keyword is absent.
That would certainly be nice, but I didn't see how to make that work
here -- :noninteractive would be misleading, since :interactive
(foo-mode) makes it interactive.
So :interactive t and leaving the keyword out results in identical
results, and I don't think that's too bad. If you squint at it, it's a
bit Common Lispish.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2021-02-13 12:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20210212132014.3598.4437@vcs0.savannah.gnu.org>
[not found] ` <20210212132015.D684620999@vcs0.savannah.gnu.org>
2021-02-12 13:52 ` master 6a2cdc6: Allow minor modes to specify major modes they're useful in Stefan Monnier
2021-02-13 12:03 ` Lars Ingebrigtsen [this message]
2021-02-13 13:53 ` Stefan Monnier
2021-02-13 15:10 ` Lars Ingebrigtsen
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=87y2fsp43l.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.