zsh-workers
 help / color / mirror / code / Atom feed
* Re: Bug#411050: zsh: configure completion doesn't work after --enable-shared
       [not found] <20070215140733.GA6282@vin.lip.ens-lyon.fr>
@ 2007-02-15 15:20 ` Clint Adams
  2007-02-15 21:49   ` Vincent Lefevre
  0 siblings, 1 reply; 4+ messages in thread
From: Clint Adams @ 2007-02-15 15:20 UTC (permalink / raw)
  To: zsh-workers; +Cc: Vincent Lefevre, 411050-forwarded

> If I type:
> 
>   ./configure --enable-shared --en[TAB]
> 
> the completion doesn't work. It seems that the completion code waits
> for a --enable-shared argument. However the argument is optional.

What is the relevant output of ./configure --help ?


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

* Re: Bug#411050: zsh: configure completion doesn't work after --enable-shared
  2007-02-15 15:20 ` Bug#411050: zsh: configure completion doesn't work after --enable-shared Clint Adams
@ 2007-02-15 21:49   ` Vincent Lefevre
  2007-02-16  4:26     ` Clint Adams
  0 siblings, 1 reply; 4+ messages in thread
From: Vincent Lefevre @ 2007-02-15 21:49 UTC (permalink / raw)
  To: zsh-workers, 411050-forwarded

On 2007-02-15 10:20:55 -0500, Clint Adams wrote:
> > If I type:
> > 
> >   ./configure --enable-shared --en[TAB]
> > 
> > the completion doesn't work. It seems that the completion code waits
> > for a --enable-shared argument. However the argument is optional.
> 
> What is the relevant output of ./configure --help ?

  --enable-shared[=PKGS]  build shared libraries [default=yes]

Same problem with --enable-static, where one has:

  --enable-static[=PKGS]  build static libraries [default=yes]

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


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

* Re: Bug#411050: zsh: configure completion doesn't work after --enable-shared
  2007-02-15 21:49   ` Vincent Lefevre
@ 2007-02-16  4:26     ` Clint Adams
  2007-02-16 14:54       ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Clint Adams @ 2007-02-16  4:26 UTC (permalink / raw)
  To: zsh-workers, 411050

>   --enable-shared[=PKGS]  build shared libraries [default=yes]
> 
> Same problem with --enable-static, where one has:
> 
>   --enable-static[=PKGS]  build static libraries [default=yes]

I haven't looked at _arguments, but presumably it doesn't understand
this convention.


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

* Re: Bug#411050: zsh: configure completion doesn't work after --enable-shared
  2007-02-16  4:26     ` Clint Adams
@ 2007-02-16 14:54       ` Peter Stephenson
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Stephenson @ 2007-02-16 14:54 UTC (permalink / raw)
  To: zsh-workers, 411050

Clint Adams <clint@zsh.org> wrote:
> >   --enable-shared[=PKGS]  build shared libraries [default=yes]
> > 
> > Same problem with --enable-static, where one has:
> > 
> >   --enable-static[=PKGS]  build static libraries [default=yes]
> 
> I haven't looked at _arguments, but presumably it doesn't understand
> this convention.

This seems to help.

I notice that automatically generated --without-* and --disable-*
option specifiers offer to add an argument, too.  Presumably this is
wrong?

Index: Completion/Base/Utility/_arguments
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/Utility/_arguments,v
retrieving revision 1.19
diff -u -r1.19 _arguments
--- Completion/Base/Utility/_arguments	10 Oct 2006 21:26:52 -0000	1.19
+++ Completion/Base/Utility/_arguments	16 Feb 2007 14:52:30 -0000
@@ -217,7 +217,11 @@
 	  else
 	    odescr=
 	  fi
-	  opt2=${${opt%%\[\=*}//[^a-zA-Z0-9-]}=${dir}${odescr}
+	  if [[ $opt = (#b)(*)\[\=* ]]; then
+	    opt2=${${match[1]}//[^a-zA-Z0-9-]}=-${dir}${odescr}
+	  else
+	    opt2=${${opt}//[^a-zA-Z0-9-]}=${dir}${odescr}
+	  fi
 	  if [[ "$descr" = :\=* ]]; then
 	    cache+=( "${opt2}::${(L)${opt%\]}#*\=}: " )
 	  elif [[ "$descr" = ::* ]]; then


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


To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php

To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview


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

end of thread, other threads:[~2007-02-16 14:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20070215140733.GA6282@vin.lip.ens-lyon.fr>
2007-02-15 15:20 ` Bug#411050: zsh: configure completion doesn't work after --enable-shared Clint Adams
2007-02-15 21:49   ` Vincent Lefevre
2007-02-16  4:26     ` Clint Adams
2007-02-16 14:54       ` 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).