Function: comint-dynamic-complete-filename
comint-dynamic-complete-filename is an interactive and byte-compiled
function defined in comint.el.gz.
Signature
(comint-dynamic-complete-filename)
Documentation
Dynamically complete the filename at point.
Completes if after a filename.
This function is similar to comint-replace-by-expanded-filename, except that
it won't change parts of the filename already entered in the buffer; it just
adds completion characters to the end of the filename. A completions listing
may be shown in a separate buffer if completion is ambiguous.
Completion is dependent on the value of comint-completion-addsuffix,
comint-completion-recexact and comint-completion-fignore, and the timing of
completions listing is dependent on the value of comint-completion-autolist.
Returns t if successful.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint-dynamic-complete-filename ()
"Dynamically complete the filename at point.
Completes if after a filename.
This function is similar to `comint-replace-by-expanded-filename', except that
it won't change parts of the filename already entered in the buffer; it just
adds completion characters to the end of the filename. A completions listing
may be shown in a separate buffer if completion is ambiguous.
Completion is dependent on the value of `comint-completion-addsuffix',
`comint-completion-recexact' and `comint-completion-fignore', and the timing of
completions listing is dependent on the value of `comint-completion-autolist'.
Returns t if successful."
(interactive)
(when (comint--match-partial-filename)
(unless (window-minibuffer-p)
(message "Completing file name..."))
(let ((data (comint--complete-file-name-data)))
(completion-in-region (nth 0 data) (nth 1 data) (nth 2 data)))))