[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Face attribute value differs from definition

From: Óscar Fuentes
Subject: Face attribute value differs from definition
Date: Sat, 09 Jan 2016 07:16:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

I have this on my configuration file:

(defface paren-face
   '((((class color) (background dark))
      (:foreground "#505a55"))
     (((class color) (background light))
      (:foreground "grey80")))
   "Face used to dim parentheses.")

(defun dim-parens ()
  (font-lock-add-keywords nil '(("(\\|)" . 'paren-face))))

After invoking `dim-parens', "M-x describe-face paren-face" shows this

Face: paren-face (sample) (customize this face)

Face used to dim parentheses.

Defined in ‘emacs.el’.
       Foreground: #586e75

Note that the definition says #505a55 but the actual value is #586e75.

I'm using the solarized-dark theme. If I run emacs -Q and eval the code,
describe-face correctly says that the foreground of paren-face is

GNU Emacs (x86_64-unknown-linux-gnu, X toolkit) of 2015-12-30

reply via email to

[Prev in Thread] Current Thread [Next in Thread]