all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Face attribute value differs from definition
@ 2016-01-09  6:16 Óscar Fuentes
  2016-01-09  6:25 ` Óscar Fuentes
  0 siblings, 1 reply; 2+ messages in thread
From: Óscar Fuentes @ 2016-01-09  6:16 UTC (permalink / raw)
  To: help-gnu-emacs

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 ()
  (interactive)
  (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)

Documentation:
Face used to dim parentheses.

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


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

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
grey80.

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Face attribute value differs from definition
  2016-01-09  6:16 Face attribute value differs from definition Óscar Fuentes
@ 2016-01-09  6:25 ` Óscar Fuentes
  0 siblings, 0 replies; 2+ messages in thread
From: Óscar Fuentes @ 2016-01-09  6:25 UTC (permalink / raw)
  To: help-gnu-emacs

Óscar Fuentes <ofv@wanadoo.es> writes:

> Note that the definition says #505a55 but the actual value is #586e75.
> Why?
>
> 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
> grey80.

Nevermind. The solarized theme already defines a `paren-face' face, so
the problem consists on a name clash.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-09  6:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-09  6:16 Face attribute value differs from definition Óscar Fuentes
2016-01-09  6:25 ` Óscar Fuentes

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.