projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d655262
)
make dired-maybe-insert-subdir always skip trivial files
author
Filipp Gunbin
<fgunbin@fastmail.fm>
Thu, 25 Dec 2014 18:17:43 +0000
(21:17 +0300)
committer
Filipp Gunbin
<fgunbin@fastmail.fm>
Fri, 26 Dec 2014 12:36:27 +0000
(15:36 +0300)
lisp/dired-aux.el
patch
|
blob
|
history
diff --git
a/lisp/dired-aux.el
b/lisp/dired-aux.el
index bb93cce6500a04df4fcaf094e2c5076af7dc5ea7..acc7e767d690c11d697e17981460bb90b6f6d84d 100644
(file)
--- a/
lisp/dired-aux.el
+++ b/
lisp/dired-aux.el
@@
-2062,7
+2062,10
@@
See Info node `(emacs)Subdir switches' for more details."
;; inserted *after* opoint.
(setq dirname (file-name-as-directory dirname))
(or (and (not switches)
- (dired-goto-subdir dirname))
+ (when (dired-goto-subdir dirname)
+ (unless (dired-subdir-hidden-p dirname)
+ (dired-initial-position dirname))
+ t))
(dired-insert-subdir dirname switches no-error-if-not-dir-p))
;; Push mark so that it's easy to find back. Do this after the
;; insert message so that the user sees the `Mark set' message.