From: Dave Love Date: Wed, 13 Sep 2000 18:00:34 +0000 (+0000) Subject: (Clickable Text): Fix example. X-Git-Tag: emacs-pretest-21.0.90~1633 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c26a99e8d9142ce29c85306331237e0dc8924370;p=emacs.git (Clickable Text): Fix example. --- diff --git a/lispref/text.texi b/lispref/text.texi index 2b2098666bb..dcafe0a6f18 100644 --- a/lispref/text.texi +++ b/lispref/text.texi @@ -3103,17 +3103,17 @@ Dired uses the function @code{dired-get-filename} to determine which 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