Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Escaping of : in a _describe completion

On Sun, 12 Apr 2009 18:09:49 +0400
Andrey Borzenkov <arvidjaar@xxxxxxxxx> wrote:
> On Saturday 11 of April 2009 13:22:00 Frank Blendinger wrote:
> > Could I get my old behaviour somehow, with a menu of my etherwake
> > completion showing up after the second <Tab>?
> >
> Please try if attached patch helps (and does not break something else). 
> I do not claim to understand how quoting is actually handled by 
> completion but at least compdescribe does remove backslashes and compadd 
> does not seem to.
> I'd like to get final word from Peter before committing this. Also some 
> more clear statement in manual is needed. 

Probably ought to be unquoting backslashes rather than removing them
completely; something like replacing \\(#b)(?) with $match[1], I
suppose.  Otherwise, if it works and nobody's spotted any side effects
yet we probably just need to try it.

Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/

Messages sorted by: Reverse Date, Date, Thread, Author