Function: pcomplete-default-exit-function
pcomplete-default-exit-function is a byte-compiled function defined in
pcomplete.el.gz.
Signature
(pcomplete-default-exit-function S STATUS)
Documentation
The default exit function to use in pcomplete-completions-at-point.
This just adds pcomplete-termination-string after the
completion if STATUS is finished.
Source Code
;; Defined in /usr/src/emacs/lisp/pcomplete.el.gz
;;; User Functions:
(defun pcomplete-default-exit-function (_s status)
"The default exit function to use in `pcomplete-completions-at-point'.
This just adds `pcomplete-termination-string' after the
completion if STATUS is `finished'."
(unless (zerop (length pcomplete-termination-string))
(when (eq status 'finished)
(if (looking-at
(regexp-quote pcomplete-termination-string))
(goto-char (match-end 0))
(insert pcomplete-termination-string)))))