From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#7787: 23.2; wrong meaning for mouse-2 while in search mode Date: Thu, 13 Aug 2020 02:53:16 +0300 Organization: LINKOV.NET Message-ID: <87v9hngyp3.fsf@mail.linkov.net> References: <4433B297-FA8A-4172-8CAF-9E9C65760116@mac.com> <87wo9s1q0y.fsf@marxist.se> <87blr41npz.fsf@marxist.se> <871rry3g2g.fsf@marxist.se> <64FCE389-3139-4011-B06A-F8C220CCDBC9@mac.com> <87v9pa1wyr.fsf@marxist.se> <87k15b9kip.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7257"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: Perry Wagle , 7787@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 13 03:09:45 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k61kW-0001m5-Aw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Aug 2020 03:09:44 +0200 Original-Received: from localhost ([::1]:34944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k61kV-0004t2-DO for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Aug 2020 21:09:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k61js-0003rN-UA for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 21:09:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34653) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k61js-0004qz-Jw for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 21:09:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k61js-00045t-FE for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 21:09:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Aug 2020 01:09:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7787 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 7787-submit@debbugs.gnu.org id=B7787.159728091815649 (code B ref 7787); Thu, 13 Aug 2020 01:09:04 +0000 Original-Received: (at 7787) by debbugs.gnu.org; 13 Aug 2020 01:08:38 +0000 Original-Received: from localhost ([127.0.0.1]:46191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k61jS-00044L-L1 for submit@debbugs.gnu.org; Wed, 12 Aug 2020 21:08:38 -0400 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:46353) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k61jR-00043n-6L for 7787@debbugs.gnu.org; Wed, 12 Aug 2020 21:08:37 -0400 Original-Received: from mail.gandi.net (m91-129-102-47.cust.tele2.ee [91.129.102.47]) (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id A2C48240007; Thu, 13 Aug 2020 01:08:29 +0000 (UTC) In-Reply-To: (Stefan Kangas's message of "Wed, 12 Aug 2020 14:50:32 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:184920 Archived-At: > 0. emacs -Q > 1. M-: (setq mouse-yank-at-point t) RET > 2. double click any word to mark it > 3. C-s > 4. mouse-2 [with cursor still over the original window, not in > minibuffer] > >> I see that the existing implementation of isearch-mouse-2 >> allows yanking the selection when clicked in the echo area, >> but when clicked in the buffer it goes into infinite recursion, >> because isearch-mouse-2 calls itself again. > > This is what I see as well, on current master. 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.