diff options
| author | Eli Zaretskii | 2002-03-10 17:28:58 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2002-03-10 17:28:58 +0000 |
| commit | a0db0bbfdbaf94302db1ae8e686b6e312855ee10 (patch) | |
| tree | 242af787f9d09b1a0f29ebe1388aecc59fb52a63 | |
| parent | f21fadcce44ed1a4bd6b143a77267692867e6f7c (diff) | |
| download | emacs-a0db0bbfdbaf94302db1ae8e686b6e312855ee10.tar.gz emacs-a0db0bbfdbaf94302db1ae8e686b6e312855ee10.zip | |
Use defface instead of facemenu-get-face.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/play/mpuz.el | 31 |
2 files changed, 19 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0d8ee58d83e..343b629d72d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2002-03-10 Daniel Pfeiffer <occitan@esperanto.org> | ||
| 2 | |||
| 3 | * play/mpuz.el: Use defface instead of facemenu-get-face. | ||
| 4 | |||
| 1 | 2002-03-10 Jan D. <Jan.Djarv@mbox200.swipnet.se> | 5 | 2002-03-10 Jan D. <Jan.Djarv@mbox200.swipnet.se> |
| 2 | 6 | ||
| 3 | * startup.el (command-line): Add call to emacs-session-restore if | 7 | * startup.el (command-line): Add call to emacs-session-restore if |
diff --git a/lisp/play/mpuz.el b/lisp/play/mpuz.el index a021ddd3544..63de2bcb2d9 100644 --- a/lisp/play/mpuz.el +++ b/lisp/play/mpuz.el | |||
| @@ -57,28 +57,27 @@ | |||
| 57 | :type 'boolean | 57 | :type 'boolean |
| 58 | :group 'mpuz) | 58 | :group 'mpuz) |
| 59 | 59 | ||
| 60 | (defcustom mpuz-unsolved-face | 60 | (defface mpuz-unsolved-face |
| 61 | `(,(facemenu-get-face 'fg:red) bold) | 61 | '((((class color)) (:foreground "red1" :bold t)) |
| 62 | (t (:bold t))) | ||
| 62 | "*Face to use for letters to be solved." | 63 | "*Face to use for letters to be solved." |
| 63 | :type '(repeat face) | ||
| 64 | :group 'mpuz) | 64 | :group 'mpuz) |
| 65 | 65 | ||
| 66 | (defcustom mpuz-solved-face | 66 | (defface mpuz-solved-face |
| 67 | `(,(facemenu-get-face 'fg:green) bold) | 67 | '((((class color)) (:foreground "green1" :bold t)) |
| 68 | (t (:bold t))) | ||
| 68 | "*Face to use for solved digits." | 69 | "*Face to use for solved digits." |
| 69 | :type '(repeat face) | ||
| 70 | :group 'mpuz) | 70 | :group 'mpuz) |
| 71 | 71 | ||
| 72 | (defcustom mpuz-trivial-face | 72 | (defface mpuz-trivial-face |
| 73 | `(,(facemenu-get-face 'fg:blue) bold) | 73 | '((((class color)) (:foreground "blue" :bold t)) |
| 74 | (t (:bold t))) | ||
| 74 | "*Face to use for trivial digits solved for you." | 75 | "*Face to use for trivial digits solved for you." |
| 75 | :type '(repeat face) | ||
| 76 | :group 'mpuz) | 76 | :group 'mpuz) |
| 77 | 77 | ||
| 78 | (defcustom mpuz-text-face | 78 | (defface mpuz-text-face |
| 79 | '(variable-pitch) | 79 | '((t (:inherit variable-pitch))) |
| 80 | "*Face to use for text on right." | 80 | "*Face to use for text on right." |
| 81 | :type '(repeat face) | ||
| 82 | :group 'mpuz) | 81 | :group 'mpuz) |
| 83 | 82 | ||
| 84 | 83 | ||
| @@ -296,7 +295,7 @@ You may abort a game by typing \\<mpuz-mode-map>\\[mpuz-offer-abort]." | |||
| 296 | (defun mpuz-create-buffer () | 295 | (defun mpuz-create-buffer () |
| 297 | "Create (or recreate) the puzzle buffer. Return it." | 296 | "Create (or recreate) the puzzle buffer. Return it." |
| 298 | (let ((buf (get-buffer-create "*Mult Puzzle*")) | 297 | (let ((buf (get-buffer-create "*Mult Puzzle*")) |
| 299 | (face `(face ,mpuz-text-face)) | 298 | (face '(face mpuz-text-face)) |
| 300 | buffer-read-only) | 299 | buffer-read-only) |
| 301 | (save-excursion | 300 | (save-excursion |
| 302 | (set-buffer buf) | 301 | (set-buffer buf) |
| @@ -347,9 +346,9 @@ You may abort a game by typing \\<mpuz-mode-map>\\[mpuz-offer-abort]." | |||
| 347 | (+ digit ?0) | 346 | (+ digit ?0) |
| 348 | (+ (mpuz-to-letter digit) ?A))) | 347 | (+ (mpuz-to-letter digit) ?A))) |
| 349 | (face `(face | 348 | (face `(face |
| 350 | ,(cond ((aref mpuz-trivial-digits digit) mpuz-trivial-face) | 349 | ,(cond ((aref mpuz-trivial-digits digit) 'mpuz-trivial-face) |
| 351 | ((aref mpuz-found-digits digit) mpuz-solved-face) | 350 | ((aref mpuz-found-digits digit) 'mpuz-solved-face) |
| 352 | (mpuz-unsolved-face)))) | 351 | ('mpuz-unsolved-face)))) |
| 353 | buffer-read-only) | 352 | buffer-read-only) |
| 354 | (mapc (lambda (square) | 353 | (mapc (lambda (square) |
| 355 | (goto-line (car square)) ; line before column! | 354 | (goto-line (car square)) ; line before column! |