Function: term-replace-by-expanded-filename
term-replace-by-expanded-filename is an interactive and byte-compiled
function defined in term.el.gz.
Signature
(term-replace-by-expanded-filename)
Documentation
Dynamically expand and complete the filename at point.
Replace the filename with an expanded, canonicalized and completed replacement.
"Expanded" means environment variables (e.g., $HOME) and ~s are replaced
with the corresponding directories. "Canonicalized" means .. and . are
removed, and the filename is made absolute instead of relative. For expansion
see expand-file-name and substitute-in-file-name. For completion see
term-dynamic-complete-filename.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/term.el.gz
(defun term-replace-by-expanded-filename ()
"Dynamically expand and complete the filename at point.
Replace the filename with an expanded, canonicalized and completed replacement.
\"Expanded\" means environment variables (e.g., $HOME) and `~'s are replaced
with the corresponding directories. \"Canonicalized\" means `..' and `.' are
removed, and the filename is made absolute instead of relative. For expansion
see `expand-file-name' and `substitute-in-file-name'. For completion see
`term-dynamic-complete-filename'."
(interactive)
(replace-match (expand-file-name (term-match-partial-filename)) t t)
(term-dynamic-complete-filename))