Function: pcomplete-expand
pcomplete-expand is an autoloaded, interactive and byte-compiled
function defined in pcomplete.el.gz.
Signature
(pcomplete-expand)
Documentation
Expand the textual value of the current argument.
This will modify the current buffer.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/pcomplete.el.gz
;;;###autoload
(defun pcomplete-expand ()
"Expand the textual value of the current argument.
This will modify the current buffer."
(interactive)
(let ((pcomplete-expand-before-complete t)
(pcomplete-expand-only-p t))
(with-suppressed-warnings ((obsolete pcomplete))
(pcomplete))
(when (and pcomplete-current-completions
(> (length pcomplete-current-completions) 0)) ;??
(delete-char (- pcomplete-last-completion-length))
(while pcomplete-current-completions
(unless (pcomplete-insert-entry
"" (car pcomplete-current-completions) t
pcomplete-last-completion-raw)
(insert-and-inherit pcomplete-termination-string))
(setq pcomplete-current-completions
(cdr pcomplete-current-completions))))))