Function: shell-dynamic-complete-filename
shell-dynamic-complete-filename is an interactive and byte-compiled
function defined in shell.el.gz.
Signature
(shell-dynamic-complete-filename)
Documentation
Dynamically complete the filename at point.
This completes only if point is at a suitable position for a filename argument.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/shell.el.gz
;; (defun shell-dynamic-complete-as-command ()
;; "Dynamically complete at point as a command.
;; See `shell-dynamic-complete-filename'. Returns t if successful."
;; (apply #'completion-in-region shell--command-completion-data))
(defun shell-dynamic-complete-filename ()
"Dynamically complete the filename at point.
This completes only if point is at a suitable position for a
filename argument."
(interactive)
(let ((data (shell-filename-completion)))
(if data (apply #'completion-in-region data))))