Function: shell-filename-completion
shell-filename-completion is a byte-compiled function defined in
shell.el.gz.
Signature
(shell-filename-completion)
Documentation
Return the completion data for file name at point, if any.
Source Code
;; Defined in /usr/src/emacs/lisp/shell.el.gz
(defun shell-filename-completion ()
"Return the completion data for file name at point, if any."
(let ((opoint (point))
(beg (comint-line-beginning-position)))
(when (save-excursion
(goto-char (if (re-search-backward "[;|&]" beg t)
(match-end 0)
beg))
(re-search-forward "[^ \t][ \t]" opoint t))
(comint-filename-completion))))