Function: term-dynamic-complete-filename
term-dynamic-complete-filename is an interactive and byte-compiled
function defined in term.el.gz.
Signature
(term-dynamic-complete-filename)
Documentation
Dynamically complete the filename at point.
Completes if after a filename. See term-match-partial-filename and
term-dynamic-complete-as-filename.
This function is similar to term-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 help buffer if completion is ambiguous.
Completion is dependent on the value of term-completion-addsuffix,
term-completion-recexact and term-completion-fignore, and the timing of
completions listing is dependent on the value of term-completion-autolist.
Returns t if successful.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/term.el.gz
(defun term-dynamic-complete-filename ()
"Dynamically complete the filename at point.
Completes if after a filename. See `term-match-partial-filename' and
`term-dynamic-complete-as-filename'.
This function is similar to `term-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 help buffer if completion is ambiguous.
Completion is dependent on the value of `term-completion-addsuffix',
`term-completion-recexact' and `term-completion-fignore', and the timing of
completions listing is dependent on the value of `term-completion-autolist'.
Returns t if successful."
(interactive)
(when (term-match-partial-filename)
(prog2 (or (eq (selected-window) (minibuffer-window))
(message "Completing file name..."))
(term-dynamic-complete-as-filename))))