aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-05-30 10:41:53 +0000
committerRichard M. Stallman1994-05-30 10:41:53 +0000
commited9d4b0a393cc3966920db74a72836ddca17a4b7 (patch)
treebea45918f7572c74b58a2ef6b60e571342b7c05d
parent274d13877428f6d69ffe73ce37645acd7781698b (diff)
downloademacs-ed9d4b0a393cc3966920db74a72836ddca17a4b7.tar.gz
emacs-ed9d4b0a393cc3966920db74a72836ddca17a4b7.zip
(shell-font-lock-keywords): Removed regexp for commands.
(rmail-summary-font-lock-keywords): New variable. (font-lock-set-defaults): Use it.
-rw-r--r--lisp/font-lock.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index da7373db79f..e6f6512e4df 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -662,8 +662,6 @@ This does a lot more highlighting.")
662 662
663(defvar shell-font-lock-keywords 663(defvar shell-font-lock-keywords
664 (list (cons shell-prompt-pattern 'font-lock-keyword-face) 664 (list (cons shell-prompt-pattern 'font-lock-keyword-face)
665 (list (concat shell-prompt-pattern "\\([^ \t]+\\)")
666 1 'font-lock-function-name-face)
667 '("[ \t]\\([+-][^ \t\n]+\\)" 1 font-lock-comment-face) 665 '("[ \t]\\([+-][^ \t\n]+\\)" 1 font-lock-comment-face)
668 '("^[^ \t]+:.*$" . font-lock-string-face) 666 '("^[^ \t]+:.*$" . font-lock-string-face)
669 '("^\\[[1-9][0-9]*\\]" . font-lock-string-face)) 667 '("^\\[[1-9][0-9]*\\]" . font-lock-string-face))
@@ -687,6 +685,11 @@ This does a lot more highlighting.")
687 ("^Subject: \\(.*\\)$" 1 font-lock-function-name-face)) 685 ("^Subject: \\(.*\\)$" 1 font-lock-function-name-face))
688 "Additional expressions to highlight in Rmail mode.") 686 "Additional expressions to highlight in Rmail mode.")
689 687
688(defvar rmail-summary-font-lock-keywords
689 '(("^\\s *[0-9]+D.*$" . font-lock-doc-string-face)
690 ("^\\s *[0-9]+-.*$" . font-lock-keyword-face))
691 "Additional expressions to highlight in Rmail Summary mode.")
692
690(defvar compilation-mode-font-lock-keywords 693(defvar compilation-mode-font-lock-keywords
691 '(("^\\([^\n:]*:\\([0-9]+:\\)+\\)\\(.*\\)$" 1 font-lock-function-name-face)) 694 '(("^\\([^\n:]*:\\([0-9]+:\\)+\\)\\(.*\\)$" 1 font-lock-function-name-face))
692;;; ("^\\([^\n:]*:\\([0-9]+:\\)+\\)\\(.*\\)$" 0 font-lock-keyword-face keep) 695;;; ("^\\([^\n:]*:\\([0-9]+:\\)+\\)\\(.*\\)$" 0 font-lock-keyword-face keep)
@@ -709,6 +712,8 @@ This does a lot more highlighting.")
709 ((eq major-mode 'shell-mode) shell-font-lock-keywords) 712 ((eq major-mode 'shell-mode) shell-font-lock-keywords)
710 ((eq major-mode 'dired-mode) dired-font-lock-keywords) 713 ((eq major-mode 'dired-mode) dired-font-lock-keywords)
711 ((eq major-mode 'rmail-mode) rmail-font-lock-keywords) 714 ((eq major-mode 'rmail-mode) rmail-font-lock-keywords)
715 ((eq major-mode 'rmail-summary-mode)
716 rmail-summary-font-lock-keywords)
712 ((eq major-mode 'compilation-mode) 717 ((eq major-mode 'compilation-mode)
713 compilation-mode-font-lock-keywords) 718 compilation-mode-font-lock-keywords)
714 (t nil))))) 719 (t nil)))))