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.
Index: Completion/Base/Utility/_describe
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/Utility/_describe,v
retrieving revision 1.16
diff -u -p -r1.16 _describe
--- Completion/Base/Utility/_describe 5 Jun 2003 09:51:33 -0000 1.16
+++ Completion/Base/Utility/_describe 12 Apr 2009 14:01:32 -0000
@@ -97,10 +97,10 @@ while _tags; do
if [[ -n $_mats ]]; then
compadd "$_opts[@]" "${(@)_expl:/-J/-2V}" -D $_strs - \
- "${(@M)${(@P)_mats}##([^:\\]|\\?)##}"
+ "${(@)${(@M)${(@P)_mats}##([^:\\]|\\?)##}//\\}"
else
compadd "$_opts[@]" "${(@)_expl:/-J/-2V}" -D $_strs - \
- "${(@M)${(@P)_strs}##([^:\\]|\\?)##}"
+ "${(@)${(@M)${(@P)_strs}##([^:\\]|\\?)##}//\\}"
fi
done
set - "$_argv[@]"
Attachment:
signature.asc
Description: This is a digitally signed message part.