# HG changeset patch # User Richard M. Stallman # Date 1114274721 0 # Node ID 024d905147719c35c59378f1d4a509ffe44c124b # Parent 18224d5c132245344e3cfadd765031ca8939d636 (font-lock-comment-face): On terminals with few colors, use the default appearance. (font-lock-comment-delimiter-face): New face, new variable. diff -r 18224d5c1322 -r 024d90514771 lisp/font-lock.el --- a/lisp/font-lock.el Sat Apr 23 16:45:07 2005 +0000 +++ b/lisp/font-lock.el Sat Apr 23 16:45:21 2005 +0000 @@ -309,6 +309,9 @@ (defvar font-lock-comment-face 'font-lock-comment-face "Face name to use for comments.") +(defvar font-lock-comment-delimiter-face 'font-lock-comment-delimiter-face + "Face name to use for comments.") + (defvar font-lock-string-face 'font-lock-string-face "Face name to use for strings.") @@ -1615,7 +1618,7 @@ ;; But now we do it the custom way. Note that `defface' will not overwrite any ;; faces declared above via `custom-declare-face'. -(defface font-lock-comment-face +(defface font-lock-comment-delimiter-face '((((class grayscale) (background light)) (:foreground "DimGray" :weight bold :slant italic)) (((class grayscale) (background dark)) @@ -1636,6 +1639,27 @@ "Font Lock mode face used to highlight comments." :group 'font-lock-highlighting-faces) +(defface font-lock-comment-face + '((((class grayscale) (background light)) + (:foreground "DimGray" :weight bold :slant italic)) + (((class grayscale) (background dark)) + (:foreground "LightGray" :weight bold :slant italic)) + (((class color) (min-colors 88) (background light)) + (:foreground "Firebrick")) + (((class color) (min-colors 88) (background dark)) + (:foreground "chocolate1")) + (((class color) (min-colors 16) (background light)) + (:foreground "red")) + (((class color) (min-colors 16) (background dark)) + (:foreground "red1")) + (((class color) (min-colors 8) (background light)) + ) + (((class color) (min-colors 8) (background dark)) + ) + (t (:weight bold :slant italic))) + "Font Lock mode face used to highlight comments." + :group 'font-lock-highlighting-faces) + (defface font-lock-string-face '((((class grayscale) (background light)) (:foreground "DimGray" :slant italic)) (((class grayscale) (background dark)) (:foreground "LightGray" :slant italic))