emacs-devel
[Top][All Lists]
Advanced

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

Re: master 6a2cdc6: Allow minor modes to specify major modes they're use


From: Lars Ingebrigtsen
Subject: Re: master 6a2cdc6: Allow minor modes to specify major modes they're useful in
Date: Sat, 13 Feb 2021 13:03:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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



reply via email to

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