From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5323 invoked from network); 30 Jan 2009 19:59:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 30 Jan 2009 19:59:18 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 30928 invoked from network); 30 Jan 2009 19:59:14 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 30 Jan 2009 19:59:14 -0000 Received: (qmail 18455 invoked by alias); 30 Jan 2009 19:59:10 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26496 Received: (qmail 18439 invoked from network); 30 Jan 2009 19:59:09 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 30 Jan 2009 19:59:09 -0000 Received: from mail.o2.co.uk (yoda.london.02.net [82.132.130.151]) by bifrost.dotsrc.org (Postfix) with ESMTP id 0467E80271F0 for ; Fri, 30 Jan 2009 20:59:06 +0100 (CET) Received: from sc.homeunix.net (78.105.235.196) by mail.o2.co.uk (8.0.013.3) (authenticated as stephane.chazelas) id 497492AB029E2EA9; Fri, 30 Jan 2009 19:59:05 +0000 Received: from chazelas by sc.homeunix.net with local (Exim 4.69) (envelope-from ) id 1LSzW4-0003nH-OK; Fri, 30 Jan 2009 19:59:04 +0000 Date: Fri, 30 Jan 2009 19:59:04 +0000 From: Stephane Chazelas To: Michal Maruska Cc: Zsh Hackers' List Subject: Re: kill-region hook Message-ID: <20090130195904.GB14482@sc.homeunix.net> Mail-Followup-To: Michal Maruska , Zsh Hackers' List References: <87fxj1psfv.fsf@linux2.maruska.tin.it> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87fxj1psfv.fsf@linux2.maruska.tin.it> User-Agent: Mutt/1.5.16 (2007-09-19) X-Virus-Scanned: ClamAV 0.92.1/8927/Fri Jan 30 20:30:27 2009 on bifrost X-Virus-Status: Clean On Fri, Jan 30, 2009 at 01:07:32AM +0100, Michal Maruska wrote: > > Hello, > > I would like to have a hook (a shell function) run when "kill-buffer" is > populated. > Motivation: I would use it to promote the string to X selection (via > an Escape sequence of rxvt). [...] Note that I once did something like that: http://stchaz.free.fr/mouse.zsh I had to wrap most widgets that use the killring. -- Stéphane