diff options
author | Karthik Chikmagalur <karthikchikmagalur@gmail.com> | 2021-07-17 16:29:11 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-07-17 16:29:11 +0200 |
commit | b4b0c219a15f31aecd43f81c9e87cdf4dca57e37 (patch) | |
tree | abdf38c146eebdd47c02d3971c9c7cf6284612bb /lisp/pcmpl-unix.el | |
parent | 153c9d5ff4576b74ff9f9589f620c58d590862e8 (diff) | |
download | emacs-b4b0c219a15f31aecd43f81c9e87cdf4dca57e37.tar.gz emacs-b4b0c219a15f31aecd43f81c9e87cdf4dca57e37.tar.bz2 emacs-b4b0c219a15f31aecd43f81c9e87cdf4dca57e37.zip |
Enhance pcomplete support for xargs
* lisp/pcmpl-unix.el (pcomplete/xargs): Add support for completing xargs
options, including the ability to distinguish them from the command
xargs runs (bug#49603).
Copyright-paperwork-exempt: yes
Diffstat (limited to 'lisp/pcmpl-unix.el')
-rw-r--r-- | lisp/pcmpl-unix.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/pcmpl-unix.el b/lisp/pcmpl-unix.el index c1aaf829dcf..e1d104f74ff 100644 --- a/lisp/pcmpl-unix.el +++ b/lisp/pcmpl-unix.el @@ -82,7 +82,8 @@ being via `pcmpl-ssh-known-hosts-file'." ;;;###autoload (defun pcomplete/xargs () "Completion for `xargs'." - ;; FIXME: Add completion of xargs-specific arguments. + (while (string-prefix-p "-" (pcomplete-arg 0)) + (pcomplete-here (funcall pcomplete-default-completion-function))) (funcall pcomplete-command-completion-function) (funcall (or (pcomplete-find-completion-function (pcomplete-arg 1)) pcomplete-default-completion-function))) |