[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]
- RE: Making `interactive' conditional, (continued)
- Re: Making `interactive' conditional, John Wiegley, 2016/01/19
- Re: Making `interactive' conditional, Lars Magne Ingebrigtsen, 2016/01/19
- Re: Making `interactive' conditional, John Wiegley, 2016/01/19
- Re: Making `interactive' conditional, Lars Magne Ingebrigtsen, 2016/01/19
- Re: Making `interactive' conditional, Óscar Fuentes, 2016/01/19
- Re: Leaving out non-applicable commands on Mx, Lars Magne Ingebrigtsen, 2016/01/09
- Re: Leaving out non-applicable commands on Mx,
Óscar Fuentes <=
- Re: Leaving out non-applicable commands on Mx, Stefan Monnier, 2016/01/09
- Re: Leaving out non-applicable commands on Mx, Lars Magne Ingebrigtsen, 2016/01/10
- Re: Leaving out non-applicable commands on Mx, Stefan Monnier, 2016/01/10
- Re: Leaving out non-applicable commands on Mx, Stefan Monnier, 2016/01/10
- Re: Leaving out non-applicable commands on Mx, Óscar Fuentes, 2016/01/10
Re: 4K Bugs, Michael Albinus, 2016/01/08