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

Re: _history-complete-older buggy



On Sun, 23 Nov 2008 10:51:16 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Nov 23,  1:01pm, Mikael Magnusson wrote:
> }
> } If i type a * and press _history-complete-older, i get this output
> } 
> } _all_labels:39: unmatched "
>
> I note this comment in comp_match():
> 
> 	     * Almost certainly this fails in some complicated cases
> 	     * but it should catch the basic ones.
> 
> I wonder if comp_match() should set noerrs before parse_subst_string()?
> Or perhaps there's a more comprehensive (and less hackish) fix.

Unfortunately quotation in completion has proved too horrific for me even
to be able to make it better rather than worse so far...  I didn't look at
this particular example, but the similar case of nested quotes was using up
vast amounts of my time without me really getting very far.  I suspect,
without looking at this case in detail, that the noerrs route and an
extended comment is the best that's likely to happen this side of the
fourth millenium.  It's possible there's a local fix of some sort; finding
it is another matter.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



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