help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: defface not defining a face?


From: lee
Subject: Re: defface not defining a face?
Date: Sun, 09 Mar 2014 21:57:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Juanma Barranquero <lekktu@gmail.com> writes:

> On Sun, Mar 9, 2014 at 7:08 PM, lee <lee@yun.yagibdah.de> wrote:
>
>> (defface lsl-global-variable
>>   '((((background dark)) (:background "pink" :foreground "black"))
>>     (t (:background "pink")))
>>   "Face to highlight global variables"
>>   :group 'lsl-faces)
>
>> Apparently the face is not defined.  How come?
>
> Oh, yes, it is defined. Try (facep 'lsl-global-variable)
>
> But a face is not a variable, so (boundp 'lsl-global-variable) is nil.

So I would need to define a variable like it is done in font-lock.el?
Because those work --- and font-lock.el says I shouldn´t define a
variable for it ...  But using 'lsl-global-variable instead of
lsl-global-variable works fine :)


-- 
Knowledge is volatile and fluid.  Software is power.



reply via email to

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