Function: shell-command-completion
shell-command-completion is a byte-compiled function defined in
shell.el.gz.
Signature
(shell-command-completion)
Documentation
Return the completion data for the command at point, if any.
Source Code
;; Defined in /usr/src/emacs/lisp/shell.el.gz
(defun shell-command-completion ()
"Return the completion data for the command at point, if any."
(let ((filename (comint-match-partial-filename)))
(if (and filename
(save-match-data (not (string-match "[~/]" filename)))
(eq (match-beginning 0)
(save-excursion (shell-backward-command 1) (point))))
(shell--command-completion-data))))