(dired-find-file): Better error message
for symlink to nonexistent target.
This commit is contained in:
parent
c22fc59251
commit
55642aa486
1 changed files with 3 additions and 1 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Reference in a new issue