Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c26a99e8
Commit
c26a99e8
authored
Sep 13, 2000
by
Dave Love
Browse files
(Clickable Text): Fix example.
parent
5dd05f61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lispref/text.texi
lispref/text.texi
+3
-3
No files found.
lispref/text.texi
View file @
c26a99e8
...
...
@@ -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{
key
map}
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))
'
key
map map))
@end example
@noindent
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment