emacs-devel
[Top][All Lists]
Advanced

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

Re: Leaving out non-applicable commands on Mx


From: Óscar Fuentes
Subject: Re: Leaving out non-applicable commands on Mx
Date: Sat, 09 Jan 2016 15:50:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Lars Magne Ingebrigtsen <address@hidden> writes:

> John Wiegley <address@hidden> writes:
>
>>>>>>> Óscar Fuentes <address@hidden> writes:
>>
>>>> We've discussed before adding mechanisms for leaving mode-specific commands
>>>> out, but I was apparently the only one enthusiastic about it...
>>
>>> You sketched a possible implementation. If you are interested on completing
>>> the part that requires a smart hacker, I'll do the part that requires a dumb
>>> one :-)
>>
>> What is this feature suggestion again?
>
> Marking commands as applicable to a mode (or a set of modes) so that
> completion doesn't list them outside of those modes.

I envision a somewhat more generic system, where the command can state
that it operates only on read-only buffers, or on buffers that are
visiting a file, or on buffers that are visiting a versioned file. Using
the syntax proposed by Lars:

(declare (type versioned))

or

(command 'versioned "p")

[snip]




reply via email to

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