changeset 38075:437623e4fe1c

(gomoku-plot-square, gomoku-init-display): Add help-echo to mouse-highlighted text.
author Eli Zaretskii <eliz@gnu.org>
date Sun, 17 Jun 2001 11:19:11 +0000
parents 7ca7def9af01
children 30c899dc34c4
files lisp/play/gomoku.el
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/play/gomoku.el	Sun Jun 17 11:18:16 2001 +0000
+++ b/lisp/play/gomoku.el	Sun Jun 17 11:19:11 2001 +0000
@@ -988,7 +988,9 @@
 			      ((= value 6) ?O)
 			      (?.)))
     (and (zerop value)
-	 (put-text-property (1- (point)) (point) 'mouse-face 'highlight))
+	 (add-text-properties
+	  (1- (point)) (point)
+	  '(mouse-face highlight help-echo "mouse-2: play at this square")))
     (delete-char 1)
     (backward-char 1))
   (sit-for 0))	; Display NOW
@@ -1027,8 +1029,10 @@
 		      (goto-char (point-max))))
 	       (setq point (point))
 	       (insert ?.)
-	       (put-text-property point (point)
-				  'mouse-face 'highlight))
+	       (add-text-properties
+		point (point)
+		'(mouse-face highlight
+		  help-echo "mouse-2: play at this square")))
 	     (> (setq i (1- i)) 0))
       (if (= i (1- m))
 	  (setq opoint point))