From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13030 invoked from network); 17 Jul 2008 11:32:42 -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; 17 Jul 2008 11:32:42 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 78559 invoked from network); 17 Jul 2008 11:32:38 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Jul 2008 11:32:38 -0000 Received: (qmail 16540 invoked by alias); 17 Jul 2008 11:32:35 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25299 Received: (qmail 16530 invoked from network); 17 Jul 2008 11:32:35 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 17 Jul 2008 11:32:35 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [208.87.233.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 67B2E80561C2 for ; Thu, 17 Jul 2008 13:32:32 +0200 (CEST) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly11g.srv.mailcontrol.com (MailControl) with ESMTP id m6HBWNmN002416 for ; Thu, 17 Jul 2008 12:32:24 +0100 Received: from news01 ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Thu, 17 Jul 2008 12:32:22 +0100 Date: Thu, 17 Jul 2008 12:32:22 +0100 From: Peter Stephenson To: zsh-workers@sunsite.dk (Zsh users list) Subject: Re: PATCH: zshaddhistoryhook (was Re: history-beginning-local function) Message-ID: <20080717123222.1b8e5edb@news01> In-Reply-To: <20080714222700.1fe8cfd4@pws-pc> References: <1186.1216057340@csr.com> <20080714222700.1fe8cfd4@pws-pc> Organization: CSR X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Jul 2008 11:32:22.0911 (UTC) FILETIME=[C7C268F0:01C8E800] X-Scanned-By: MailControl A-08-50-03 (www.mailcontrol.com) on 10.71.0.121 X-Virus-Scanned: ClamAV 0.92.1/7733/Thu Jul 17 04:32:16 2008 on bifrost X-Virus-Status: Clean On Mon, 14 Jul 2008 22:27:00 +0100 Peter Stephenson wrote: > This adds the hook zshaddhistory at the point an interactive history > line is saved. It has two bits of magic. This has been neatly doing what I need it to for a couple of days, so I've committed it. I'll eventually get around to adding some tidied up functions to use it. They might deserve a separate subdirectory of Functions. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070