unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* defface not defining a face?
@ 2014-03-09 18:08 lee
  2014-03-09 18:16 ` Juanma Barranquero
  0 siblings, 1 reply; 7+ messages in thread
From: lee @ 2014-03-09 18:08 UTC (permalink / raw)
  To: help-gnu-emacs

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.



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

end of thread, other threads:[~2014-03-12 16:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-09 18:08 defface not defining a face? lee
2014-03-09 18:16 ` Juanma Barranquero
2014-03-09 18:21   ` Drew Adams
2014-03-09 20:50     ` lee
2014-03-09 20:57   ` lee
2014-03-09 21:40     ` Michael Heerdegen
2014-03-12 16:45     ` Jambunathan K

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).