[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7787: 23.2; wrong meaning for mouse-2 while in search mode
From: |
Juri Linkov |
Subject: |
bug#7787: 23.2; wrong meaning for mouse-2 while in search mode |
Date: |
Mon, 18 Apr 2022 22:12:07 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
>> The problem is that 'key-binding' in 'isearch-mouse-2'
>>
>> (let ((overriding-terminal-local-map nil))
>> (key-binding (this-command-keys-vector) t))
>>
>> still returns the keybinding from 'overriding-terminal-local-map'
>> that contains isearch keybindings. Something is wrong here.
>
> I'm wholly unfamiliar with this code, but the following trivial patch
> seems to do the trick?
>
> diff --git a/lisp/isearch.el b/lisp/isearch.el
> index 168d71ada3..26db141781 100644
> --- a/lisp/isearch.el
> +++ b/lisp/isearch.el
> @@ -2629,9 +2629,10 @@ isearch-mouse-2
> ;; Key search depends on mode (bug#47755)
> (isearch-mode nil))
> (key-binding (this-command-keys-vector) t))))
> - (if (and (window-minibuffer-p w)
> - (not (minibuffer-window-active-p w))) ; in echo area
> - (isearch-yank-x-selection)
> + (if (or mouse-yank-at-point
> + (and (window-minibuffer-p w)
> + (not (minibuffer-window-active-p w)))) ; in echo area
> + (isearch-yank-x-selection)
> (when (functionp binding)
> (call-interactively binding)))))
>
> Is this the wrong thing to do for some reason? I mean, we don't care
> about the value of binding in this case, I think?
I don't understand how this fixes the problem above.
- bug#7787: 23.2; wrong meaning for mouse-2 while in search mode, Lars Ingebrigtsen, 2022/04/17
- bug#7787: 23.2; wrong meaning for mouse-2 while in search mode,
Juri Linkov <=
- bug#7787: 23.2; wrong meaning for mouse-2 while in search mode, Lars Ingebrigtsen, 2022/04/18
- bug#7787: 23.2; wrong meaning for mouse-2 while in search mode, Juri Linkov, 2022/04/20
- bug#7787: 23.2; wrong meaning for mouse-2 while in search mode, Lars Ingebrigtsen, 2022/04/20
- bug#7787: 23.2; wrong meaning for mouse-2 while in search mode, Juri Linkov, 2022/04/20
- bug#7787: 23.2; wrong meaning for mouse-2 while in search mode, Lars Ingebrigtsen, 2022/04/21
- bug#7787: 23.2; wrong meaning for mouse-2 while in search mode, Juri Linkov, 2022/04/21
- bug#7787: 23.2; wrong meaning for mouse-2 while in search mode, Drew Adams, 2022/04/21
- bug#7787: 23.2; wrong meaning for mouse-2 while in search mode, Lars Ingebrigtsen, 2022/04/22
- bug#7787: 23.2; wrong meaning for mouse-2 while in search mode, Juri Linkov, 2022/04/24
- bug#7787: 23.2; wrong meaning for mouse-2 while in search mode, Lars Ingebrigtsen, 2022/04/24