Function: pcomplete/sudo
pcomplete/sudo is an autoloaded and byte-compiled function defined in
pcmpl-unix.el.gz.
Signature
(pcomplete/sudo)
Documentation
Completion for the sudo command.
Source Code
;; Defined in /usr/src/emacs/lisp/pcmpl-unix.el.gz
;;; Miscellaneous
;;;###autoload
(defun pcomplete/sudo ()
"Completion for the `sudo' command."
(while (string-prefix-p "-" (pcomplete-arg 0))
(pcomplete-here (pcomplete-from-help "sudo --help"))
(when (pcomplete-match "\\`-[CDghpRtTUu]\\'") (pcomplete-here)))
(funcall pcomplete-command-completion-function)
(funcall (or (pcomplete-find-completion-function (pcomplete-arg 1))
pcomplete-default-completion-function)))