]> git.eshelyaron.com Git - emacs.git/commitdiff
* dired.el (dired-insert-set-properties): Do not consider
authorMichael Heerdegen <michael_heerdegen@web.de>
Tue, 22 Apr 2014 18:17:17 +0000 (20:17 +0200)
committerChristopher Schmidt <ch@ristopher.com>
Tue, 22 Apr 2014 18:17:17 +0000 (20:17 +0200)
subdirectory headings and empty lines to be information that
`dired-hide-details-mode' should hide.  (Bug#17228)

lisp/ChangeLog
lisp/dired.el

index a2cd739a53d29f15eb6e343cd3a60dcf90c1df8a..679c9ab51d77cb1bd24498daaec9d603e227416a 100644 (file)
@@ -1,3 +1,9 @@
+2014-04-22  Michael Heerdegen  <michael_heerdegen@web.de>
+
+       * dired.el (dired-insert-set-properties): Do not consider
+       subdirectory headings and empty lines to be information that
+       `dired-hide-details-mode' should hide.  (Bug#17228)
+
 2014-04-22  Michael Albinus  <michael.albinus@gmx.de>
 
        * net/tramp-sh.el (tramp-sh-handle-file-name-all-completions):
index b3c67343a15fb3441195ada81eee83dda6d003b7..1cce5bc66655bea78bde57436191bfb985f195dc 100644 (file)
@@ -1250,9 +1250,11 @@ see `dired-use-ls-dired' for more details.")
     (while (< (point) end)
       (ignore-errors
        (if (not (dired-move-to-filename))
-           (put-text-property (line-beginning-position)
-                              (1+ (line-end-position))
-                              'invisible 'dired-hide-details-information)
+           (unless (or (looking-at-p "^$")
+                       (looking-at-p dired-subdir-regexp))
+             (put-text-property (line-beginning-position)
+                                (1+ (line-end-position))
+                                'invisible 'dired-hide-details-information))
          (put-text-property (+ (line-beginning-position) 1) (1- (point))
                             'invisible 'dired-hide-details-detail)
          (add-text-properties