1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00

Revert "* lisp/mouse.el: Fix mouse-1-clock-follows-mouse = double"

This reverts commit 02a5cfce47.
That commit breaks because of a missing patch to `parse_modifiers_uncached`
in `src/keyboard.c`.  IOW, too risky for `emacs-27`.

Don't merge to `master`.
This commit is contained in:
Stefan Monnier 2021-03-12 14:30:47 -05:00
parent 02a5cfce47
commit a2960025e8

View File

@ -116,9 +116,7 @@ Expects to be bound to `(double-)mouse-1' in `key-translation-map'."
(time-since (cdr mouse--last-down))
(/ (abs mouse-1-click-follows-link) 1000.0))))))
(eq (car mouse--last-down)
(event-convert-list
`(down ,@(event-modifiers last-input-event)
,(event-basic-type last-input-event))))
(event-convert-list (list 'down (car-safe last-input-event))))
(let* ((action (mouse-on-link-p (event-start last-input-event))))
(when (and action
(or mouse-1-click-in-non-selected-windows