emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master f4a6345: make dired-maybe-insert-subdir always skip


From: Filipp Gunbin
Subject: [Emacs-diffs] master f4a6345: make dired-maybe-insert-subdir always skip trivial files
Date: Fri, 26 Dec 2014 12:36:54 +0000

branch: master
commit f4a6345114b02fb725192aa548f2e84096fbaae6
Author: Filipp Gunbin <address@hidden>
Commit: Filipp Gunbin <address@hidden>

    make dired-maybe-insert-subdir always skip trivial files
---
 lisp/dired-aux.el |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index bb93cce..acc7e76 100644
--- 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]