diff options
| author | Richard M. Stallman | 2005-05-22 13:35:21 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-05-22 13:35:21 +0000 |
| commit | 2225a1961e91b3b32a14e9f2ab03699345aab697 (patch) | |
| tree | 4b7d188f5d9c7a909ab9ad08b4e424300fdde230 | |
| parent | 90d5ea049901e70abdaa1893f4f1b5dc731e42ec (diff) | |
| download | emacs-2225a1961e91b3b32a14e9f2ab03699345aab697.tar.gz emacs-2225a1961e91b3b32a14e9f2ab03699345aab697.zip | |
(dired-font-lock-keywords): Fontify files with junk extensions
even if marked by -F.
| -rw-r--r-- | lisp/dired.el | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/lisp/dired.el b/lisp/dired.el index 43f05dcf881..4665e961b81 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -418,7 +418,24 @@ Subexpression 2 must end right before the \\n or \\r.") | |||
| 418 | ;; It is quicker to first find just an extension, then go back to the | 418 | ;; It is quicker to first find just an extension, then go back to the |
| 419 | ;; start of that file name. So we do this complex MATCH-ANCHORED form. | 419 | ;; start of that file name. So we do this complex MATCH-ANCHORED form. |
| 420 | (list (concat "\\(" (regexp-opt completion-ignored-extensions) "\\|#\\)$") | 420 | (list (concat "\\(" (regexp-opt completion-ignored-extensions) "\\|#\\)$") |
| 421 | '(".+" (dired-move-to-filename) nil (0 dired-ignored-face))))) | 421 | '(".+" (dired-move-to-filename) nil (0 dired-ignored-face)))) |
| 422 | ;; | ||
| 423 | ;; Files suffixed with `completion-ignored-extensions' | ||
| 424 | ;; plus a character put in by -F. | ||
| 425 | '(eval . | ||
| 426 | (list (concat "\\(" (regexp-opt completion-ignored-extensions) | ||
| 427 | "\\|#\\)[*=|]$") | ||
| 428 | '(".+" (progn | ||
| 429 | (end-of-line) | ||
| 430 | ;; If the last character is not part of the filename, | ||
| 431 | ;; move back to the start of the filename | ||
| 432 | ;; so it can be fontified. | ||
| 433 | ;; Otherwise, leave point at the end of the line; | ||
| 434 | ;; that way, nothing is fontified. | ||
| 435 | (unless (get-text-property (1- (point)) 'mouse-face) | ||
| 436 | (dired-move-to-filename))) | ||
| 437 | nil (0 dired-ignored-face)))) | ||
| 438 | ) | ||
| 422 | "Additional expressions to highlight in Dired mode.") | 439 | "Additional expressions to highlight in Dired mode.") |
| 423 | 440 | ||
| 424 | ;;; Macros must be defined before they are used, for the byte compiler. | 441 | ;;; Macros must be defined before they are used, for the byte compiler. |