From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4811 invoked by alias); 2 Sep 2016 01:26:55 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39153 Received: (qmail 19846 invoked from network); 2 Sep 2016 01:26:55 -0000 X-Qmail-Scanner-Diagnostics: from mail-pa0-f50.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.220.50):SA:0(0.0/5.0):. Processed in 0.750504 secs); 02 Sep 2016 01:26:55 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at brasslantern.com does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=yseAbwqRaO2KkSocXyeyB3CE95X6GWdR8KQX6JPbQjc=; b=Xz800mjuK4UvKnxwJYYAKshy2ZR3yZl4ko7DlKKqQuQ8qpQNV+Oxdjk5PJP4ZVqyy1 WAaKxlCymABxW03Rt1fEQTNO+0Cw4DfYrzcHIZJJ9+lTjuQi5Cn6ApAhmyR0Cs6jlzHy Q1gVp5m4tWhw3iqHyuE7wQv5B7E5Ce6SQLFPV0svVj/gKXoUWDOghxg6HjKz03qZBwrJ Ckm9mB+LYIQo4epigJZRNjMdXwoZbMma3htqErtja4einEaRWsL9lJnsFy4lR24yoE2D GWEwPl0BmGer5aItkDFbj+kLWrO0PsJZH/HBU+7Cg5m4FfrLU2hlXV7qfORo1eW+9PIn 5A4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=yseAbwqRaO2KkSocXyeyB3CE95X6GWdR8KQX6JPbQjc=; b=M1NgQh+TP2Y3ud/9QxuyfbLeGYWjtXLp+CUJSM7aerPXsPCcFzC3e9Re9mBRxTX1S3 /nro1ETrVRguiUdcopJxgAHWquGNiFcfky7rudi0h1E62dt7dvSa1KCUzEP6Q7YuO6Od Y2JcQtsSwrxwIuwnI6uylxsqIrcgbYswXqrR2vY8G5ilWvx6XM6KLETbRIXVha6qM11E 398gu2YfJPhCVDqjPNDDVe3Ecjxgbe56XSjoKZo8sgxhLpS2I7AwbCQFDWNfQODOfHrk StIabPnDtUUpP56Mads1xkELfn1sYhUrNgUa4IRPN4wgnSbh7ljM9mow7LDUQvrtbVkw uLGA== X-Gm-Message-State: AE9vXwOLyPSzFvB6qNz4foDlWiqroIuDbmbjccSdzEXteIC8wC5VVnlyTG8Z5LQSVjxWuw== X-Received: by 10.66.242.166 with SMTP id wr6mr31762180pac.147.1472779604690; Thu, 01 Sep 2016 18:26:44 -0700 (PDT) From: Bart Schaefer Message-Id: <160901182720.ZM6370@torch.brasslantern.com> Date: Thu, 1 Sep 2016 18:27:20 -0700 In-Reply-To: <854eeb20-f9b9-f918-4739-82597bbccb1a@googlemail.com> Comments: In reply to m0viefreak "Re: buggy configure completion - when both --enable-foo and --disable-foo are listed" (Aug 31, 10:27pm) References: <20160830232332.GA23779@zira.vinc17.org> <20160831030055.GC30557@fujitsu.shahaf.local2> <854eeb20-f9b9-f918-4739-82597bbccb1a@googlemail.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: buggy configure completion - when both --enable-foo and --disable-foo are listed MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 31, 10:27pm, m0viefreak wrote: } } On 31.08.2016 05:00, Daniel Shahaf wrote: } > I think that's the best we can do without writing new C code to suport } > multiline descriptions. } } This has been working well for me: } } zstyle ':completion:*:configure:*:options' command $'print -r -- "${$(COLUMNS=9999 ${~words[1]} --help)//\n #/ }"' If that works, then we ought to be able to rewrite the loop starting at about line 91 of _arguments. But that loop already seems to be looking for lines with leading spaces, whereas if I'm reading your pattern correctly you're unfolding lines with more than six leading spaces to make them part of the previous line? I have to update that to look for more than eight spaces for it to work right for zsh's ./configure and even then it mysteriously fails to pick out defaults [/usr/local] and [PREFIX] for --prefix and --exec-prefix respectively, though it gets it right for --datarootdir et al.