]> git.eshelyaron.com Git - emacs.git/commit
Fix pcomplete completion of things like `xargs` and `sudo` (bug#16197)
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 28 Sep 2020 02:07:14 +0000 (22:07 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 28 Sep 2020 02:07:14 +0000 (22:07 -0400)
commitba42f7932419c3c8b1e23f39c81a1a2dd1b3a154
tree22b47a0136a040ce4edde8079e8efc3afe5ef3dd
parent4155ca273ade47bc7e19fe4af1f41c4e764a59ba
Fix pcomplete completion of things like `xargs` and `sudo` (bug#16197)

* lisp/pcmpl-unix.el (pcomplete/xargs): Don't `pcomplete-this` around
`pcomplete-command-completion-function`.
(pcomplete/sudo): Make it an alias for `pcomplete/xargs`.

* lisp/shell.el (shell-command-completion-function): Return the
names from `exec-path` when the command name has no `/`.
lisp/pcmpl-unix.el
lisp/shell.el