From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22612 invoked from network); 13 Dec 2003 19:34:26 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 13 Dec 2003 19:34:26 -0000 Received: (qmail 11697 invoked by alias); 13 Dec 2003 19:34:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19282 Received: (qmail 11659 invoked from network); 13 Dec 2003 19:34:07 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 13 Dec 2003 19:34:07 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.11.8.53] by sunsite.dk (MessageWall 1.0.8) with SMTP; 13 Dec 2003 19:34:6 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id hBDJY4D05613 for zsh-workers@sunsite.dk; Sat, 13 Dec 2003 11:34:04 -0800 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1031213193404.ZM5612@candle.brasslantern.com> Date: Sat, 13 Dec 2003 19:34:04 +0000 In-Reply-To: <20031212225314.AE2BA84C8@pwstephenson.fsnet.co.uk> Comments: In reply to Peter Stephenson "PATCH: widget called when zle starts." (Dec 12, 10:53pm) References: <20031212225314.AE2BA84C8@pwstephenson.fsnet.co.uk> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: PATCH: widget called when zle starts. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Dec 12, 10:53pm, Peter Stephenson wrote: } } If it's really this simple, it's definitely worth having. I'm a bit concerned that this is going to be called at unexpected times, such as every pass around a "select" loop, or right before printing the to PS2 prompt, etc. Normally I'd think one only wants it called before the first PS1 prompt, at approximately the same time as precmd. A comment on the example: } +example(zle-line-init() { zle -K vicmd; } It might be worth mentioning that this is the same as zle-line-init() { zle vi-cmd-mode } (The trailing ';' isn't necessary, is it?)