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
5a88c153
Commit
5a88c153
authored
Aug 08, 2014
by
Stefan Monnier
Browse files
* lisp/mouse.el (mouse--down-1-maybe-follows-link): Don't convert the down
event. Fixes: debbugs:18212
parent
1f3e13c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/mouse.el
lisp/mouse.el
+5
-10
No files found.
lisp/ChangeLog
View file @
5a88c153
2014-08-08 Stefan Monnier <monnier@iro.umontreal.ca>
* mouse.el (mouse--down-1-maybe-follows-link): Don't convert the down
event (bug#18212).
2014-08-08 Eli Zaretskii <eliz@gnu.org>
* info.el (info): Doc fix.
...
...
lisp/mouse.el
View file @
5a88c153
...
...
@@ -117,19 +117,14 @@ Expects to be bound to `down-mouse-1' in `key-translation-map'."
'double-mouse-1
'mouse-1
))
;; Turn the mouse-1 into a mouse-2 to follow links.
(
let
((
newup
(
if
(
eq
mouse-1-click-follows-link
'double
)
'double-mouse-2
'mouse-2
))
(
newdown
(
if
(
eq
mouse-1-click-follows-link
'double
)
'double-down-mouse-2
'down-mouse-2
)))
'double-mouse-2
'mouse-2
)))
;; If mouse-2 has never been done by the user, it doesn't have
;; the necessary property to be interpreted correctly.
(
put
newup
'event-kind
(
get
(
car
event
)
'event-kind
)
)
(
put
new
down
'event-kind
(
get
(
car
this-
event
)
'event-kind
))
(
unless
(
get
newup
'event-kind
)
(
put
new
up
'event-kind
(
get
(
car
event
)
'event-kind
))
)
(
push
(
cons
newup
(
cdr
event
))
unread-command-events
)
;; Modify the event in place, so read-key-sequence doesn't
;; generate a second fake prefix key (see fake_prefixed_keys in
;; src/keyboard.c).
(
setcar
this-event
newdown
)
(
vector
this-event
))
;; Don't change the down event, only the up-event (bug#18212).
nil
)
(
push
event
unread-command-events
)
nil
))))))
...
...
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