1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-25 17:41:19 +02:00
Commit graph

8392 commits

Author SHA1 Message Date
Barton E. Schaefer
ae7dcab5ed 34476: change _store_cache assignment format
Avoids potentially expensive lexical analysis of the array values.
2015-02-12 09:31:09 -08:00
Barton E. Schaefer
7398fea059 34514: Back out 34485, an alternate solution needs to be worked out.
(Tweaked to keep the unrelated hunk of the E01 test.)
2015-02-12 09:27:53 -08:00
Peter Stephenson
638bccb1c5 users/19850: add pattern support to watch variable 2015-02-11 12:52:22 +00:00
Mikael Magnusson
0209635832 34490: Fix leak on print -zf/-sf error 2015-02-10 13:03:51 +01:00
Mikael Magnusson
2dbbc88d0b 34488: Fix use-after-free for print -zf and print -sf 2015-02-10 13:03:49 +01:00
Peter Stephenson
da86d6b4f2 34485: More rationalisation for anonymous functions.
Don't attempt to treat as "simple" case as there are too many
hidden problems.

Pull out some post-execution functions to a common case in
execcmd().
2015-02-09 16:39:29 +00:00
Mikael Magnusson
dfbb5e4853 34466: Fix double unmeta in rm verification 2015-02-09 05:13:34 +01:00
Daniel Hahler
7d15b9a9cb 34468: completion: git: stash: handle 'save' being the default
"git stash" should complete arguments for "git stash save", but without
the message part.
2015-02-08 20:27:26 +01:00
Daniel Hahler
8f403ab25c 34467: completion: git: minor doc fixes
I am not sure about the deprecation of user-commands, but from other
places in the doc and commit history this deprecation was meant to be
reverted?!
2015-02-08 20:27:25 +01:00
Daniel Hahler
28d520bc21 34470: completion: adb: add "sideload" command
btw: there is another compdef available for `adb` from
zsh-users/zsh-completion; see
https://github.com/zsh-users/zsh-completions/issues/291.
2015-02-08 20:27:25 +01:00
Daniel Hahler
ffaf99288f 34469: git completion: add "stash" from refs/stash to __git_heads 2015-02-08 20:27:25 +01:00
Daniel Shahaf
860ef4e125 34464: Update mtr completion to mtr 0.82 2015-02-07 22:28:03 +00:00
Jun-ichi Takimoto
2810317ae2 34456: lopts should be initialized as an array
otherwise an empty element remains in lopts, which causes
a trouble when _arguments -- '*:' is called.
2015-02-06 23:06:07 +09:00
Peter Stephenson
1a91cb7fb1 users/19825: Clear statement about POSIX compatibility
Right of start of manual where we already refer to ksh.
2015-02-06 10:46:58 +00:00
Barton E. Schaefer
a7925f9a1c unposted: fix formatting of "--". 2015-02-03 19:26:51 -08:00
Peter Stephenson
79378d4acd users/19800: more help for $HISTORY_IGNORE 2015-02-03 17:13:26 +00:00
Jun-ichi Takimoto
1f62d8d0be 34451: use mmap() also on Mac OS X
Let MAP_ANONYMOUS be an alias to MAP_ANON if the former is not
defined.
2015-02-03 20:50:26 +09:00
Peter Stephenson
1a7473cbc1 34455: Further gdbm parameter fixes.
Fix memory leak with name of parameter.

Unset old parameter before opening db as it might close an existing
db.
2015-02-03 10:31:03 +00:00
Barton E. Schaefer
1254538a41 34447: fix assignment of key-value array to ztie'd parameter.
Add gdbmhashsetfn() for this purpose.  Erases and reorganizes the database
before bulk assign.
2015-02-02 09:46:08 -08:00
Daniel Shahaf
a5333cc344 34444: git completion: minor improvements
- 'git rebase': complete arguments in the same word as the option

- 'git commit': provide message for --fixup/--squash
2015-02-02 15:32:59 +00:00
Barton E. Schaefer
3ae6fb965f 34446: add "ztie -r" and "zuntie -u", update documentation 2015-02-01 14:01:53 -08:00
Daniel Shahaf
061dc888d3 34411: _hg completion: Complete bookmark names for -r
While there, simplify `hg tags` parsing.
2015-02-01 11:36:02 +00:00
Peter Stephenson
ce211bb8d1 34439: unset variable about to be tied 2015-01-30 20:03:02 +00:00
Peter Stephenson
1c942291f8 34435: Update emulate completion.
Add new feature to run command in emulation.

Factor out handling of quoted command string to new function.
2015-01-30 16:24:20 +00:00
Peter Stephenson
bc8491c3dc 34430: parameter fixes for gdbm tied hash.
Probably fix the issue with correct parameter hiding or not hiding.

A little extra safety checking.

Possibly fixed a memory leak with untying.
2015-01-29 21:05:17 +00:00
Barton E. Schaefer
22ad56296d unposted: fix other typeset doc errors 2015-01-28 09:07:25 -08:00
Barton E. Schaefer
6558ab611b 34421: clean up typeset documentation
Also remove duplicated ChangeLog entry for 34365.
2015-01-28 08:04:52 -08:00
Jun-ichi Takimoto
1faf2888e9 34415: cache list of all python modules 2015-01-28 23:58:23 +09:00
Jun-ichi Takimoto
f591458321 34423: fix a typo in _ruby 2015-01-28 23:19:48 +09:00
Peter Stephenson
5fc4946b4d Missing change log entry 2015-01-27 20:59:20 +00:00
Frank Terbeck
88c7badb8b 34419: vcs_info documentation: Fix wording
As suggested by Daniel Shahaf.
2015-01-27 21:14:47 +01:00
Daniel Shahaf
2c85612c4b 34412: complete all groups for chown under sudo 2015-01-27 11:02:57 +00:00
Barton E. Schaefer
5751de7975 34403: refine 34399 to avoid settyinfo() when the input descriptor is not a TTY 2015-01-26 18:48:25 -08:00
Mikael Magnusson
cae0be3af6 34387: Avoid loading the main zsh binary as a module 2015-01-27 00:18:47 +01:00
Mikael Magnusson
bac2bbd058 34382: Handle NULL return from dlerror() more gracefully 2015-01-27 00:17:23 +01:00
Peter Stephenson
5136628599 Unsetting gdbm tied variable basically works.
Allows variables in nested scope.

However, explicitly untying a variable doesn't properly expose
the scope above.
2015-01-26 18:10:39 +00:00
Barton E. Schaefer
494c251cb0 34399: fix polltty thinko from 34365
Also add missing ChangeLog entry for 34365.
2015-01-25 16:07:49 -08:00
Barton E. Schaefer
2546c86244 34389: fix parsing of ">!" when read from histfile with HIST_LEX_WORDS 2015-01-25 13:15:34 -08:00
Peter Stephenson
4688de1677 34365: History lockfile backoff: randomised time.
Time doubles on each lock failure.

zsleep() provides microsecond resolution for sleep; uses nanosleep() if
available, else select via means of existing tty poll function.
2015-01-25 20:29:18 +00:00
Barton E. Schaefer
2fa11b7c54 34350, 34353: document zsh/db/gdbm module, clean up a few things in the code
Still core dumps at this revision if the tied parameter is forced to be a local and is not untied before end of scope.
2015-01-25 11:34:26 -08:00
Daniel Shahaf
f7a2fba534 34369: document error and warning codes 2015-01-25 18:08:29 +00:00
Peter Stephenson
ccd3663d4e 34383: ztrdup() should be dupstring() in new cd code 2015-01-25 18:03:20 +00:00
Oliver Kiddle
f972b023a2 34373, 34374: update completion of builtin commands, modifiers,
parameter and globbing flags
2015-01-25 18:23:03 +01:00
Daniel Shahaf
5a1fdc0f1c 34381: vcs_info: Documentation update
This adds documentation for more hooks and styles available in
vcs_info:

  - patch-format
  - nopatch-format
  - get-unapplied
  - pre-addon-quilt
  - set-patch-format
2015-01-25 15:44:05 +01:00
Frank Terbeck
04aafe61c4 unposted: Forgot X-Seq: numbers with Daniel's last few patches 2015-01-25 01:56:30 +01:00
Daniel Shahaf
20953f53f0 _zstyle vcs_info completion: Add missing styles 2015-01-25 01:42:06 +01:00
Daniel Shahaf
54bfcf5af1 _zstyle vcs_info: Unbreak branchformat completion
The failure mode was:

    % zstyle ':vcs_info:*' branchformat "foobar%<TAB>
    _values:compvalues:10: no multi-letter values with empty separator allowed
2015-01-25 01:42:06 +01:00
Daniel Shahaf
9d25fd7255 vcs_info hg: Support inactive bookmarks
(Similar to git detached heads)
2015-01-25 01:42:05 +01:00
Jun-ichi Takimoto
0833518980 34335: fix bugs in _yum_all_pkgs 2015-01-23 23:10:33 +09:00
Peter Stephenson
12b813b589 34331: better handling of NULL in cd.
Problem was return from symbolic link expander in weird cases
where there file system isn't behaving itself properly.
2015-01-22 20:20:15 +00:00