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
Peter Stephenson
e90a512aa6
40265: Fix problems with pure string in patterns with Meta.
...
Copy instead of relying on jiggery pokery with memory reallocation.
Problem was triggering with string ending with Dash converted to -.
2017-01-03 14:43:41 +00:00
Paulo Andrade
8d4c98540d
40260: zero new space allocated in prompt buffer
2017-01-03 12:00:18 +00:00
Sebastian Gniazdowski
4fb4ce190c
40231: Optimise setarrvalue().
2016-12-28 05:29:59 +00:00
Daniel Shahaf
d287f81340
40232: Remove SH_USE_BSD_ECHO autoconf test.
...
It is unused; doesn't make sense in "build on one box, install on many"
context; and its presence causes the downstream packages that install
config.h to be non-reproducible.
2016-12-28 03:32:19 +00:00
Barton E. Schaefer
044fcbabf1
unposted (see users/22287): _comp_options needs to disable ERR_RETURN
2016-12-27 11:14:27 -08:00
Barton E. Schaefer
5455798bb5
Oliver: 40118: alternate fix replacing 40115
...
This commit reverts 40115 (commit 3594f55f
) thus restoring 38579, then
applies 40118: Relocate BUFFER/CURSOR reset to work around "fc -p" issue
2016-12-24 00:15:21 -08:00
Oliver Kiddle
02eb1595e8
40162: _arguments support for a match spec in combination with sets
2016-12-22 16:12:42 +01:00
Daniel Shahaf
fa88f57c06
unposted: Post-release version bump to 5.3.1-dev-0.
2016-12-22 11:08:48 +00:00
Peter Stephenson
06b1b7a37a
unposted: Release 5.3.1
2016-12-21 18:40:13 +00:00
Baptiste Daroussin
5a98e318b0
40210: Add support modern FreeBSD and drop support for FreeBSD < 5
2016-12-18 14:55:57 +00:00
Baptiste Daroussin
8ae20a8589
40209: Fix typo in chflags completion
2016-12-18 14:55:56 +00:00
Daniel Shahaf
816084c0ac
40149: vcs_info git: Avoid a fork.
2016-12-16 10:48:10 +00:00
Daniel Shahaf
6bdb2e1deb
40203: Resolve 'printf --' question from grandparent commit (thanks Chet).
2016-12-16 00:59:57 +00:00
Barton E. Schaefer
c3e43541c0
40198: output of B02typeset differs when (( UID == 0 )) so do not attempt to redo that test in that case
2016-12-15 11:22:22 -08:00
Barton E. Schaefer
dc1f3aae60
40179: fix handling of "printf -" and "printf --"
...
unposted: regression test for 40179 / 37467
2016-12-14 11:01:09 -08:00
Peter Stephenson
5f2661376d
unposted: update version to 5.3-dev-0.
...
Avoid installed version trashing 5.3 release.
2016-12-12 21:37:16 +00:00
Peter Stephenson
4cfdbdb877
unposted: Release 5.3
2016-12-11 16:52:20 +00:00
Barton E. Schaefer
efd3baf2a2
40134: silence spurious compiler warnings.
2016-12-10 19:13:53 -08:00
Daniel Shahaf
74b7c6b7d6
40139: tests: Convert comments to diagnostics; test backslashes. (after 40129)
2016-12-10 17:16:37 +00:00
Daniel Shahaf
03bd5e287f
users/22182: Propagate 22161 docs patch to completion descriptions.
2016-12-10 15:04:22 +00:00
Oliver Kiddle
16f5d222fc
40137: document _external_pwds
2016-12-09 22:59:14 +01:00
Peter Stephenson
b1f62d9d03
unposted: 5.2-test-3
2016-12-09 19:35:04 +00:00
Peter Stephenson
f094b5b461
Document (E) parameter flag better.
...
It produces 1 more than any other use of an index for the
end of a match, helpfully.
2016-12-09 19:34:14 +00:00
Daniel Shahaf
7e40a89053
40117: Revert a hunk of 40035 that changed semantics incorrectly.
2016-12-09 10:37:04 +00:00
Peter Stephenson
063391f0d9
unposted: minor D07 typos
2016-12-09 10:31:47 +00:00
Peter Stephenson
2e307108a0
40138: Move regex multibyte test.
...
Put it last as it has an additional dependency.
Output a failure message indicating this.
2016-12-09 10:18:24 +00:00
Daniel Shahaf
feb4be4a5e
40126: zed (fned): When editing a new function. escape its name.
...
Example:
% unfunction \(
% fned \(
2016-12-09 08:21:07 +00:00