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#62032: 28.2; `switch-frame' event exits incremental search Date: Tue, 07 Mar 2023 20:23:55 +0200 Organization: LINKOV.NET Message-ID: <86356gxvwk.fsf@mail.linkov.net> References: <4941298cd70a4be0a12aa64013b0a4de@vodafonemail.de> <83wn3s6658.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31481"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 62032@debbugs.gnu.org, Farblos To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 07 19:29:28 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 1pZc3y-0007uX-4I for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Mar 2023 19:29:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZc3c-0002W1-NI; Tue, 07 Mar 2023 13:29: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 1pZc3a-0002EV-UB for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2023 13:29:03 -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 1pZc3a-0006Du-Lz for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2023 13:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZc3a-0005qA-Hn for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2023 13:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Mar 2023 18:29: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.167821370622379 (code B ref 62032); Tue, 07 Mar 2023 18:29:02 +0000 Original-Received: (at 62032) by debbugs.gnu.org; 7 Mar 2023 18:28:26 +0000 Original-Received: from localhost ([127.0.0.1]:47165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZc30-0005ot-Ae for submit@debbugs.gnu.org; Tue, 07 Mar 2023 13:28:26 -0500 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:58215) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZc2y-0005od-1K for 62032@debbugs.gnu.org; Tue, 07 Mar 2023 13:28:24 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 39E371BF208; Tue, 7 Mar 2023 18:28:14 +0000 (UTC) In-Reply-To: <83wn3s6658.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 07 Mar 2023 15:30:11 +0200") 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:257494 Archived-At: >> ;; 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? This looks related to bug#41338 that is still unfixed. But maybe 'ignore is really the right way to fix, this needs testing.