]> git.eshelyaron.com Git - emacs.git/commit
* lisp/mouse.el: Rework the mouse-1-click remapping
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 30 Jan 2018 17:41:29 +0000 (12:41 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 30 Jan 2018 17:41:29 +0000 (12:41 -0500)
commit3d5e31eceb9dc1fb62b2b27bcab549df3bd04ce9
treeb999899c84708630250d6772082040024bb6dbbb
parent9d4af3e6bdfac374f6c9591566c010e6a1514751
* lisp/mouse.el: Rework the mouse-1-click remapping

Avoid peeking ahead at the next event because this had undesirable effects,
such as making 'this-single-command-raw-keys' return bogus information.

(mouse--last-down): New variable.
(mouse--down-1-maybe-follows-link): Don't do the remapping here.
Instead, just keep track of the time when the down happened.
(mouse--down-1-maybe-follows-link): Do the remapping here.
(key-translation-map): Add bindings for (double-)mouse-1.
lisp/mouse.el