aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-04-23 16:45:21 +0000
committerRichard M. Stallman2005-04-23 16:45:21 +0000
commit9177dd93a4370ddeaae127fa8e3a535a07e9588f (patch)
tree14e8a40e4a5765d406b504ef0974e076923f42b6
parent1639cc2e9254c8b77e9a2f44b3fe1cd6e95d8702 (diff)
downloademacs-9177dd93a4370ddeaae127fa8e3a535a07e9588f.tar.gz
emacs-9177dd93a4370ddeaae127fa8e3a535a07e9588f.zip
(font-lock-comment-face): On terminals with few colors,
use the default appearance. (font-lock-comment-delimiter-face): New face, new variable.
-rw-r--r--lisp/font-lock.el26
1 files changed, 25 insertions, 1 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index cced6a13ca2..0b33ac7d9b4 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -309,6 +309,9 @@ If a number, only buffers greater than this size have fontification messages."
309(defvar font-lock-comment-face 'font-lock-comment-face 309(defvar font-lock-comment-face 'font-lock-comment-face
310 "Face name to use for comments.") 310 "Face name to use for comments.")
311 311
312(defvar font-lock-comment-delimiter-face 'font-lock-comment-delimiter-face
313 "Face name to use for comments.")
314
312(defvar font-lock-string-face 'font-lock-string-face 315(defvar font-lock-string-face 'font-lock-string-face
313 "Face name to use for strings.") 316 "Face name to use for strings.")
314 317
@@ -1615,7 +1618,7 @@ Sets various variables using `font-lock-defaults' (or, if nil, using
1615 1618
1616;; But now we do it the custom way. Note that `defface' will not overwrite any 1619;; But now we do it the custom way. Note that `defface' will not overwrite any
1617;; faces declared above via `custom-declare-face'. 1620;; faces declared above via `custom-declare-face'.
1618(defface font-lock-comment-face 1621(defface font-lock-comment-delimiter-face
1619 '((((class grayscale) (background light)) 1622 '((((class grayscale) (background light))
1620 (:foreground "DimGray" :weight bold :slant italic)) 1623 (:foreground "DimGray" :weight bold :slant italic))
1621 (((class grayscale) (background dark)) 1624 (((class grayscale) (background dark))
@@ -1636,6 +1639,27 @@ Sets various variables using `font-lock-defaults' (or, if nil, using
1636 "Font Lock mode face used to highlight comments." 1639 "Font Lock mode face used to highlight comments."
1637 :group 'font-lock-highlighting-faces) 1640 :group 'font-lock-highlighting-faces)
1638 1641
1642(defface font-lock-comment-face
1643 '((((class grayscale) (background light))
1644 (:foreground "DimGray" :weight bold :slant italic))
1645 (((class grayscale) (background dark))
1646 (:foreground "LightGray" :weight bold :slant italic))
1647 (((class color) (min-colors 88) (background light))
1648 (:foreground "Firebrick"))
1649 (((class color) (min-colors 88) (background dark))
1650 (:foreground "chocolate1"))
1651 (((class color) (min-colors 16) (background light))
1652 (:foreground "red"))
1653 (((class color) (min-colors 16) (background dark))
1654 (:foreground "red1"))
1655 (((class color) (min-colors 8) (background light))
1656 )
1657 (((class color) (min-colors 8) (background dark))
1658 )
1659 (t (:weight bold :slant italic)))
1660 "Font Lock mode face used to highlight comments."
1661 :group 'font-lock-highlighting-faces)
1662
1639(defface font-lock-string-face 1663(defface font-lock-string-face
1640 '((((class grayscale) (background light)) (:foreground "DimGray" :slant italic)) 1664 '((((class grayscale) (background light)) (:foreground "DimGray" :slant italic))
1641 (((class grayscale) (background dark)) (:foreground "LightGray" :slant italic)) 1665 (((class grayscale) (background dark)) (:foreground "LightGray" :slant italic))