X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/615a3b8d0d2c88cd664f1e0beb5a32b5b8e08f90..222c901e18b5c4ec9ebe0a3be4177390a9a0b0de:/lisp/whitespace.el diff --git a/lisp/whitespace.el b/lisp/whitespace.el index 53a35b4f0b..e752dc5655 100644 --- a/lisp/whitespace.el +++ b/lisp/whitespace.el @@ -1,6 +1,6 @@ ;;; whitespace.el --- minor mode to visualize TAB, (HARD) SPACE, NEWLINE -;; Copyright (C) 2000-2011 Free Software Foundation, Inc. +;; Copyright (C) 2000-2012 Free Software Foundation, Inc. ;; Author: Vinicius Jose Latorre ;; Maintainer: Vinicius Jose Latorre @@ -623,8 +623,12 @@ and `newline'." (defface whitespace-newline '((((class color) (background dark)) (:foreground "darkgray" :bold nil)) - (((class color) (background light)) + (((class color) (min-colors 88) (background light)) (:foreground "lightgray" :bold nil)) + ;; Displays with 16 colors use lightgray as background, so using a + ;; lightgray foreground makes the newline mark invisible. + (((class color) (background light)) + (:foreground "brown" :bold nil)) (t (:underline t :bold nil))) "Face used to visualize NEWLINE char mapping.