From 010a0c29ebf858b0340267eaa4f9ccb6261fbd88 Mon Sep 17 00:00:00 2001 From: Simon Marshall Date: Mon, 24 Apr 1995 11:28:24 +0000 Subject: [PATCH] dired-font-lock-keywords efficiency fix. --- lisp/dired.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/dired.el b/lisp/dired.el index 60a443b842..c7ca5e8f71 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -117,11 +117,11 @@ The target is used in the prompt for file copy, rename etc.") (defvar dired-font-lock-keywords '(;; Put directory headers in italics. - ("^ \\(/.+\\)$" 1 font-lock-type-face) + ("^ \\(/.+\\)" 1 font-lock-type-face) ;; Put symlinks in bold italics. ("\\([^ ]+\\) -> [^ ]+$" . font-lock-function-name-face) ;; Put marks in bold. - ("^\\([^ ]\\).*$" 1 font-lock-keyword-face t) + ("^[^ ]" . font-lock-reference-face) ;; Put files that are subdirectories in bold. ("^..d.* \\([^ ]+\\)$" 1 font-lock-keyword-face)) "Additional expressions to highlight in Dired mode.") -- 2.39.2