Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
xsltproc completion accepts only one --param / --stringparam option
- X-seq: zsh-workers 30497
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: xsltproc completion accepts only one --param / --stringparam option
- Date: Wed, 6 Jun 2012 15:05:06 +0200
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
There's a bug in the xsltproc completion code, which accepts only
one --param / --stringparam option. For example:
$ xsltproc -[TAB]
Completing option
[...]
--stringparam -- pass a parameter
[...]
$ xsltproc --stringparam [TAB]
Completing name
$ xsltproc --stringparam n1 [TAB]
Completing value
$ xsltproc --stringparam n1 v1 -[TAB]
Completing option
but --stringparam is no longer listed.
$ xsltproc --stringparam n1 v1 --stringparam n2 v2 [TAB]
Here only an option is accepted. Trying to complete on a filename
(stylesheet) doesn't work.
The attached patch fixes the problem.
Also reported as a Debian bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676357
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
--- /usr/share/zsh/functions/Completion/Unix/_xmlsoft 2012-02-29 00:55:02.000000000 +0100
+++ share/zsh/site-functions/_xmlsoft 2012-06-06 14:48:32.000000000 +0200
@@ -41,8 +41,8 @@
'--maxparserdepth[increase the maximum parser depth]:depth' \
'--html[input document is an HTML file]' \
'--encoding[the input document character encoding]:encoding:(${encoding[@]})' \
- '--param[pass a parameter,value pair]:name::value (xpath expression)' \
- '--stringparam[pass a parameter]:name::value' \
+ '*--param[pass a parameter,value pair]:name::value (xpath expression)' \
+ '*--stringparam[pass a parameter]:name::value' \
'--path[provide a set of paths for resources]:paths:_files -/' \
'--nonet[refuse to fetch DTDs or entities over network]' \
'--nowrite[refuse to write to any file or resource]' \
Messages sorted by:
Reverse Date,
Date,
Thread,
Author