]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-font-lock-keywords): Avoid fontifying file names
authorAndreas Schwab <schwab@suse.de>
Mon, 1 Dec 2008 16:07:19 +0000 (16:07 +0000)
committerAndreas Schwab <schwab@suse.de>
Mon, 1 Dec 2008 16:07:19 +0000 (16:07 +0000)
ending in a colon as directory header.

lisp/ChangeLog
lisp/dired.el

index 58f1bafd2a670b5afbb9bb31cab8c59c0b63d613..18577e7b81ceee1ae9ce16c114b39a8fd1025128 100644 (file)
@@ -1,3 +1,8 @@
+2008-12-01  Andreas Schwab  <schwab@suse.de>
+
+       * dired.el (dired-font-lock-keywords): Avoid fontifying file names
+       ending in a colon as directory header.
+
 2008-12-01  Kenichi Handa  <handa@m17n.org>
 
        * international/uni-numeric.el: Re-generated.
index f4087b1323e5183cb84491485f8532baaa6ca056..2cb5d86a9041d78583f1b2d402ffd72d9dde9a40 100644 (file)
@@ -381,9 +381,6 @@ Subexpression 2 must end right before the \\n or \\r.")
 
 (defvar dired-font-lock-keywords
   (list
-   ;;
-   ;; Directory headers.
-   (list dired-subdir-regexp '(1 dired-header-face))
    ;;
    ;; Dired marks.
    (list dired-re-mark '(0 dired-mark-face))
@@ -451,6 +448,14 @@ Subexpression 2 must end right before the \\n or \\r.")
                    (unless (get-text-property (1- (point)) 'mouse-face)
                      (dired-move-to-filename)))
             nil (0 dired-ignored-face))))
+   ;;
+   ;; Explicitly put the default face on file names ending in a colon to
+   ;; avoid fontifying them as directory header.
+   (list (concat dired-re-maybe-mark dired-re-inode-size dired-re-perms ".*:$")
+        '(".+" (dired-move-to-filename) nil (0 default)))
+   ;;
+   ;; Directory headers.
+   (list dired-subdir-regexp '(1 dired-header-face))
 )
   "Additional expressions to highlight in Dired mode.")