Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
55642aa4
Commit
55642aa4
authored
Jul 16, 1997
by
Richard M. Stallman
Browse files
(dired-find-file): Better error message
for symlink to nonexistent target.
parent
c22fc592
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lisp/dired.el
lisp/dired.el
+3
-1
No files found.
lisp/dired.el
View file @
55642aa4
...
...
@@ -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."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment