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
e3cd4b53
Commit
e3cd4b53
authored
Apr 13, 1997
by
Richard M. Stallman
Browse files
(dired-internal-noselect): When setting default-directory,
don't check file-name-directory.
parent
cb35a83c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
lisp/dired.el
lisp/dired.el
+5
-3
No files found.
lisp/dired.el
View file @
e3cd4b53
...
...
@@ -481,9 +481,11 @@ If DIRNAME is already in a dired buffer, that buffer is used without refresh."
"
Directory
has
changed
on
disk
; type \\[revert-buffer] to update Dired")))))
;; Else a new buffer
(
setq
default-directory
(
if
(
file-directory-p
dirname
)
dirname
(
file-name-directory
dirname
)))
;; We can do this unconditionally
;; because dired-noselect ensures that the name
;; is passed in directory name syntax
;; if it was the name of a directory at all.
(
file-name-directory
dirname
))
(
or
switches
(
setq
switches
dired-listing-switches
))
(
dired-mode
dirname
switches
)
(
if
mode
(
funcall
mode
))
...
...
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