From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: pasting many times Date: Wed, 25 Oct 2006 19:54:27 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <453fb2ea$0$49199$14726298@news.sunsite.dk> References: <1161778696.317614.27570@e3g2000cwe.googlegroups.com> <1161786070.670917.225130@f16g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161805329 26716 80.91.229.2 (25 Oct 2006 19:42:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Oct 2006 19:42:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 25 21:42:07 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 1GcodM-0000Ge-Lm for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Oct 2006 21:41:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GcodM-00041d-5E for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Oct 2006 15:41:52 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!news.banetele.no!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Thunderbird 1.5.0.7 (X11/20060927) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 40 Original-NNTP-Posting-Host: 62.56.53.69 Original-X-Trace: news.sunsite.dk DXC=7aeiVmH^?LVbD]FUj; YcCZYSB=nbEKnk[LKK8UQ[oh_XG1[Bg<0aH5P\VT\m5_SIbVU_42Df:PaKXTcL2h5ahoT_kF_>m>CYcV_:I\VJYmI50[UH_?gafFWX[]01T`Rm1cHX Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:142665 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:38285 Archived-At: Holger Sparr wrote: > On 25 Oct 2006, Florian Kaufmann wrote: > >> Thank you for the lisp code. I'll try it out. >> >>> Why keep the window all the time when you can easily bury it with one >>> key stroke - `q'? >> I guess that's just my taste. When I have a task where I have to >> kill/yank a lot of text I like to have the kill ring displayed all the >> time. If it isn't displayed all the time, and I want to yank something >> I killed earlier, I first have to display the buffer, then visually >> search the item i want to yank. If its diplayed all the time, I >> visually find the item I want much faster. > > Right. > > One idea: > > (add-hook ' (lambda () (with-current-buffer "*Kill Ring*" > (browse-kill-ring-update)))) > > but I have no clue which hook would serve you best. There does not seem > to be a hook like e.g. `post-kill-hook', or does it? > > > Holger > Nasty hack - use defadvice on kill-region et all the advice function will use add-timer to call browse-kill-ring-update after a suitable delay (10 to 100ms) HTH, Colin S. Miller -- Replace the obvious in my email address with the first three letters of the hostname to reply.