# HG changeset patch # User Richard M. Stallman # Date 1144610402 0 # Node ID 215057e97d56e0f1b99999cec8ab346face94463 # Parent 32126e2918dc31c441590629bef7ec066db6083c (lm-font-lock-face-O, lm-font-lock-face-X): Make them faces. (lm-font-lock-keywords): Update appropriately. diff -r 32126e2918dc -r 215057e97d56 lisp/play/landmark.el --- a/lisp/play/landmark.el Sun Apr 09 18:46:26 2006 +0000 +++ b/lisp/play/landmark.el Sun Apr 09 19:20:02 2006 +0000 @@ -211,22 +211,24 @@ (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