Function: dired-find-alternate-file
dired-find-alternate-file is an interactive and byte-compiled function
defined in dired.el.gz.
Signature
(dired-find-alternate-file)
Documentation
In Dired, visit file or directory on current line via find-alternate-file.
This kills the Dired buffer, then visits the current line's file or directory.
Probably introduced at or before Emacs version 21.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/dired.el.gz
(defun dired-find-alternate-file ()
"In Dired, visit file or directory on current line via `find-alternate-file'.
This kills the Dired buffer, then visits the current line's file or directory."
(interactive)
(set-buffer-modified-p nil)
(find-alternate-file (dired-get-file-for-visit)))