[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: |
Wed, 20 Apr 2022 20:16:09 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
>>> The test case is to double-click a word, `C-s' and then `mouse-2' to
>>> insert it. With the patch, that's what happens.
>>
>> But only when mouse-yank-at-point is non-nil?
>
> Yes.
>
>> I still don't understand why allowing to yank by clicking anywhere in
>> the buffer should depend on mouse-yank-at-point? It allows yanking at
>> point, but in isearch it yanks to the search string in the echo area.
>
> When doing isearch, for the user it looks like point is down there --
> that's where the input is apparently going, after all. So giving the
> yank result to isearch instead of inserting it where the mouse pointer
> is is consistent and expected behaviour.
I have no preference about whether clicking on the buffer should yank
to the search string. Maybe some users expect that it should exit Isearch?
But in any case I think it should not depend on mouse-yank-at-point.
So maybe we could just remove this condition altogether to allow
isearch yanking by clicking anywhere?
- (if (and (window-minibuffer-p w)
- (not (minibuffer-window-active-p w))) ; in echo area
(isearch-yank-x-selection)
- 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, 2022/04/18
- 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 <=
- 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
- bug#7787: 23.2; wrong meaning for mouse-2 while in search mode, Lars Ingebrigtsen, 2022/04/24
- bug#7787: 23.2; wrong meaning for mouse-2 while in search mode, Juri Linkov, 2022/04/25
- bug#7787: 23.2; wrong meaning for mouse-2 while in search mode, Lars Ingebrigtsen, 2022/04/26
- bug#7787: 23.2; wrong meaning for mouse-2 while in search mode, Drew Adams, 2022/04/26