From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23764 invoked from network); 16 Dec 2007 19:33:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 16 Dec 2007 19:33:47 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 41537 invoked from network); 16 Dec 2007 19:33:37 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 16 Dec 2007 19:33:37 -0000 Received: (qmail 18675 invoked by alias); 16 Dec 2007 19:33:33 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24268 Received: (qmail 18662 invoked from network); 16 Dec 2007 19:33:32 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 16 Dec 2007 19:33:32 -0000 Received: from virusfilter.dotsrc.org (bifrost [127.0.0.1]) by spamfilter.dotsrc.org (Postfix) with ESMTP id 8B0828058F54 for ; Sun, 16 Dec 2007 20:30:33 +0100 (CET) Received: from mtaout03-winn.ispmail.ntl.com (mtaout03-winn.ispmail.ntl.com [81.103.221.49]) by bifrost.dotsrc.org (Postfix) with ESMTP for ; Sun, 16 Dec 2007 20:30:33 +0100 (CET) Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com with ESMTP id <20071216193416.FEVP11141.mtaout03-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com> for ; Sun, 16 Dec 2007 19:34:16 +0000 Received: from pws-pc ([82.6.96.116]) by aamtaout02-winn.ispmail.ntl.com with SMTP id <20071216193355.VVED17393.aamtaout02-winn.ispmail.ntl.com@pws-pc> for ; Sun, 16 Dec 2007 19:33:55 +0000 Date: Sun, 16 Dec 2007 19:31:43 +0000 From: Peter Stephenson To: Zsh hackers list Subject: Re: Mutt mailbox completion with "=" (was: Release status update) Message-Id: <20071216193143.ac75ef46.p.w.stephenson@ntlworld.com> In-Reply-To: <20071216173733.GM982@prunille.vinc17.org> References: <21585.1197814087@pws-pc> <20071216173733.GM982@prunille.vinc17.org> X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP On Sun, 16 Dec 2007 18:37:33 +0100 Vincent Lefevre wrote: > On 2007-12-16 14:08:07 +0000, Peter Stephenson wrote: > > - Please do *not* assume I will get around to fixing shell-code > > completion problems myself. I have quite enough to do otherwise. > > The two outstanding problems I'm aware of are a Unicode argument > > not appearing and Mutt mailbox completion with "=" (for which it > > sounds like the compset argument needs tweaking). > > Here this works with > > mutt -f '=[TAB] > > but not with > > mutt -f \=[TAB] Presumably something like the following fixes this particular problem? Index: Completion/Unix/Type/_mailboxes =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_mailboxes,v retrieving revision 1.3 diff -u -r1.3 _mailboxes --- Completion/Unix/Type/_mailboxes 28 Feb 2006 11:57:20 -0000 1.3 +++ Completion/Unix/Type/_mailboxes 16 Dec 2007 19:32:13 -0000 @@ -150,7 +150,7 @@ fi ;; (*:mutt:*) - if compset -P '='; then + 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/}") -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/