27 Commits

Author SHA1 Message Date
Tristan Wibberley
4b209b0b17 make: Fix detection of intermediate targets where make has changed its database whitespace 2015-05-18 20:45:31 +03:00
Tristan Wibberley
f9115ce0bb make: Add __BASH_MAKE_COMPLETION__ variable
This variable is there so that makefiles can avoid adding targets that shouldn't be offered.
A typical example would be targets added to dependency files by the -MP option to gcc.
2015-04-19 16:02:40 +03:00
Tristan Wibberley
54d53c6227 make: completion shouldn't be confused by the output of $(info confuse: make) 2014-05-20 02:24:33 +04:00
Ville Skyttä
e3edf7ac42 gcc, lintian, make, pkgadd, slackpkg: grep -> "command grep" (Debian: #734095) 2014-01-06 17:45:48 +02:00
Rainer Müller
3ac523f57e make: Fix basic regex for portability (Alioth: #314345) 2013-08-24 04:13:57 +04:00
Igor Murzov
f230cfddbd make: Use only posix basic regexps with sed (Alioth: #314345) 2013-08-14 02:34:09 +04:00
Ville Skyttä
c0818b005a make: Make work in POSIX mode.
<(...) is not available in POSIX mode, and for example our test suite
is run in that mode.
2013-02-05 21:42:04 +02:00
Ville Skyttä
2758c4fd7e make: Don't leak $mode. 2013-02-04 23:51:04 +02:00
Ville Skyttä
b93e3999b0 make: Convert internal variable names to lowercase, indentation fix. 2012-09-12 21:02:10 +03:00
Tristan Wibberley
39f00f92e5 make: incremental completion for make with compact display 2012-09-12 13:58:56 +04:00
Igor Murzov
2babb45402 make: Do not append space if target is a filepath.
This line was mistakenly dropped from the commit b28d710.
2012-09-06 17:54:19 +04:00
Tristan Wibberley
b28d7108d3 make: convert make completion to use smarter parser 2012-09-06 01:12:54 +04:00
Ville Skyttä
31e262bcaf colormake: New make alias completion (LP: #743208, Debian: #682557).
Thanks to "mreichardt".
2012-07-28 13:08:30 +03:00
Ville Skyttä
f7240b82a4 make: Add generic variable completion. 2012-05-11 23:28:57 +03:00
Ville Skyttä
c73cf422bd make -j: Complete up to number of CPUs * 2. 2011-11-11 21:01:06 +02:00
Ville Skyttä
3b8ef29ef3 Cleanups: Use [[ instead of [. 2011-11-09 23:28:11 +02:00
Ville Skyttä
d54db3507d make: Add -j/--jobs completion. 2011-11-09 18:36:08 +02:00
Ville Skyttä
0d10b94e7a Move Emacs indentation settings from every file to .dir-locals.el. 2011-11-01 22:14:45 +02:00
Ville Skyttä
20c05b43b6 Load completions in separate files dynamically, get rid of have(). 2011-10-12 00:19:50 +03:00
Ville Skyttä
a593f4512a make: Add bunch of option argument completions. 2011-05-11 19:31:13 +03:00
Ville Skyttä
7c6cca0630 make: Use _parse_help/_parse_usage instead of hardcoded option list. 2011-05-11 19:30:16 +03:00
Ville Skyttä
a54857cd05 _init_completion: Add -s for splitting long options, use it in completions. 2011-05-02 00:04:26 +03:00
Ville Skyttä
6e809d032c Remove = from COMP_WORDBREAKS when using _split_longopt().
Without this, it does not do anything useful in bash >= 4.0.
2011-04-25 00:09:50 +03:00
Ville Skyttä
0cb6263424 Use _init_completion() in completions/m*. 2011-04-20 22:42:55 +03:00
Ville Skyttä
9af6f3504e Abort completion file loading earlier if required commands are not available.
Cuts ~10% from bash completion load time on two different systems I
just tested.
2011-04-05 00:37:55 +03:00
Ville Skyttä
0f450219b6 Remove most "-o filenames" options to "complete".
Turn it on dynamically when needed instead; see doc/styleguide.txt for
a longer explanation.  This fixes many non-filename completions which
had been previously more or less broken due to unwanted
escape-as-filenames behavior.
2010-11-01 19:29:45 +02:00
Guillaume Rousse
cb7fc2f7c4 rename 'contrib' directory to 'completions' 2010-09-12 16:42:21 +02:00