From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Holger Sparr Newsgroups: gmane.emacs.help Subject: Re: pasting many times Date: Wed, 25 Oct 2006 14:49:37 +0200 Message-ID: References: <1161778696.317614.27570@e3g2000cwe.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161783667 22783 80.91.229.2 (25 Oct 2006 13:41:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Oct 2006 13:41:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 25 15:41:04 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gcizc-0001Cz-Dz for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Oct 2006 15:40:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gcizb-00005n-VR for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Oct 2006 09:40:28 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-X-Trace: news.dfncis.de v7i5hHeuWo7okbuwk7sKHg9f+T7ErAunxk2f2JBZZjLPXw Mail-Copies-To: never User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:OOxSC9uVi5rESEZxnZpTyT1G6/I= Original-Xref: shelby.stanford.edu gnu.emacs.help:142653 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38273 Archived-At: On 25 Oct 2006, Florian Kaufmann wrote: >> I have downloaded browse-kill-ring >> (http://www.todesschaf.org/projects/bkr.html). >> It allows you to browse all the kills you did and choose the one you >> want to yank. > > I still miss however a mode or feature or whatever that gives me about > the following functionality: I'd like to see the kill ring in a window. > Pretty much how browse-kill-ring does it. However automatically always > up to date and the entries of the ring enumerated. Then I could just > visually look at this window, easily see that the thing I want to yank > is say the 9th item in the ring, and then just use yank with an > argument of 9. I think this is still much faster and more convenient > than to browse through the kill ring, either with (yank-pop) M-y or > with browse-kill-ring-next. > > Flo (I don't know if this works in any case. But it works as quick solution.) You could redefine `browse-kill-ring-insert-as-separated' as follows: (defun browse-kill-ring-insert-as-separated (items) (let ((count 0)) (while (cdr items) (setq count (+ count 1)) (insert (format "-- %s --" count) "\n") (browse-kill-ring-insert-as-separated-1 (car items) t) (setq items (cdr items)))) (when items (browse-kill-ring-insert-as-separated-1 (car items) nil))) Why keep the window all the time when you can easily bury it with one key stroke - `q'? When calling `browse-kill-ring' again the "*Kill Ring*" buffer gets updated already. Holger