Function: pcomplete-here-using-help

pcomplete-here-using-help is a byte-compiled function defined in pcomplete.el.gz.

Signature

(pcomplete-here-using-help COMMAND &rest ARGS)

Documentation

Perform completion for a simple command.

Offer switches and directory entries as completion candidates. The switches are obtained by calling pcomplete-from-help(var)/pcomplete-from-help(fun) with COMMAND and ARGS as arguments.

Source Code

;; Defined in /usr/src/emacs/lisp/pcomplete.el.gz
(defun pcomplete-here-using-help (command &rest args)
  "Perform completion for a simple command.
Offer switches and directory entries as completion candidates.
The switches are obtained by calling `pcomplete-from-help' with
COMMAND and ARGS as arguments."
  (while (cond
          ((string= "--" (pcomplete-arg 1))
           (while (pcomplete-here (pcomplete-entries))))
          ((pcomplete-match "\\`--[^=]+=\\(.*\\)" 0)
           (pcomplete-here (pcomplete-entries)
                           (pcomplete-match-string 1 0)))
          ((string-prefix-p "-" (pcomplete-arg 0))
           (pcomplete-here (apply #'pcomplete-from-help command args)))
          (t (pcomplete-here* (pcomplete-entries))))))