changeset 31586:b51dba45cbe7

(Clickable Text): Fix example.
author Dave Love <fx@gnu.org>
date Wed, 13 Sep 2000 18:00:34 +0000
parents e56c4b13af75
children b3aa01baf64c
files lispref/text.texi
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/text.texi	Wed Sep 13 15:47:04 2000 +0000
+++ b/lispref/text.texi	Wed Sep 13 18:00:34 2000 +0000
@@ -3103,17 +3103,17 @@
 file to visit, based on the position found in the event.
 
   Instead of defining a mouse command for the major mode, you can define
-a key binding for the clickable text itself, using the @code{local-map}
+a key binding for the clickable text itself, using the @code{keymap}
 text property:
 
 @example
 (let ((map (make-sparse-keymap)))
-  (define-key-binding map [mouse-2] 'operate-this-button)
+  (define-key map [mouse-2] 'operate-this-button)
   (put-text-property (point)
                      (save-excursion
                        (dired-move-to-end-of-filename)
                        (point))
-                     'local-map map))
+                     'keymap map))
 @end example
 
 @noindent