[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making `interactive' conditional
From: |
Stefan Monnier |
Subject: |
Re: Making `interactive' conditional |
Date: |
Mon, 11 Jan 2016 01:13:17 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> That does sound kinda exciting. To take a random example, `M-x
> delete-matching-lines' could have a :when of `buffer-writable-p' and not
> auto-complete when in a read-only buffer. Etc.
I'd be wary of going too far down that road: I often want to modify
read-only buffers 'cause I hadn't realized they're still read-only.
In that case, not finding the command in M-x would make me lose a lot
more time (looking for the damn command, under the assumption that
I just misremember it) than getting a clear "beep! buffer is
read-only!" after which I can C-x C-q and move on.
> Hm... I think that sounds a bit too magical to be workable in general.
That's exactly what I thought when I read the suggestion to omit
delete-matching-lines in read-only buffers.
Stefan
- RE: Leaving out non-applicable commands on Mx, (continued)
- Re: Making `interactive' conditional, Lars Magne Ingebrigtsen, 2016/01/10
- Re: Making `interactive' conditional, Clément Pit--Claudel, 2016/01/10
- RE: Making `interactive' conditional, Drew Adams, 2016/01/10
- Message not available
- Re: Making `interactive' conditional, Artur Malabarba, 2016/01/10
- Re: Making `interactive' conditional, Richard Stallman, 2016/01/10
- Re: Making `interactive' conditional, Lars Magne Ingebrigtsen, 2016/01/11
- Re: Making `interactive' conditional,
Stefan Monnier <=
- Re: Making `interactive' conditional, Óscar Fuentes, 2016/01/11
- RE: Making `interactive' conditional, Herring, Davis, 2016/01/11
- Re: Making `interactive' conditional, Óscar Fuentes, 2016/01/11
- RE: Making `interactive' conditional, Herring, Davis, 2016/01/11
- Re: Making `interactive' conditional, Óscar Fuentes, 2016/01/11
- Re: Making `interactive' conditional, Lars Magne Ingebrigtsen, 2016/01/11
- Re: Making `interactive' conditional, Clément Pit--Claudel, 2016/01/11
- Re: Making `interactive' conditional (was: Leaving out non-applicable commands on Mx), Alan Mackenzie, 2016/01/10
- Re: Making `interactive' conditional, Óscar Fuentes, 2016/01/10
- RE: Making `interactive' conditional, Drew Adams, 2016/01/10