zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: Mutt mailbox completion with "=" (was: Release status update)
Date: Sun, 16 Dec 2007 19:31:43 +0000	[thread overview]
Message-ID: <20071216193143.ac75ef46.p.w.stephenson@ntlworld.com> (raw)
In-Reply-To: <20071216173733.GM982@prunille.vinc17.org>

On Sun, 16 Dec 2007 18:37:33 +0100
Vincent Lefevre <vincent@vinc17.org> 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 <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


  reply	other threads:[~2007-12-16 19:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-16 14:08 Release status update Peter Stephenson
2007-12-16 17:37 ` Mutt mailbox completion with "=" (was: Release status update) Vincent Lefevre
2007-12-16 19:31   ` Peter Stephenson [this message]
2007-12-16 21:46     ` Vincent Lefevre
2007-12-17  0:41     ` Compilation error in Src/Modules/curses.c on HP-UX Paul Ackersviller
2007-12-17  1:42       ` Wayne Davison
2007-12-18 16:22         ` Paul Ackersviller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071216193143.ac75ef46.p.w.stephenson@ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).