unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Holger Sparr <sparr+usenet@mfk.tu-dresden.de>
Subject: Re: pasting many times
Date: Wed, 25 Oct 2006 14:49:37 +0200	[thread overview]
Message-ID: <lnods0r25a.fsf@mfk.tu-dresden.de> (raw)
In-Reply-To: 1161778696.317614.27570@e3g2000cwe.googlegroups.com

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

  reply	other threads:[~2006-10-25 12:49 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.227.1161762333.27805.help-gnu-emacs@gnu.org>
2006-10-25  8:20 ` pasting many times spamfilteraccount
2006-10-25  9:13   ` Sam Peterson
2006-10-25 15:22   ` Drew Adams
2006-10-25 12:18 ` Florian Kaufmann
2006-10-25 12:49   ` Holger Sparr [this message]
2006-10-25 14:21     ` Florian Kaufmann
2006-10-25 15:18       ` Holger Sparr
2006-10-25 18:54         ` Colin S. Miller
2006-10-26  7:49           ` Holger Sparr
2006-10-26 18:24             ` Colin S. Miller
2006-10-27  7:42               ` Holger Sparr
2006-10-28  5:17                 ` don provan
2006-10-28 10:13                   ` Colin S. Miller
2006-10-25  7:45 Bourgneuf Francois
2006-10-25 19:57 ` Eli Zaretskii
     [not found] <mailman.157.1161613927.27805.help-gnu-emacs@gnu.org>
2006-10-23 15:31 ` Holger Sparr
2006-10-23 16:14   ` Baurzhan Ismagulov
2006-10-23 19:55     ` Dieter Wilhelm
2006-10-23 20:52       ` Baurzhan Ismagulov
2006-10-23 21:15         ` Dieter Wilhelm
2006-10-24 19:36           ` Baurzhan Ismagulov
     [not found]       ` <mailman.179.1161636720.27805.help-gnu-emacs@gnu.org>
2006-10-24  8:54         ` Mathias Dahl
2006-10-24 13:46           ` Drew Adams
2006-10-24 20:13             ` Dieter Wilhelm
2006-10-24 20:22               ` Drew Adams
2006-10-24 21:22                 ` Dieter Wilhelm
     [not found]               ` <mailman.210.1161721351.27805.help-gnu-emacs@gnu.org>
2006-10-25 18:09                 ` rgb
2006-10-26 17:02                   ` Shanks N
     [not found]                   ` <mailman.281.1161883844.27805.help-gnu-emacs@gnu.org>
2006-10-26 17:49                     ` David Kastrup
2006-10-27 17:39                       ` Dieter Wilhelm
2006-10-27 19:09                       ` Sam Peterson
     [not found]     ` <mailman.171.1161633348.27805.help-gnu-emacs@gnu.org>
2006-10-24  6:03       ` Holger Sparr
  -- strict thread matches above, loose matches on Subject: below --
2006-10-23 14:32 Baurzhan Ismagulov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=lnods0r25a.fsf@mfk.tu-dresden.de \
    --to=sparr+usenet@mfk.tu-dresden.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).