emacs-devel
[Top][All Lists]
Advanced

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

Re: Smarter M-x that filters on major-mode


From: Stefan Kangas
Subject: Re: Smarter M-x that filters on major-mode
Date: Fri, 12 Feb 2021 11:05:14 -0600

jao <jao@gnu.org> writes:

>> The argument to `interactive' is optional, so it'd be
>>
>>   (defun foo2 ()
>>    (interactive nil c-mode)
>>
>> in most of the cases, which seemed less than ideal.  But on the other
>> hand, not introducing a new keyword would perhaps help with reading
>> comprehension.
>
> it's perhaps more tricky, but it could also be
>
>      (interactive 'c-mode)
>
> which is distinguisable from a string or a form:
>
>      (interactive "p")
>      (interactive (list a b))

FWIW, I like the new syntax more.  But this is all rather subjective.

One thing is that "command" is much more obvious to read than
"interactive", since it is after all about making "commands" and not
"interactives".



reply via email to

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