# HG changeset patch # User Eli Zaretskii # Date 965057915 0 # Node ID cae243d66bbe2d03f873117b2d7ad4d036211ca4 # Parent f03ab02d1f4edffd188942488d4ade407a7872b9 (gomoku-font-lock-O-face, gomoku-font-lock-X-face) (gomoku-plot-square, gomoku-init-display): Don't use window-system. diff -r f03ab02d1f4e -r cae243d66bbe lisp/play/gomoku.el --- a/lisp/play/gomoku.el Mon Jul 31 15:37:49 2000 +0000 +++ b/lisp/play/gomoku.el Mon Jul 31 15:38:35 2000 +0000 @@ -143,14 +143,14 @@ "For making font-lock use the winner's face for the line.") (defcustom gomoku-font-lock-O-face - (if window-system + (if (display-color-p) (list (facemenu-get-face 'fg:red) 'bold)) "*Face to use for Emacs' O." :type '(repeat face) :group 'gomoku) (defcustom gomoku-font-lock-X-face - (if window-system + (if (display-color-p) (list (facemenu-get-face 'fg:green) 'bold)) "*Face to use for your X." :type '(repeat face) @@ -987,8 +987,7 @@ (insert-and-inherit (cond ((= value 1) ?X) ((= value 6) ?O) (?.))) - (and window-system - (zerop value) + (and (zerop value) (put-text-property (1- (point)) (point) 'mouse-face 'highlight)) (delete-char 1) (backward-char 1)) @@ -1028,9 +1027,8 @@ (goto-char (point-max)))) (setq point (point)) (insert ?.) - (if window-system - (put-text-property point (point) - 'mouse-face 'highlight))) + (put-text-property point (point) + 'mouse-face 'highlight)) (> (setq i (1- i)) 0)) (if (= i (1- m)) (setq opoint point))