[Top][All Lists]
[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: |
Stefan Monnier |
Subject: |
Re: yank-match.el -- yank matches for a regexp from kill-ring |
Date: |
Sun, 02 Mar 2008 14:25:44 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
>> Rather than stuffing it into simple.el, I guess I'd create a new file
>> yank-match.el (suggestions for other destinations welcome).
Your file uses ";;;" incorrectly. Most of those should be ";;" (the
";;;" should be used to separate sections).
But in any case, there's no need for a separate file for such
a small function.
> (defun insert-yank-from-kill-ring (string)
> "Insert the selected item from the kill-ring in the minibuffer history.
> Use minibuffer navigation and search commands to browse the kill-ring
> in the minibuffer history."
> (interactive (list (read-string "Yank from kill-ring: " nil 'kill-ring)))
> (insert-for-yank string))
This looks good.
Stefan