From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10564 invoked from network); 16 Dec 2003 10:33:53 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 16 Dec 2003 10:33:53 -0000 Received: (qmail 16961 invoked by alias); 16 Dec 2003 10:33:48 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19297 Received: (qmail 16916 invoked from network); 16 Dec 2003 10:33:47 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 16 Dec 2003 10:33:47 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.189.183.235] by sunsite.dk (MessageWall 1.0.8) with SMTP; 16 Dec 2003 10:33:47 -0000 Received: from EXCHANGE02.csr.com (unverified) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Tue, 16 Dec 2003 10:31:12 +0000 Received: from csr.com ([192.168.144.127]) by EXCHANGE02.csr.com with Microsoft SMTPSVC(5.0.2195.5329); Tue, 16 Dec 2003 10:32:11 +0000 To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: PATCH: $CONTEXT In-reply-to: "Oliver Kiddle"'s message of "Tue, 16 Dec 2003 10:56:53 +0100." <10731.1071568613@gmcs3.local> Date: Tue, 16 Dec 2003 10:30:34 +0000 Message-ID: <4077.1071570634@csr.com> From: Peter Stephenson X-OriginalArrivalTime: 16 Dec 2003 10:32:11.0366 (UTC) FILETIME=[DD312060:01C3C3BF] Oliver Kiddle wrote: > 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. Maybe, but it's a bit ugly, and a bit less obvious what it's for. > 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. Yes, these are slightly different and not actually orthogonal to the primary context. > 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? On reflection, this makes some sense... you might different word behaviour in a vared than at the command line, for example. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************