From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28946 invoked from network); 23 Mar 2001 18:54:25 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 23 Mar 2001 18:54:25 -0000 Received: (qmail 3504 invoked by alias); 23 Mar 2001 18:54:12 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3738 Received: (qmail 3492 invoked from network); 23 Mar 2001 18:54:11 -0000 From: "Bart Schaefer" Message-Id: <1010323185400.ZM28172@candle.brasslantern.com> Date: Fri, 23 Mar 2001 18:54:00 +0000 In-Reply-To: <20010323183713.AAB5026267@mercea.net> Comments: In reply to Scott Lipcon "Re: new completion modifications" (Mar 23, 1:37pm) References: <20010323183713.AAB5026267@mercea.net> X-Mailer: Z-Mail (5.0.0 30July97) To: Scott Lipcon Subject: Re: new completion modifications Cc: zsh-users@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 23, 1:37pm, Scott Lipcon wrote: } Subject: Re: new completion modifications } } OK - I copied _mailboxes to my zsh functions directory, and modified it } to include mh_cache: } } (*:mutt:*) } mbox_names=( "${_mutt_cache[@]}" "${_mailbox_cache[@]}" } "${_maildir_cache[@]}" "${_mh_cache[@]}" ) } mbox_short=( \! \< \> );; Sigh. The differences are bigger than I thought. Try sticking this in there in place of the above: (*:mutt:*) if compset -P '='; then mbox_names=( "${_mutt_cache[@]#[+=]}" "${(@)_mbox_cache#$~maildirectory/ }" "${(@)_maildir_cache#$~maildirectory/}" "${(@)_mh_cache#$~maildirectory/}") elif compset -P +; then mbox_names=( "${_mutt_cache[@]#[+=]}" "${(@)_mbox_cache#$~maildirectory/ }" "${(@)_maildir_cache#$~maildirectory/}" "${(@)_mh_cache#$~maildirectory/}") else mbox_names=( "${_mutt_cache[@]}" "${_mailbox_cache[@]}" "${_maildir_cache[@]}" "${_mh_cache[@]}" ) mbox_short=( \! \< \> ) fi ;; If that doesn't work, you're going to have to upgrade. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net