aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-06-17 11:19:50 +0000
committerEli Zaretskii2001-06-17 11:19:50 +0000
commit366be0de5e1b058a58d157c342a05f7c608edba7 (patch)
tree04fe5a818d3976d3c0f67122a292bf65a344e7ca
parentdafef0a3eae468774cf56f0afa55a54ec1d51f4a (diff)
downloademacs-366be0de5e1b058a58d157c342a05f7c608edba7.tar.gz
emacs-366be0de5e1b058a58d157c342a05f7c608edba7.zip
(lm-plot-square, lm-init-display): Add help-echo to mouse-highlighted text.
-rw-r--r--lisp/play/landmark.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/play/landmark.el b/lisp/play/landmark.el
index 02a6dbc6942..3b4734a641e 100644
--- a/lisp/play/landmark.el
+++ b/lisp/play/landmark.el
@@ -892,7 +892,10 @@ If the game is finished, this command requests for another game."
892 ((= value 6) ?^))) 892 ((= value 6) ?^)))
893 893
894 (and (zerop value) 894 (and (zerop value)
895 (put-text-property (1- (point)) (point) 'mouse-face 'highlight)) 895 (add-text-properties (1- (point)) (point)
896 '(mouse-face highlight
897 help-echo "\
898mouse-1: get robot moving, mouse-2: play on this square")))
896 (delete-char 1) 899 (delete-char 1)
897 (backward-char 1)) 900 (backward-char 1))
898 (sit-for 0)) ; Display NOW 901 (sit-for 0)) ; Display NOW
@@ -931,8 +934,9 @@ If the game is finished, this command requests for another game."
931 (goto-char (point-max)))) 934 (goto-char (point-max))))
932 (setq point (point)) 935 (setq point (point))
933 (insert ?=) 936 (insert ?=)
934 (put-text-property point (point) 937 (add-text-properties point (point)
935 'mouse-face 'highlight)) 938 '(mouse-face highlight help-echo "\
939mouse-1: get robot moving, mouse-2: play on this square")))
936 (> (setq i (1- i)) 0)) 940 (> (setq i (1- i)) 0))
937 (if (= i (1- m)) 941 (if (= i (1- m))
938 (setq opoint point)) 942 (setq opoint point))