bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#57673: [PATCH] Parse --help messages for pcomplete


From: Lars Ingebrigtsen
Subject: bug#57673: [PATCH] Parse --help messages for pcomplete
Date: Thu, 08 Sep 2022 14:39:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Augusto Stoffel <arstoffel@gmail.com> writes:

> Find attached a “worse is better” approach for pcomplete, where we parse
> help messages to generate a list of completions.

Hm, interesting.  Perhaps Stefan has comments here; added to the CCs.

> This is still a sketch.  I've added pcomplete functions for a random
> selection of commands to see if this works reasonably, and I think it
> probably does.  But in any case I don't think it would make sense to try
> and add completions as detailed as the ones bash provides; there is an
> awful lot of logic in the files under /usr/share/bash-completion and I
> don't think anyone would want to redo that work.

I'm wholly unfamiliar with how bash does completions.  But is there any
reasonable way to reuse the bash completion framework here?






reply via email to

[Prev in Thread] Current Thread [Next in Thread]