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: Lars Ingebrigtsen
Subject: Re: Smarter M-x that filters on major-mode
Date: Mon, 15 Feb 2021 03:59:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

"Basil L. Contovounesios" <contovob@tcd.ie> writes:

> The special thing about the new interactive spec is that, while it
> itself is backward incompatible, it has an equivalent
> (declare (modes ...)) form that is backward compatible.  So why not push
> only the less intrusive and more flexible of the two?

Why did we introduce the `when-let' when `let' + `when' exists?  Because
we thought `when-let' made the code clearer.

I think

(interactive "p" foo-mode)

is pretty clear, easy to understand and easy to write.

-- 
(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]