[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug#2553: *vc-diff* buffers are read-only, but M-k works
From: |
Lars Magne Ingebrigtsen |
Subject: |
Re: bug#2553: *vc-diff* buffers are read-only, but M-k works |
Date: |
Thu, 06 Oct 2011 23:59:02 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>> Perhaps a more general solution would be possible here. I think there
>> probably are other "mostly-read-only" modes where you have one or two
>> special commands that alter the buffer, anyway. Like with `M-k'.
>> Perhaps there could be a buffer-local variable like
>> `undo-read-only-buffer' that if set, would allow `undo' to work in these
>> cases.
>
> Or we could record in the buffer-undo-list the fact the the modification
> was done with inhibit-read-only bound to non-nil, and bind it similarly
> during the undo.
That would be even better, and is even more general.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: bug#2553: *vc-diff* buffers are read-only, but M-k works,
Lars Magne Ingebrigtsen <=