Zach Whaley
ea7b4d4b2d
40200: Updated Perforce completion
2017-01-27 18:05:05 +00:00
Peter Stephenson
8575e2ba57
40425: HAVE_* tests for getutxent etc.
...
Not yet 100% clear where the #if's go, depends on how various
systems implement the old or new formats.
2017-01-27 10:26:34 +00:00
Peter Stephenson
1633b2800d
40423: WARN_NESTED_VARS, conversion the other way
2017-01-26 20:07:51 +00:00
Peter Stephenson
80e47a9a5d
40422: More WARN_NESTED_VAR cases.
...
Converting type when using a calling scope was broken in the
original patch.
2017-01-26 19:58:17 +00:00
Peter Stephenson
b3637caa90
40413: WARN_NESTED_VAR subscripted variable fix.
...
No warning needed on paramter that's created temporarily to
help assignment.
2017-01-25 09:35:30 +00:00
Daniel Shahaf
2854a67e09
40403/0004: vcs_info set-patch-format helper: Part #4 .
...
This also fixes the %a (${hook_com[all-n]}) expando in the hg backend:
before this change, it counted only unapplied changes.
2017-01-25 04:22:32 +00:00
Daniel Shahaf
edd9798de7
40403/0003: vcs_info set-patch-format helper: Part #3 .
2017-01-25 04:22:32 +00:00
Daniel Shahaf
2702857334
40403/0002: vcs_info set-patch-format helper: Part #2 .
...
Not all callers reset ${hook_com}, but those that don't, immediately
overwrite it a few lines later.
2017-01-25 04:22:31 +00:00
Daniel Shahaf
0ea1957608
40403/0001: vcs_info set-patch-format helper: Part #1 .
2017-01-25 04:22:30 +00:00
Daniel Shahaf
57013f8b96
40401: vcs_info git: Fix the %c patch-format expando.
...
Before this change, ${git_unapplied_s} was unused and the %c
(${hook_com[unapplied]}) expando evaluated to the number of digits in
the string returned by the gen-unapplied-string hook (or to the number
of digits in the number of unapplied patches, when there was no such
hook).
2017-01-25 04:22:30 +00:00
Daniel Shahaf
b0784025b1
40396: vcs_info quilt: More documentation of '%Q' and 'use-quilt'.
2017-01-25 04:22:29 +00:00
Daniel Shahaf
699a38e698
40392: vcs_info patch2subject: Support git show
output.
2017-01-25 04:22:28 +00:00
Mikael Magnusson
0e33ebc651
posted: Make D07 recognize more spellings of pl_PL.UTF-8
...
FreeBSD and probably others use this spelling in locale -a output, while
glibc uses the utf8 spelling.
2017-01-24 16:22:39 +01:00
Peter Stephenson
3e5badb0c9
40404: Only quote command in whence output with -v.
2017-01-24 11:12:41 +00:00
Peter Stephenson
c861b17bbf
40391: Add WARN_NESTED_VAR option and functions -W.
...
These are companions to WARN_CREATED_GLOBAL, warning when a variable
from an enclosing scope is altered.
2017-01-23 09:50:57 +00:00
Daniel Shahaf
8cb130fe73
unposted: Etc/BUGS: Record users/20807 vcs_info quilt issue.
2017-01-23 03:37:02 +00:00
Peter Stephenson
d219f00609
43080: a few more tests for autoload with absolute path
2017-01-18 09:59:42 +00:00
Peter Stephenson
4d6097657c
40375: autoload with explicit path mustn't trash already loaded function.
...
Also remove unnecessary dupstring() on already duplicated string
when expanding =cmd.
2017-01-18 09:57:55 +00:00
Peter Stephenson
60a4f6cb67
unposted: "autooad ~..." also completes file
2017-01-17 18:03:26 +00:00
Peter Stephenson
c2f1951ba3
40369: code should have been committed with 0a2d92f98
2017-01-17 10:05:32 +00:00
Peter Stephenson
2e76fb80b4
40372: turn off POSIX_IDENTIFIERS option in completion
2017-01-16 17:52:51 +00:00
Peter Stephenson
0a2d92f98c
40369: quote command paths in whence -v
2017-01-16 17:51:27 +00:00
Peter Stephenson
f90a0447aa
40353 with tweaks to whence -v: extend directory cache use.
...
Now used for all autoloaded functions after load, including those
where the file was found along fpath, reducing duplication of
directory names.
2017-01-16 10:31:56 +00:00
Peter Stephenson
ebd7fdd932
40362: Fix setting of parameter values in compvalues
2017-01-15 17:15:04 +00:00
Earnestly
51c5c85c23
40355: _mpc: improve playlist completion
2017-01-13 20:56:47 -05:00
Oliver Kiddle
f22960c8e1
40345: update lsusb completion
2017-01-13 03:52:25 +01:00
Oliver Kiddle
cfc8165bc1
40344: new lsblk completion
2017-01-13 00:52:12 +01:00
Peter Stephenson
00f16c8e68
unposted: one missing *name = NULL
2017-01-12 20:59:24 +00:00
Peter Stephenson
178e62dbfe
40342: Add directory name cache for autoload file paths.
...
This renders "autoload /blah/blah/*" as efficient as use of
fpath.
2017-01-12 20:56:20 +00:00
Peter Stephenson
33799ae2b0
40335: More care with autoload function path.
...
If doing "autoload -X", the path present might actually be location
of file containing the function with the autoload -X. Add
an explicit flag to say it's a directory for autoload.
2017-01-12 13:54:29 +00:00
Jens Elkner
d3cf8816dc
40333: Fix the watch interface for utmpx
2017-01-12 09:58:51 +00:00
Peter Stephenson
12100eb6b9
40332: completion for new autoload features
2017-01-11 21:24:33 +00:00
Oliver Kiddle
b6082cd1e2
40321: _arguments option groups
2017-01-11 20:50:02 +01:00
Peter Stephenson
47b7f2adef
unposted: more care with shell function filename.
...
When updating shfunc structure to change filename we should be
careful to free whatever's there already, we may now be the
directory in which to find the function definition. After loading
the field contains the full name of the file.
2017-01-11 12:11:22 +00:00
Peter Stephenson
f26d1ba6b0
Add features associated with autoloading a function using an absolute
...
path.
-d defaults to normal fpath
-r remembers the path without actually loading. May be combined with -d.
-R does the same but it's an error if not found
-X can now take a directory path: this is used to output not yet loaded
functions that have an associated path.
2017-01-11 11:26:13 +00:00
Peter Stephenson
34656ec2f0
40305: fix some problems redisplaying command line after interrupt.
...
Back off previous fix as this only covered some subset of problems.
Remaining problems happend after reset-prompt in TRAPINT.
One was in complist and is fixed by not attempting to list after
an error or interrupt.
The other was owing to not resetting clearflag when ZLE
was re-entered.
2017-01-10 19:18:52 +00:00
Peter Stephenson
bb218704d2
40306 with doc tweaks: Change behaviour expanding alias in () function definition.
...
Now an error unless the () is part of the same error as the name.
Add ALIAS_FUNC_DEF option to allow it again.
2017-01-10 19:14:26 +00:00
Daniel Shahaf
b088b67a54
40303: _bts: Add more subcommands.
...
Since 'done' is deprecated, stop offering it but do complete after it.
2017-01-10 03:57:30 +00:00
Phil Pennock
1db0eea95a
40318 (in part): Document echo \c behaviour.
2017-01-10 03:48:25 +00:00
Daniel Shahaf
ebcc57210d
40302: New _swaks completion (common options only).
2017-01-10 03:37:34 +00:00
Daniel Shahaf
9b4d67b464
unposted: LICENCE: Update year to $now (2017).
2017-01-08 03:21:05 +00:00
Peter Stephenson
48cadf48ff
40285: Be more careful with pattern allocation in history isearch.
...
If there are ZLE hooks to be called, they may use patterns, in
which case it's not safe to allocate the isearch pattern in the
static buffer.
2017-01-06 17:42:13 +00:00
Daniel Shahaf
9d87cd948e
40270 (after 39995): Add cross-reference for robustness.
2017-01-05 15:58:18 +00:00
Daniel Shahaf
385cb9b9f0
40264: _man: Complete all sections after '-a'.
...
Followup to 37634.
2017-01-05 15:58:17 +00:00
Daniel Shahaf
24337b3c60
users/22320: Etc/BUGS: Add 40240, label 40106.
2017-01-05 15:58:16 +00:00
Oliver Kiddle
c2b7c5abbe
40269: handle option exclusion within current word for clumped options
...
This replaces the change made in 13999 with an alternative approach.
2017-01-05 13:31:13 +01:00
Oliver Kiddle
8be732cbcc
40227: handle _arguments sets and rest arguments starting with a dash
...
This is a new approach to the problem first covered by 39611: checking
to see if an option-like argument belongs to one of the other sets.
2017-01-04 14:50:56 +01:00
Oliver Kiddle
a69b19d215
40226: tidy up some of the _arguments set code
...
Remove old code for applying explicit exclusions between sets which
fixes some odd behaviour. Some struct members were unused. Also added
some comments and test cases.
2017-01-04 14:42:39 +01:00
Barton E. Schaefer
c4dba4f2e6
users/22319: ${ary1:^ary2} should not change isarr state of expansion of ary1
...
Unless ary1 is made from a scalar, semantics of (@) in double quotes is lost.
2017-01-03 14:44:12 -08:00
Barton E. Schaefer
d0f7a3b2d6
40248: suppress errors from zshaddhistoryhook
...
and do not call it if no history entry will be written
2017-01-03 14:43:32 -08:00