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

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

defface not defining a face?


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

Hi,

what´s wrong with


[...]
(defgroup lsl-faces nil
  "Faces for lsl-mode."
  :group 'lsl-faces
  :group 'faces)


(defface lsl-global-variable
  '((((background dark)) (:background "pink" :foreground "black"))
    (t (:background "pink")))
  "Face to highlight global variables"
  :group 'lsl-faces)


(defun lsl-hi-lock-global-variable ()
  "add a hi-lock-mode pattern to highlight something that is a
global variable"
  (interactive)
  (lsl-hi-lock-add lsl-global-variable))
[...]


That gives me "reference to free variable `lsl-global-variable'" when
byte-compiling, and "lsl-hi-lock-global-variable: Symbol's value as
variable is void: lsl-global-variable" when calling
(lsl-hi-lock-global-variable).

Apparently the face is not defined.  How come?

See https://github.com/Ratany/lsl-repo/tree/master/emacs --- I´m trying
to add some face definitions.


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



reply via email to

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