[Top][All Lists]

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

Re: diff-yank-handler is evil

From: Kim F. Storm
Subject: Re: diff-yank-handler is evil
Date: 28 Mar 2004 19:39:29 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Richard Stallman <address@hidden> writes:

>     The diff-yank-handler was only placed on "diff lines" but not on hunk
>     headers and other lines, so that cut&paste of a few lines from inside
>     a hunk resulted in the text being inserted without the leading "-" or "+",
>     whereas if you cut&pasted a larger chunk that included a hunk header,
>     the diff would be pasted untouched.  It DWIM'd perfectly.
> I'll believe that it did the right thing most of the time, but it
> can't always be right.  And something like this, when it gets in the
> way, is very annoying.

Maybe a message could warn the user what happened.  So if it DWIM in
95% of all cases, and undo fixes the remainng 5%, I think users will
quickly adapt...

first undo => undo reformatting, second undo => undo yank.

> So I think it needs to be taken out, useful though it may be in many
> cases.

Could it be a user option ?

> It might be okay to put the feature back in with some other interface,
> so that it won't get in the way unexpectedly.  For instance, maybe
> some mouse click on the text that was yanked could clean it up for
> insertion.  We might have a general convention that a certain kind of
> click on text that is somehow specially formatted will adjust the
> formatting for the new context of that text.

This seems like potentially having even more surprising effects...

Kim F. Storm  http://www.cua.dk

reply via email to

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