diff options
| author | Stefan Monnier | 2014-08-07 14:35:54 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-08-07 14:35:54 -0400 |
| commit | 87eb576e30481ddf4d8daec020f8f78a62c02a2c (patch) | |
| tree | f09f63cb5d68f1794c314263811265d9fd7f6c7d | |
| parent | 8db811eff1b890cfc12e065d86a9f93bf974e364 (diff) | |
| download | emacs-87eb576e30481ddf4d8daec020f8f78a62c02a2c.tar.gz emacs-87eb576e30481ddf4d8daec020f8f78a62c02a2c.zip | |
* lisp/info.el (Info-mode-map): Override a global down-mouse-2 binding.
Fixes: debbugs:18212
| -rw-r--r-- | lisp/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/info.el | 1 | ||||
| -rw-r--r-- | lisp/mouse.el | 17 |
3 files changed, 18 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 89f463a2fb0..783bee53dbb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,9 +1,14 @@ | |||
| 1 | 2014-08-07 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * info.el (Info-mode-map): Override a global down-mouse-2 binding | ||
| 4 | (bug#18212). | ||
| 5 | |||
| 1 | 2014-08-05 Eli Zaretskii <eliz@gnu.org> | 6 | 2014-08-05 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * simple.el (default-line-height): A floating-point value of | 8 | * simple.el (default-line-height): A floating-point value of |
| 4 | line-spacing means a fraction of the default frame font's height, | 9 | line-spacing means a fraction of the default frame font's height, |
| 5 | not of the font currently used by the 'default' face. Truncate | 10 | not of the font currently used by the 'default' face. |
| 6 | the pixel value, like the display engine does. | 11 | Truncate the pixel value, like the display engine does. |
| 7 | (window-screen-lines): Use window-inside-pixel-edges for | 12 | (window-screen-lines): Use window-inside-pixel-edges for |
| 8 | determining the window height in pixels. (Bug#18195) | 13 | determining the window height in pixels. (Bug#18195) |
| 9 | 14 | ||
| @@ -105,8 +110,8 @@ | |||
| 105 | 2014-07-19 Fabián Ezequiel Gallina <fgallina@gnu.org> | 110 | 2014-07-19 Fabián Ezequiel Gallina <fgallina@gnu.org> |
| 106 | 111 | ||
| 107 | Fix Python shell prompts detection for remote hosts. | 112 | Fix Python shell prompts detection for remote hosts. |
| 108 | * progmodes/python.el (python-shell-prompt-detect): Replace | 113 | * progmodes/python.el (python-shell-prompt-detect): |
| 109 | call-process with process-file and make it more robust. | 114 | Replace call-process with process-file and make it more robust. |
| 110 | 115 | ||
| 111 | 2014-07-17 Fabián Ezequiel Gallina <fgallina@gnu.org> | 116 | 2014-07-17 Fabián Ezequiel Gallina <fgallina@gnu.org> |
| 112 | 117 | ||
diff --git a/lisp/info.el b/lisp/info.el index 2b2490b5bdc..31ef1081dcc 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -3994,6 +3994,7 @@ If FORK is non-nil, it is passed to `Info-goto-node'." | |||
| 3994 | (define-key map "," 'Info-index-next) | 3994 | (define-key map "," 'Info-index-next) |
| 3995 | (define-key map "\177" 'Info-scroll-down) | 3995 | (define-key map "\177" 'Info-scroll-down) |
| 3996 | (define-key map [mouse-2] 'Info-mouse-follow-nearest-node) | 3996 | (define-key map [mouse-2] 'Info-mouse-follow-nearest-node) |
| 3997 | (define-key map [down-mouse-2] 'ignore) ;Override potential global binding. | ||
| 3997 | (define-key map [follow-link] 'mouse-face) | 3998 | (define-key map [follow-link] 'mouse-face) |
| 3998 | (define-key map [XF86Back] 'Info-history-back) | 3999 | (define-key map [XF86Back] 'Info-history-back) |
| 3999 | (define-key map [XF86Forward] 'Info-history-forward) | 4000 | (define-key map [XF86Forward] 'Info-history-forward) |
diff --git a/lisp/mouse.el b/lisp/mouse.el index ce691748cac..1cbff687c64 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -94,15 +94,14 @@ point at the click position." | |||
| 94 | (defun mouse--down-1-maybe-follows-link (&optional _prompt) | 94 | (defun mouse--down-1-maybe-follows-link (&optional _prompt) |
| 95 | "Turn `mouse-1' events into `mouse-2' events if follows-link. | 95 | "Turn `mouse-1' events into `mouse-2' events if follows-link. |
| 96 | Expects to be bound to `down-mouse-1' in `key-translation-map'." | 96 | Expects to be bound to `down-mouse-1' in `key-translation-map'." |
| 97 | (if (or (null mouse-1-click-follows-link) | 97 | (when (and mouse-1-click-follows-link |
| 98 | (not (eq (if (eq mouse-1-click-follows-link 'double) | 98 | (eq (if (eq mouse-1-click-follows-link 'double) |
| 99 | 'double-down-mouse-1 'down-mouse-1) | 99 | 'double-down-mouse-1 'down-mouse-1) |
| 100 | (car-safe last-input-event))) | 100 | (car-safe last-input-event)) |
| 101 | (not (mouse-on-link-p (event-start last-input-event))) | 101 | (mouse-on-link-p (event-start last-input-event)) |
| 102 | (and (not mouse-1-click-in-non-selected-windows) | 102 | (or mouse-1-click-in-non-selected-windows |
| 103 | (not (eq (selected-window) | 103 | (eq (selected-window) |
| 104 | (posn-window (event-start last-input-event)))))) | 104 | (posn-window (event-start last-input-event))))) |
| 105 | nil | ||
| 106 | (let ((this-event last-input-event) | 105 | (let ((this-event last-input-event) |
| 107 | (timedout | 106 | (timedout |
| 108 | (sit-for (if (numberp mouse-1-click-follows-link) | 107 | (sit-for (if (numberp mouse-1-click-follows-link) |