From f22f4808a08e8f985d5e6175bbd13d5260e1ab1a Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Wed, 24 Aug 2011 21:09:18 +0300 Subject: [PATCH] More uses of `error' and `warning' faces. * lisp/battery.el (battery-update): Use the face `error' instead of `font-lock-warning-face'. * lisp/ibuffer.el (ibuffer-marked-face): Change default face from `font-lock-warning-face' to `warning'. (ibuffer-deletion-face): Change default face from `font-lock-type-face' to `error'. * lisp/proced.el (proced-marked): Inherit from `error' instead of `font-lock-warning-face'. Fixes: debbugs:6117 --- lisp/ChangeLog | 13 +++++++++++++ lisp/battery.el | 2 +- lisp/ibuffer.el | 4 ++-- lisp/proced.el | 2 +- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 75ab64a1cfc..762779cc01e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,16 @@ +2011-08-24 Juri Linkov + + * proced.el (proced-marked): Inherit from `error' instead of + `font-lock-warning-face'. + + * ibuffer.el (ibuffer-marked-face): Change default face from + `font-lock-warning-face' to `warning'. + (ibuffer-deletion-face): Change default face from + `font-lock-type-face' to `error'. + + * battery.el (battery-update): Use the face `error' instead of + `font-lock-warning-face' (bug#6117). + 2011-08-24 Juri Linkov * faces.el (success): Change face color from "Green3" to diff --git a/lisp/battery.el b/lisp/battery.el index d7d3045fa58..e0bba96b655 100644 --- a/lisp/battery.el +++ b/lisp/battery.el @@ -199,7 +199,7 @@ seconds." 'face (and (<= (car (read-from-string (cdr (assq ?p data)))) battery-load-critical) - 'font-lock-warning-face) + 'error) 'help-echo "Battery status information"))) (force-mode-line-update)) diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el index 725192399ff..5a86508e144 100644 --- a/lisp/ibuffer.el +++ b/lisp/ibuffer.el @@ -356,12 +356,12 @@ directory, like `default-directory'." :type 'hook :group 'ibuffer) -(defcustom ibuffer-marked-face 'font-lock-warning-face +(defcustom ibuffer-marked-face 'warning "Face used for displaying marked buffers." :type 'face :group 'ibuffer) -(defcustom ibuffer-deletion-face 'font-lock-type-face +(defcustom ibuffer-deletion-face 'error "Face used for displaying buffers marked for deletion." :type 'face :group 'ibuffer) diff --git a/lisp/proced.el b/lisp/proced.el index 94ea579ebd8..e4987bd926c 100644 --- a/lisp/proced.el +++ b/lisp/proced.el @@ -395,7 +395,7 @@ It is a list of lists (KEY PREDICATE REVERSE).") :group 'proced-faces) (defface proced-marked - '((t (:inherit font-lock-warning-face))) + '((t (:inherit error))) "Face used for marked processes." :group 'proced-faces) -- 2.39.2