Function: comint-replace-by-expanded-filename
comint-replace-by-expanded-filename is an interactive and
byte-compiled function defined in comint.el.gz.
Signature
(comint-replace-by-expanded-filename)
Documentation
Dynamically expand and complete the filename at point.
Replace the filename with an expanded, canonicalized and
completed replacement, i.e. substituting environment
variables (e.g. $HOME), ~s, .., and ., and making the
filename absolute. For expansion see expand-file-name and
substitute-in-file-name. For completion see
comint-dynamic-complete-filename.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint-replace-by-expanded-filename ()
"Dynamically expand and complete the filename at point.
Replace the filename with an expanded, canonicalized and
completed replacement, i.e. substituting environment
variables (e.g. $HOME), `~'s, `..', and `.', and making the
filename absolute. For expansion see `expand-file-name' and
`substitute-in-file-name'. For completion see
`comint-dynamic-complete-filename'."
(interactive nil comint-mode)
(let ((filename (comint-match-partial-filename)))
(when filename
(replace-match (expand-file-name filename) t t)
(comint-dynamic-complete-filename))))