Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: buggy configure completion - when both --enable-foo and --disable-foo are listed
- X-seq: zsh-workers 39153
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: buggy configure completion - when both --enable-foo and --disable-foo are listed
- Date: Thu, 1 Sep 2016 18:27:20 -0700
- 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==
- In-reply-to: <854eeb20-f9b9-f918-4739-82597bbccb1a@googlemail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20160830232332.GA23779@zira.vinc17.org> <20160831030055.GC30557@fujitsu.shahaf.local2> <854eeb20-f9b9-f918-4739-82597bbccb1a@googlemail.com>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author