1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-17 17:58:46 +00:00

(dired-find-file): Better error message

for symlink to nonexistent target.
This commit is contained in:
Richard M. Stallman 1997-07-16 20:55:50 +00:00
parent c22fc59251
commit 55642aa486

View File

@ -1226,7 +1226,9 @@ Creates a buffer if necessary."
(let ((file-name (file-name-sans-versions (dired-get-filename) t)))
(if (file-exists-p file-name)
(find-file file-name)
(error "File no longer exists; type `g' to update Dired buffer"))))
(if (file-symlink-p file-name)
(error "File is a symlink to a nonexistent target")
(error "File no longer exists; type `g' to update Dired buffer")))))
(defun dired-mouse-find-file-other-window (event)
"In dired, visit the file or directory name you click on."