emacs-devel
[Top][All Lists]
Advanced

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

yank-handler


From: Stefan Monnier
Subject: yank-handler
Date: Wed, 14 May 2003 12:03:16 -0400

I'd like to get diff-mode to behave as follows:

If I kill a piece of a hunk and then yank it in some other buffer,
the "[+-! ]" prefix added to each and every line should be removed
(unless I'm yanking back into a diff-mode buffer or unless there's
something like a "@@ -463,4 +463,36 @@" marker, obviously).

I'm still not quite sure whether it's a good idea or not, but to
figure that out, I'd like to experiment with it, but I can't seem
to figure out how to do it.

More specifically, it seems that the yank-handler property can only be
set by passing the proper argument to `kill-new' (or one
of its front men).  Is that right ?  Why is that ?
I don't want to rebind C-k, C-w, M-w and whatnot just to do that.
I'd rather either put the property directly on the text, or set
some buffer-local `default-yank-handler-for-kill' variable.

Any comment ?


        Stefan





reply via email to

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