[Bash-completion-devel] Improve make target completion

Tristan Wibberley tristan.wibberley at gmail.com
Tue Sep 11 22:37:37 UTC 2012


Igor,

I've attached a new version of incremental completion that is roughly
as fast as the previous non-incremental version and is also a bit
clearer than any incremental completion patch I've sent so far.

Also answers to your questions below:


On 11 September 2012 21:21, Igor Murzov <e-mail at date.by> wrote:
>
> Looks like this one works much slower than the previous.

Fixed by reverting key elements to be as in the previous incremental
completion change, but changed the way "mode" modifies the output to
be a bit clearer.


>  * if you want to use _make_sed_escape() only once, then
>    why you need it at all?

That was just for clarity. The attached patch reverts to not bothering
- but it does add escaping for comma because the clever expression to
output only part of the name can use less escaping inline by following
the form s,lexpr,rexpr, instead of s/lexpr/rexpr/

Regards
Tristan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: commit-49a24cd-incremental-completion
Type: application/octet-stream
Size: 2820 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20120911/774ff121/attachment.obj>


More information about the Bash-completion-devel mailing list