aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-06-17 11:19:11 +0000
committerEli Zaretskii2001-06-17 11:19:11 +0000
commitdafef0a3eae468774cf56f0afa55a54ec1d51f4a (patch)
tree89c013e361414b6340e9e5d06410f0f18ba1d034
parentac2d0299f24c529adc3e4256dbadb680ef230b5f (diff)
downloademacs-dafef0a3eae468774cf56f0afa55a54ec1d51f4a.tar.gz
emacs-dafef0a3eae468774cf56f0afa55a54ec1d51f4a.zip
(gomoku-plot-square, gomoku-init-display): Add help-echo to mouse-highlighted
text.
-rw-r--r--lisp/play/gomoku.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/play/gomoku.el b/lisp/play/gomoku.el
index 59ef472834c..d360b1d8a4b 100644
--- a/lisp/play/gomoku.el
+++ b/lisp/play/gomoku.el
@@ -988,7 +988,9 @@ If the game is finished, this command requests for another game."
988 ((= value 6) ?O) 988 ((= value 6) ?O)
989 (?.))) 989 (?.)))
990 (and (zerop value) 990 (and (zerop value)
991 (put-text-property (1- (point)) (point) 'mouse-face 'highlight)) 991 (add-text-properties
992 (1- (point)) (point)
993 '(mouse-face highlight help-echo "mouse-2: play at this square")))
992 (delete-char 1) 994 (delete-char 1)
993 (backward-char 1)) 995 (backward-char 1))
994 (sit-for 0)) ; Display NOW 996 (sit-for 0)) ; Display NOW
@@ -1027,8 +1029,10 @@ If the game is finished, this command requests for another game."
1027 (goto-char (point-max)))) 1029 (goto-char (point-max))))
1028 (setq point (point)) 1030 (setq point (point))
1029 (insert ?.) 1031 (insert ?.)
1030 (put-text-property point (point) 1032 (add-text-properties
1031 'mouse-face 'highlight)) 1033 point (point)
1034 '(mouse-face highlight
1035 help-echo "mouse-2: play at this square")))
1032 (> (setq i (1- i)) 0)) 1036 (> (setq i (1- i)) 0))
1033 (if (= i (1- m)) 1037 (if (= i (1- m))
1034 (setq opoint point)) 1038 (setq opoint point))