From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4668 invoked from network); 16 Dec 2003 09:52:53 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 16 Dec 2003 09:52:53 -0000 Received: (qmail 15013 invoked by alias); 16 Dec 2003 09:52:45 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19296 Received: (qmail 14949 invoked from network); 16 Dec 2003 09:52:44 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 16 Dec 2003 09:52:44 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [193.109.254.211] by sunsite.dk (MessageWall 1.0.8) with SMTP; 16 Dec 2003 9:52:43 -0000 X-VirusChecked: Checked X-Env-Sender: okiddle@yahoo.co.uk X-Msg-Ref: server-5.tower-36.messagelabs.com!1071568362!2527472 X-StarScan-Version: 5.1.15; banners=-,-,- Received: (qmail 16283 invoked from network); 16 Dec 2003 09:52:42 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-5.tower-36.messagelabs.com with SMTP; 16 Dec 2003 09:52:42 -0000 Received: from gmcs3.local ([158.234.142.61]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id hBG9qfuB007263 for ; Tue, 16 Dec 2003 09:52:41 GMT Received: from gmcs3.local (localhost [127.0.0.1]) by gmcs3.local (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id hBG9urr10733 for ; Tue, 16 Dec 2003 10:56:53 +0100 X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: <20031215224401.4790B84C8@pwstephenson.fsnet.co.uk> From: Oliver Kiddle References: <20031215224401.4790B84C8@pwstephenson.fsnet.co.uk> To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: PATCH: $CONTEXT Date: Tue, 16 Dec 2003 10:56:53 +0100 Message-ID: <10731.1071568613@gmcs3.local> Peter wrote: > Here is the zle parameter CONTEXT. There are four contexts start, cont, > select, vared. Let me know if you think there should be more. Would `primary' and `secondary' perhaps be better values for `start' and `cont'? That would tie up more closely with the documentation for PS1 and PS2. As for other values, reading from the minibuffer probably ought to be relevant but I suspect it isn't. Replacing accept-line caused me problems from it. Menu selection and scrolling came to mind but they take place from a primary or secondary prompt. If we're going to have a number of different minor things, a zlestate associative array like compstate might be better. Would it perhaps be worth making a convention of sticking this $CONTEXT in a second component of the zstyle context (after :zle:) when looking up styles from zle widgets? Oliver