[Top][All Lists]

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

bug#2553: *vc-diff* buffers are read-only, but M-k works

From: Lars Magne Ingebrigtsen
Subject: bug#2553: *vc-diff* buffers are read-only, but M-k works
Date: Sun, 11 Sep 2011 23:46:36 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

Chong Yidong <address@hidden> writes:

> The purpose of making the vc-diff buffer read-only (2007-11-10 change to
> vc.el) was so that people can use the read-only diff-mode bindings like
> "k" and "p".  However, it's counter-intuitive that undo does not work.
> Probably the easiest fix is to define a diff-undo command that lifts the
> read-only restriction temporarily.  Any thoughts?

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

(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/

reply via email to

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