emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master b4b0c21: Enhance pcomplete support for xargs


From: Lars Ingebrigtsen
Subject: master b4b0c21: Enhance pcomplete support for xargs
Date: Sat, 17 Jul 2021 10:29:37 -0400 (EDT)

branch: master
commit b4b0c219a15f31aecd43f81c9e87cdf4dca57e37
Author: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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
---
 lisp/pcmpl-unix.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/pcmpl-unix.el b/lisp/pcmpl-unix.el
index c1aaf82..e1d104f 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]