Use "yellow" on low color terminals for comments
authorDan Nicolaescu <dann@ics.uci.edu>
Wed, 13 Jul 2011 15:33:08 +0000 (17:33 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 13 Jul 2011 15:33:08 +0000 (17:33 +0200)
* font-lock.el (font-lock-comment-face): Use the high contrast
"yellow" color for font-lock-comment-face on low color terminals
using a dark background color.

Fixes: debbugs:4221

lisp/ChangeLog
lisp/font-lock.el

index d27f6b3..2bc706f 100644 (file)
@@ -1,3 +1,9 @@
+2011-07-13  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * font-lock.el (font-lock-comment-face): Use the high contrast
+       "yellow" color for font-lock-comment-face on low color terminals
+       using a dark background color (bug#4221).
+
 2011-07-13  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * dired.el (dired-insert-set-properties): Make the doc string
index 3743dd5..6c76142 100644 (file)
@@ -1856,19 +1856,13 @@ Sets various variables using `font-lock-defaults' and
     (((class color) (min-colors 8) (background light))
      (:foreground "red"))
     (((class color) (min-colors 8) (background dark))
-     )
+     (:foreground "yellow"))
     (t (:weight bold :slant italic)))
   "Font Lock mode face used to highlight comments."
   :group 'font-lock-faces)
 
 (defface font-lock-comment-delimiter-face
-  '((default :inherit font-lock-comment-face)
-    (((class grayscale)))
-    (((class color) (min-colors 16)))
-    (((class color) (min-colors 8) (background light))
-     :foreground "red")
-    (((class color) (min-colors 8) (background dark))
-     :foreground "red1"))
+  '((default :inherit font-lock-comment-face))
   "Font Lock mode face used to highlight comment delimiters."
   :group 'font-lock-faces)