Function: pcomplete--here
pcomplete--here is a byte-compiled function defined in
pcomplete.el.gz.
Signature
(pcomplete--here &optional FORM STUB PARING FORM-ONLY)
Documentation
Complete against the current argument, if at the end.
See the documentation for pcomplete-here.
Source Code
;; Defined in /usr/src/emacs/lisp/pcomplete.el.gz
(defun pcomplete--here (&optional form stub paring form-only)
"Complete against the current argument, if at the end.
See the documentation for `pcomplete-here'."
(if (< pcomplete-index pcomplete-last)
(progn
(if (eq paring 0)
(setq pcomplete-seen nil)
(unless (eq paring t)
(let ((arg (pcomplete-arg)))
(when (stringp arg)
(push (if paring
(funcall paring arg)
(file-truename arg))
pcomplete-seen)))))
(pcomplete-next-arg)
t)
(when pcomplete-show-help
(pcomplete--help)
(throw 'pcompleted t))
(if stub
(setq pcomplete-stub stub))
(if (or (eq paring t) (eq paring 0))
(setq pcomplete-seen nil)
(setq pcomplete-norm-func (or paring #'file-truename)))
(unless form-only
(run-hooks 'pcomplete-try-first-hook))
(throw 'pcomplete-completions
(if (functionp form)
(funcall form)
;; Old calling convention, might still be used by files
;; byte-compiled with the older code.
(eval form t)))))