aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2011-07-13 17:33:08 +0200
committerLars Magne Ingebrigtsen2011-07-13 17:33:08 +0200
commitbf6012e5b1ec29b02dbb2f6b000471ca418055dc (patch)
treec970b9aceaec634d1f333b65a25828a98274645f
parent7e9505c5eb2fdaef0b85ea64ee9954e8e51dd05a (diff)
downloademacs-bf6012e5b1ec29b02dbb2f6b000471ca418055dc.tar.gz
emacs-bf6012e5b1ec29b02dbb2f6b000471ca418055dc.zip
Use "yellow" on low color terminals for comments
* 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
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/font-lock.el10
2 files changed, 8 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d27f6b3c2be..2bc706f8a61 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12011-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * font-lock.el (font-lock-comment-face): Use the high contrast
4 "yellow" color for font-lock-comment-face on low color terminals
5 using a dark background color (bug#4221).
6
12011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org> 72011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 8
3 * dired.el (dired-insert-set-properties): Make the doc string 9 * dired.el (dired-insert-set-properties): Make the doc string
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 3743dd54b7a..6c76142c59d 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -1856,19 +1856,13 @@ Sets various variables using `font-lock-defaults' and
1856 (((class color) (min-colors 8) (background light)) 1856 (((class color) (min-colors 8) (background light))
1857 (:foreground "red")) 1857 (:foreground "red"))
1858 (((class color) (min-colors 8) (background dark)) 1858 (((class color) (min-colors 8) (background dark))
1859 ) 1859 (:foreground "yellow"))
1860 (t (:weight bold :slant italic))) 1860 (t (:weight bold :slant italic)))
1861 "Font Lock mode face used to highlight comments." 1861 "Font Lock mode face used to highlight comments."
1862 :group 'font-lock-faces) 1862 :group 'font-lock-faces)
1863 1863
1864(defface font-lock-comment-delimiter-face 1864(defface font-lock-comment-delimiter-face
1865 '((default :inherit font-lock-comment-face) 1865 '((default :inherit font-lock-comment-face))
1866 (((class grayscale)))
1867 (((class color) (min-colors 16)))
1868 (((class color) (min-colors 8) (background light))
1869 :foreground "red")
1870 (((class color) (min-colors 8) (background dark))
1871 :foreground "red1"))
1872 "Font Lock mode face used to highlight comment delimiters." 1866 "Font Lock mode face used to highlight comment delimiters."
1873 :group 'font-lock-faces) 1867 :group 'font-lock-faces)
1874 1868