Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bug: mutt completion doesn't complete address book
- X-seq: zsh-workers 22893
- From: Andrey Borzenkov <arvidjaar@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: bug: mutt completion doesn't complete address book
- Date: Sat, 21 Oct 2006 13:15:30 +0400
- In-reply-to: <20061013001243.GA32281@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20061013001243.GA32281@xxxxxxxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
nobody reoplied th this (22872) and 22868 and it was not committed either.
Both look OK ti me. Should I go ahead and commit them or are there some
reasons no to?
On Friday 13 October 2006 04:12, arno. wrote:
> Hi,
> when I try to use completion with mutt, it is supposed to display my
> address book, but instead only completes with local addresses.
>
> $mutt <TAB>
> arno root games ...
>
> That's because in Completion/Unix/_email_addresses
> variable muttrc is defined with : muttrc="~/.muttrc"
> and ~ seems to be not expanded when used in :
>
> plugins=(
> ${${(k)functions[(I)_email-*]#*-}:#(${(kj.|.)~files})}
> $files(Ne:'REPLY=( ${(k)files[(r)$REPLY]} ):')
> )
> and therefore, _email-mutt is not triggered.
>
> When removing the double quotes, completion works fine.
>
> On IRC, ft also pointed another solution :
> use ${~muttrc} instead of $muttrc in :
> files=( MH ${MH:-~/.mh_profile} mutt $muttrc mush ~/.mushrc mail
> ${MAILRC:-~/.mailrc} pine ~/.addressbook )
>
> arno
>
>
> Index: Completion/Unix/Type/_email_addresses
> ===================================================================
> RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_email_addresses,v
> retrieving revision 1.4
> diff -u -r1.4 _email_addresses
> --- Completion/Unix/Type/_email_addresses 8 Jun 2005 12:08:06 -0000 1.4
> +++ Completion/Unix/Type/_email_addresses 13 Oct 2006 00:03:06 -0000
> @@ -129,7 +129,7 @@
>
> # get list of all plugins except any with missing config files
> if ! zstyle -s ":completion:${curcontext}:email-addresses" muttrc
> muttrc; then - [[ -e ~/mutt/muttrc ]] && muttrc="~/mutt/muttrc" ||
> muttrc="~/.muttrc" + [[ -e ~/mutt/muttrc ]] && muttrc=~/mutt/muttrc ||
> muttrc=~/.muttrc fi
> files=( MH ${MH:-~/.mh_profile} mutt $muttrc mush ~/.mushrc mail
> ${MAILRC:-~/.mailrc} pine ~/.addressbook ) plugins=(
>
> __________
> http://www.newhost.ru - ÃîâÝëÙ ÔÞÜ ÔÛï ²ÐèÕÓÞ áÐÙâÐ!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFOeU1R6LMutpd94wRAg3gAKCtMEfkbVGMVvHYcXda5FOxRXmoFwCeKAcr
wjPOAhzUalcfNZuvtqVHvMk=
=A37j
-----END PGP SIGNATURE-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author