From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62032: 28.2; `switch-frame' event exits incremental search Date: Tue, 07 Mar 2023 15:30:11 +0200 Message-ID: <83wn3s6658.fsf@gnu.org> References: <4941298cd70a4be0a12aa64013b0a4de@vodafonemail.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35371"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62032@debbugs.gnu.org To: "Farblos" , Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 07 14:31:16 2023 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 1pZXPP-00094n-OR for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Mar 2023 14:31:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZXPE-0005HX-Kw; Tue, 07 Mar 2023 08:31:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZXPC-0005Gy-Gt for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2023 08:31:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZXPC-0004FF-8u for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2023 08:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZXPC-0003Rx-5q for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2023 08:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Mar 2023 13:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62032 X-GNU-PR-Package: emacs Original-Received: via spool by 62032-submit@debbugs.gnu.org id=B62032.167819583013220 (code B ref 62032); Tue, 07 Mar 2023 13:31:02 +0000 Original-Received: (at 62032) by debbugs.gnu.org; 7 Mar 2023 13:30:30 +0000 Original-Received: from localhost ([127.0.0.1]:44815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZXOf-0003R9-Re for submit@debbugs.gnu.org; Tue, 07 Mar 2023 08:30:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZXOd-0003Qw-9j for 62032@debbugs.gnu.org; Tue, 07 Mar 2023 08:30:28 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZXOV-00043L-2z; Tue, 07 Mar 2023 08:30:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=93N3xweJngFkbdHlgIiHxuIpXiLnzAMjPPdJpx8FqpU=; b=ANwxAEd4OkaM LifbiQRse+DwHxEJMGHt5QadebXTJr1FfejDMqliFVNjwVw+t2K4VAW0f7R7Z/bPs4gtl2MCCkVgZ K39y1IeAi8oZ+JqOViiyCCD5PKt1lZjbSFeJcOZxIhVFuaywt2QNp2FiyBf4e9IlsLFztgyowkYL6 IHi2FkUxYJoa0bvu0z1jSaHr7Hfs6LDqtNo71yWyAv3LJr9cokZAXS9+6YAJ+WpBa6khLTmXcervs o5XafePjACzaRc1wCGzDI7hF01KaXqZzIvl2P+8iMbujIFTUjxXZx5+plr9aOZvOay+XmgnPcxMjL qjnQk64gZX8Aa9AzhwpIug==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZXOR-0000MC-Qt; Tue, 07 Mar 2023 08:30:18 -0500 In-Reply-To: <4941298cd70a4be0a12aa64013b0a4de@vodafonemail.de> (bug-gnu-emacs@gnu.org) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:257451 Archived-At: > Date: Tue, 07 Mar 2023 12:38:45 +0100 > From: "Farblos" via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Not sure whether bug or feature ... > > Start emacs as "emacs -Q". Then: > > ;; open second frame > C-x 5 b *Messages* RET > > ;; switch back to first frame showing scratch buffer > C-x 5 o > > ;; go to beginning of scratch buffer > ESC < > > ;; isearch for "buffer" > C-s buffer > > > > The last step on my Emacs would exit the incremental search on the first Emacs frame. > > >From this comment in isearch.el: > > ;; Pass frame events transparently so they won't exit the search. > ;; In particular, if we have more than one display open, then a > ;; switch-frame might be generated by someone typing at another keyboard. > (define-key map [switch-frame] nil) > (define-key map [delete-frame] nil) > (define-key map [iconify-frame] nil) > (define-key map [make-frame-visible] nil) > (define-key map [mouse-movement] nil) > (define-key map [language-change] nil) > > I would deduce that this should not happen. > > When I bind #'ignore to [switch-frame] instead of nil things work as expected (by me). Juri, could you please look into this?