[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Setting :inherit attribute on faces via Xresources
From: |
Henrik Enberg |
Subject: |
Setting :inherit attribute on faces via Xresources |
Date: |
Sat, 19 Nov 2005 21:14:09 +0100 (CET) |
When trying to set an :inherit value on face via Xresources, like so:
"Emacs.dired-ignored.attributeInherit: font-lock-string-face", I get the
following error.
Face dired-ignored, frame #<frame address@hidden 0x8572cc8>: invalid attribute
:inherit font-lock-string-face from X resource
This is because the code in Finternal_set_lisp_face_attribute expects
either a symbol or a list of symbols as the value for :inherit.
However, Finternal_set_lisp_face_attribute_from_resource simply passes
the value read from the xserver as a string. This patch fixes it for
me.
2005-11-19 Henrik Enberg <address@hidden>
* xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
Handle :inherit property as a lisp expression.
Index: src/xfaces.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/xfaces.c,v
retrieving revision 1.340
diff -b -r1.340 xfaces.c
4681c4681
< else if (EQ (attr, QCbox))
---
> else if (EQ (attr, QCbox) || EQ (attr, QCinherit))
- Setting :inherit attribute on faces via Xresources,
Henrik Enberg <=