From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65116: 29.1; query-replace-read-args fails reading second arg in detached minibuf Date: Sun, 14 Jan 2024 08:27:16 +0800 Message-ID: <87o7do21zv.fsf@yahoo.com> References: <831qalivwr.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22482"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Alan Mackenzie , jim@rees.org, 65116@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 14 01:28:26 2024 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 1rOoMT-0005f5-4g for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Jan 2024 01:28:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOoM8-0005K5-DE; Sat, 13 Jan 2024 19:28: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 1rOoM7-0005Jx-Cm for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 19:28:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rOoM7-00056S-4N for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 19:28:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rOoM5-0006Js-PL for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 19:28:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Jan 2024 00:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65116 X-GNU-PR-Package: emacs Original-Received: via spool by 65116-submit@debbugs.gnu.org id=B65116.170519205324251 (code B ref 65116); Sun, 14 Jan 2024 00:28:01 +0000 Original-Received: (at 65116) by debbugs.gnu.org; 14 Jan 2024 00:27:33 +0000 Original-Received: from localhost ([127.0.0.1]:41350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOoLc-0006J4-QT for submit@debbugs.gnu.org; Sat, 13 Jan 2024 19:27:33 -0500 Original-Received: from sonic314-21.consmr.mail.ne1.yahoo.com ([66.163.189.147]:41391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOoLa-0006Ir-9I for 65116@debbugs.gnu.org; Sat, 13 Jan 2024 19:27:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1705192045; bh=Ec7IkiEZTU2/8vKsFS0bYv7KcTG6k+o8UHXBnQuFw2A=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=JQqky4/3UpjkQudxq2+HYRxrhLkV/TkBIcEBGfzMCmfLkoh+XTMZyQ443rTLOS820EIHXSmjo2kxPN2kQdGiMTSqkBoEWtl4v+YsGPxkzUr1w15UZ3KvrCLtpCkvXe5CA+7UXBLuD4MEszDsDQChNv9WxBy6NV3JXYtGuFIgbs0Dxa0x/kAvPFju07t+16K4YAEKW+LudzMGO+GVxl6QhtnJS4y5+2EiG2cEWHp5EYJpe+CUbz5fpSWFSlv0sclKQhKmCavyEYnJjS8ZYt/YNCrEZvB8za8ngdSlPcxyEQCmQUBsulTVxcvFc9DlMBnOaaVxWCIf3qmPWoh/F2Potg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1705192045; bh=zcc7GSfLGwNn0RYh3eh/RNwsx8lgso+9wVbjzDxlrQ6=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=K2noLfcUF9R+cdkMV58Ra12KFwve8XwjMArPztJ52nApXXF27zODIT82H4a9AlYRy/QLIizd7okvpZwamURqqQ6ZV2riUE+B9VgdL4pNDEuzWwuZ34yK1DA7kbut/YT4FE0G9FeNJe4nma055i12xI5hONkb9z9nox/9HWRD8kw5dMkYEqsM9l73NfSb7yf9sWd+W4pn1K2JcguRBZ7yWByEHxM4EOSfclNyEusUu3fFa9rPNuo26zslgNrO7koBYsZMnKkuC0vsAsOVUou2C7dxIprRxelRkVneLsFOTZ3QgvJwQU3b3F7yhU7lWBUBpmL/NpoGyYv3PlGE1zQwjg== X-YMail-OSG: 7ici9c4VM1mrmM5DrPCQ1h5aAekAVADloBiwb7DaEKkKK0MzvitzavbaS9k_d78 wHnHjnDHFoZElZh49izN3kF0XEEx7yHnn8hLqYyOQy4mkw2UiBec33sRJzipEw8jZFQVlHPML9Vv bHitItghj7JnjRhuV8_3DETvVrKnsmSrn0fuLJL7U.er0pa_ypqgmZ1H3bedQsgIrdtJZpCHlGja WsQB1UZiZm0eb3utJDR2ftMwguG9fEoqmj2KH_x1zoA9K2LjjiN9cGftiPC_OjXcD7WqVF_L0tsd WS3PrfDB_IL3G1VxRVCYnsGPcRuGOc2H7YAHU7Kc5vBab96W6eGiwx8.9BkdyTRBcOSncuDm1AI4 pAlxTHH0c64_tZmmd7Dsy5RJs4cbCofxMlRPiJq9fVKNXpnp1onc.cW0I0kWYyQgWGvwJoWrg_Ra K_m9ZJFU0nktd2ekZcjLemMeXPX4qaw4WElEIt1jTWl5N_yjxO4SnuPosMblWRaRznb0Uwmt4GT2 BOlcfV95HIJdvvQIfumGr0EPqh73c3hc4UsCzjsBfmG.eH2zmuJSBcFgidnRaO6dBNfbmYWJCkvG 60gKehz06WVjrQrMGhUvcxihh60lDfxNib7blTow5r7a0C3jtNvNJuQ9Yge61wfshGdvLmJ0q7Fz PDvz7Rfo.r6k120slFVXGkz4NuxA0fdMeWbK1XPfH3_bUzYT1TOXFu757fE97A2wnBlTNCLPnJ1r ttOlASFhgsJJrxZusLsIgqKJky1jjZdcsVs6yvRExpYttzvLnbfyc2L3oUMfLp_oLidKeVjb5lYl mQ3SoxIclLi3018IqHoVAbzR0emWWGH8Z6h6ix0NMW X-Sonic-MF: X-Sonic-ID: b4d8c948-6644-4e07-9563-e4ed781f87cb Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Sun, 14 Jan 2024 00:27:25 +0000 Original-Received: by hermes--production-sg3-677476f564-vn824 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 96cb3fb401453375526aebd5d946172e; Sun, 14 Jan 2024 00:27:22 +0000 (UTC) In-Reply-To: <831qalivwr.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 13 Jan 2024 08:34:28 +0200") X-Mailer: WebService/1.1.22010 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:278165 Archived-At: Eli Zaretskii writes: >> Date: Fri, 12 Jan 2024 21:44:11 +0000 >> Cc: 65116@debbugs.gnu.org, Eli Zaretskii , acm@muc.de >> From: Alan Mackenzie >> >> Hello, Jim. >> >> On Fri, Jan 12, 2024 at 12:57:42 -0600, Jim Rees wrote: >> > Well that's a relief. I do have an unusual setup with detached minibuf and >> > focus follows mouse. There has been a lot of churn in replace.el and frame.c >> > lately and I keep hoping the bug will go away on its own. I don't really >> > understand all the focus changes in the code but I do see why they are >> > necessary. >> >> > I have a workaround, I have bound this to a key and use it to re-focus to >> > the minibuf so I can enter the 'to' text: >> >> > (select-frame-set-input-focus (window-frame (minibuffer-window))) >> >> > But that requires manual intervention so for now I'm sticking with 28.1. >> >> I've been playing with the setup for an hour or two. It seems that >> performing some action in the minibuffer (say, M-x auto-revert-mode, but >> anything will do) causes M-% to work properly. But then, the moment the >> mouse leaves the active frame or window (I'm not sure which), M-% no >> longer works properly, until the next minibuffer action. >> >> I know this isn't much help to you, but it should be a help to us, >> tracking down what's going wrong. > > If this is WM-specific, maybe Po Lu (CC'ed) could help us understand > what happens here? Perhaps some message we expect from X is not being > received in this scenario? This is GTK3-specific. I've installed a fix on master, please test.