From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16126 invoked from network); 18 Jan 2009 13:23:56 -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=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; 18 Jan 2009 13:23:56 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 52879 invoked from network); 18 Jan 2009 13:23:50 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Jan 2009 13:23:50 -0000 Received: (qmail 25898 invoked by alias); 18 Jan 2009 13:23:46 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26355 Received: (qmail 25888 invoked from network); 18 Jan 2009 13:23:45 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 18 Jan 2009 13:23:45 -0000 Received: from gentoo64.gentoo64.net (gentoo64.net [81.169.129.126]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 62F5D8028ACA for ; Sun, 18 Jan 2009 14:23:42 +0100 (CET) Received: from gluon.atom (cable-62-117-10-181.cust.blue-cable.de [62.117.10.181]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gentoo64.gentoo64.net (Postfix) with ESMTP id 1BBC7FC060 for ; Sun, 18 Jan 2009 14:23:39 +0100 (CET) From: tek Reply-To: tek@moonitor.org To: zsh-workers@sunsite.dk Subject: Re: precmd reserved names Date: Sun, 18 Jan 2009 14:23:29 +0100 User-Agent: KMail/1.9.10 References: <200901142124.14881.tek@moonitor.org> <20090115144612.328d1482@news01> In-Reply-To: <20090115144612.328d1482@news01> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4880477.UB3bfBueE6"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200901181423.39539.tek@moonitor.org> X-Virus-Scanned: ClamAV 0.92.1/8874/Sun Jan 18 06:02:00 2009 on bifrost X-Virus-Status: Clean --nextPart4880477.UB3bfBueE6 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Yes, sorry, I should have been more detailed about this - it is in a prompt= =20 theme file, called prompt_foo_setup, and the file lies in a directory added= =20 to $fpath. I load the prompt with 'prompt foo', and when the function is=20 named prompt_foo_precmd, it isn't executed, but it is otherwise. Peter wrote: > On Wed, 14 Jan 2009 21:24:10 +0100 > > tek wrote: > > I noticed that prompt_THEME_precmd(in a prompt theme) isn't executed > > anymore if added to precmd_functions in 4.3.9, while it was in 4.3.6. As > > I didn't find anything in the ChangeLog, I thought maybe someone forgot > > to mention that. > > It can't be quite that simple. > > % prompt_THEME_precmd() { print Executing function; } > % precmd_functions=3D(prompt_THEME_precmd) > Executing function > > Do you mean something different? For example, do you mean "doesn't get > automatically added to precmd_functions"? That also seems to be working > for me. > > Can you reproduce this starting from "zsh -f"? --nextPart4880477.UB3bfBueE6 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAklzLVsACgkQQG4NExHanoOktwCdE71aAm8jr+ktv4XNkmfIls01 uyAAn19p4eUkS/RQbYGFdyyIkSBNbNsL =sRWN -----END PGP SIGNATURE----- --nextPart4880477.UB3bfBueE6--