[Top][All Lists]

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

Re: Making `interactive' conditional

From: Óscar Fuentes
Subject: Re: Making `interactive' conditional
Date: Mon, 11 Jan 2016 17:34:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

"Herring, Davis" <address@hidden> writes:

>> (and (not read-only) visiting-file)
> So now you can't invoke it in *scratch*?

I don't expect to use Lisp predicates, no. Allowing those when the
filtering is executed has unbounded time complexity.

> Of course, you can come up with another refinement to the condition
> (e.g., mode-class). My point is merely that writing these predicates
> is very subtle when the standard is not "is this command likely to
> work when invoked" (in which case you wouldn't be bothering with
> "visiting-file") but rather "is the user plausibly looking for this
> command in the list".

Filtering out editing commands when the buffer is not meant to be edited
in any case enters into the "the user plausibly is not looking for this
command" category.

reply via email to

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