zsh-workers
 help / color / mirror / code / Atom feed
* Problem with _configure argument autocomplete
@ 2009-12-14  1:04 Andrew Ryan
  2009-12-14 20:46 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Ryan @ 2009-12-14  1:04 UTC (permalink / raw)
  To: zsh-workers

The mod_wsgi configure script has the following options (taken from
./configure -h):

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-apxs=NAME        name of the apxs executable [apxs]
  --with-python=NAME      name of the python executable [python]


The "--with-python=NAME" option does not autocomplete the path
following the equal sign.

Adding the following to the end of _configure makes it autocomplete correctly:

'*=NAME*:directory:_files -/'

I don't know if this conflicts with anything else. I also don't know
how common "=NAME" is in configure script options.

Andrew


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem with _configure argument autocomplete
  2009-12-14  1:04 Problem with _configure argument autocomplete Andrew Ryan
@ 2009-12-14 20:46 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2009-12-14 20:46 UTC (permalink / raw)
  To: zsh-workers

On Sun, 13 Dec 2009 20:04:54 -0500
Andrew Ryan <nerdrew@gmail.com> wrote:
> The mod_wsgi configure script has the following options (taken from
> ./configure -h):
> 
> Optional Packages:
>   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
>   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
>   --with-apxs=NAME        name of the apxs executable [apxs]
>   --with-python=NAME      name of the python executable [python]
> 
> 
> The "--with-python=NAME" option does not autocomplete the path
> following the equal sign.
> 
> Adding the following to the end of _configure makes it autocomplete correctly:
> 
> '*=NAME*:directory:_files -/'

Surely that should be a regular file (if not an executable)?

Index: Completion/Unix/Command/_configure
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_configure,v
retrieving revision 1.2
diff -u -r1.2 _configure
--- Completion/Unix/Command/_configure	13 May 2007 19:49:00 -0000	1.2
+++ Completion/Unix/Command/_configure	14 Dec 2009 20:45:23 -0000
@@ -6,4 +6,6 @@
 		   (#s)--with- --without-
 		   (#s)--without- --with-)' \
 	      '*=(E|)PREFIX*:prefix directory:_files -/' \
-              '*=PROGRAM*:program:_command_names -e'
+              '*=PROGRAM*:program:_command_names -e' \
+	      '*=NAME*executable*:program:_command_names -e' \
+	      '*=NAME*:file:_files'

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-14 21:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-14  1:04 Problem with _configure argument autocomplete Andrew Ryan
2009-12-14 20:46 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).