From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21038 invoked from network); 28 Mar 2003 17:46:28 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 28 Mar 2003 17:46:28 -0000 Received: (qmail 1322 invoked by alias); 28 Mar 2003 17:46:17 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18401 Received: (qmail 1315 invoked from network); 28 Mar 2003 17:46:16 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 28 Mar 2003 17:46:16 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [195.167.170.152] by sunsite.dk (MessageWall 1.0.8) with SMTP; 28 Mar 2003 17:46:15 -0000 Received: from zefram by bowl.fysh.org with local (Exim 3.35 #1 (Debian)) id 18yxvj-0006fa-00 for ; Fri, 28 Mar 2003 17:46:15 +0000 Date: Fri, 28 Mar 2003 17:46:15 +0000 To: zsh-workers@sunsite.dk Subject: Re: PATCH: enhanced word widgets Message-ID: <20030328174615.GA6040@fysh.org> References: <25439.1048850787@csr.com> <1030328161117.ZM22723@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1030328161117.ZM22723@candle.brasslantern.com> User-Agent: Mutt/1.3.28i From: Zefram Bart Schaefer wrote: >I want the definition of a "word" to be context-sensitive. For example: >If the cursor is within a shell word that contains a "/" character, then >I want "ZLE words" to be pathname components (and transpose-words should >transpose around the nearest "/" either under the cursor or to the left); >but if the cursor is between two shell words, then I want "words" to be >shell words, e.g., pathnames including the slashes. This sounds a lot like Emacs' concept of sexprs -- roughly, a sexpr is an HLL expression, so sexprs can be nested. sexprs are also, roughly, the level at which we want to do completion. Can this concept be usefully factored out? -zefram