all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: emacs-devel@gnu.org
Cc: David Reitter <david.reitter@gmail.com>, 2553@emacsbugs.donarmstrong.com
Subject: Re: *vc-diff* buffers are read-only, but M-k works
Date: Wed, 04 Mar 2009 10:41:46 -0500	[thread overview]
Message-ID: <87k575jnwl.fsf@cyd.mit.edu> (raw)

David Reitter <david.reitter@gmail.com> wrote:

> M-k works just fine in read-only *vc-diff* buffers.
>
> However, undoing an M-k command is impossible, as is cutting, pasting,  
> or all the other things that I did all the time in *vc-diff* buffers  
> in Emacs 22.
>
> The M-k thing is a bug, the read-only (default?) setting is annoying.

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?




             reply	other threads:[~2009-03-04 15:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-04 15:41 Chong Yidong [this message]
2009-03-04 15:54 ` bug#2553: *vc-diff* buffers are read-only, but M-k works Juanma Barranquero
2009-03-04 15:54 ` Juanma Barranquero
2011-09-11 21:46 ` Lars Magne Ingebrigtsen
2011-09-13  1:26   ` Stefan Monnier
2011-10-06 21:59     ` bug#2553: " Lars Magne Ingebrigtsen
2011-10-06 21:59     ` Lars Magne Ingebrigtsen
2011-09-13  1:26   ` Stefan Monnier
2011-09-11 21:46 ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k575jnwl.fsf@cyd.mit.edu \
    --to=cyd@stupidchicken.com \
    --cc=2553@emacsbugs.donarmstrong.com \
    --cc=david.reitter@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.