emacs-devel
[Top][All Lists]
Advanced

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

Re: yank-match.el -- yank matches for a regexp from kill-ring


From: Mathias Dahl
Subject: Re: yank-match.el -- yank matches for a regexp from kill-ring
Date: Tue, 17 Jul 2007 20:44:26 +0200

...
(defun yank-match (re)
  "Yank the first item in the kill-ring that contains a match for RE
\(a regular expression\).  Set point and mark just as \\[yank] does.

Repeated invocations with no intervening commands will run
successively through the matches for RE in the kill-ring,
replacing the previously-yanked text with the new match each
time, without prompting for a new regular expression,
...

This sounds very handy. I cannot say I have been longing for such a
command, but now that I know it exist I will probably find uses for
it. Taking advantage of what is in the kill ring is something I have
mostly underestimated.

There isn't any other way to do this in standard Emacs, is it?




reply via email to

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