]> git.eshelyaron.com Git - emacs.git/commitdiff
(lm-font-lock-face-O, lm-font-lock-face-X): Make them faces.
authorRichard M. Stallman <rms@gnu.org>
Sun, 9 Apr 2006 19:20:02 +0000 (19:20 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 9 Apr 2006 19:20:02 +0000 (19:20 +0000)
(lm-font-lock-keywords): Update appropriately.

lisp/play/landmark.el

index 63d7a9fe33a378cfb560166dfbc0e4852d66c103..7ec6f9bb18773f8301797aeb4f0961bf81f95235 100644 (file)
 (defvar lm-emacs-won ()
   "*For making font-lock use the winner's face for the line.")
 
-(defvar lm-font-lock-face-O
-  (if (display-color-p)
-      (list (facemenu-get-face 'fg:red) 'bold))
-  "*Face to use for Emacs' O.")
+(defface lm-font-lock-face-O '((((class color)) :foreground "red")
+                              (t :weight bold))
+  "*Face to use for Emacs' O."
+  :version "22.1"
+  :group 'lm)
 
-(defvar lm-font-lock-face-X
-  (if (display-color-p)
-      (list (facemenu-get-face 'fg:green) 'bold))
-  "*Face to use for your X.")
+(defface lm-font-lock-face-X '((((class color)) :foreground "green")
+                              (t :weight bold))
+  "*Face to use for your X."
+  :version "22.1"
+  :group 'lm)
 
 (defvar lm-font-lock-keywords
-  '(("O" . lm-font-lock-face-O)
-    ("X" . lm-font-lock-face-X)
+  '(("O" . 'lm-font-lock-face-O)
+    ("X" . 'lm-font-lock-face-X)
     ("[-|/\\]" 0 (if lm-emacs-won
-                    lm-font-lock-face-O
-                  lm-font-lock-face-X)))
+                    'lm-font-lock-face-O
+                  'lm-font-lock-face-X)))
   "*Font lock rules for Lm.")
 
 (put 'lm-mode 'front-sticky