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#65116: 29.1; query-replace-read-args fails reading second arg in detached minibuf Date: Mon, 07 Aug 2023 18:57:17 +0300 Message-ID: <83jzu6onfm.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35207"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65116@debbugs.gnu.org To: Jim Rees Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 07 17:58:40 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 1qT2cx-0008tP-GP for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Aug 2023 17:58:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qT2cO-0006xU-QI; Mon, 07 Aug 2023 11:58:04 -0400 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 1qT2cN-0006x8-7K for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 11:58:03 -0400 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 1qT2cM-0002ix-Va for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 11:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qT2cM-0001in-Eg for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 11:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Aug 2023 15:58:02 +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.16914238286540 (code B ref 65116); Mon, 07 Aug 2023 15:58:02 +0000 Original-Received: (at 65116) by debbugs.gnu.org; 7 Aug 2023 15:57:08 +0000 Original-Received: from localhost ([127.0.0.1]:34125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qT2bU-0001hQ-FB for submit@debbugs.gnu.org; Mon, 07 Aug 2023 11:57:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qT2bQ-0001gt-4B for 65116@debbugs.gnu.org; Mon, 07 Aug 2023 11:57:06 -0400 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 1qT2bK-0002Rq-0k; Mon, 07 Aug 2023 11:56:58 -0400 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=0IT5n4Og3gLjnenvGLDD+T7XvrqDsVmwxR7YSvEjj/w=; b=o88bg0UPEm06 adSApFUYjGj4GwArt3px9nOYrYjMaHgvIAKLw27cyX0mFSkoQnBVbQ83oBeQ2U2wZ1QcPmRTRbe7Z M17DW42QPW4eIcYM/G7xk0f8TlfNkWYTdreSyDGNTv4YEC2KCgxFQtw+sZ9N3Xf3/zn+G56twx4Rr 89Czi8F8qjV+hdNaRqo7/00gUUKo8ba/Vbrk1MKSXfFlHji8//UsxxEUukRvZdtFV/22qXdpinSNU cd+Lbg3vD4Tfrw+CxUWK5OkL5to5SmYZZoiq2Cy+wXKxkE0OsUNm8rlI4HD+uIcGRiUKX/jMbhR35 NhVGH3KUH3ojUbCS2C0hOg==; In-Reply-To: (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:266894 Archived-At: > Date: Sun, 6 Aug 2023 11:18:34 -0600 > From: Jim Rees via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > With detached minibuf, query-replace doesn't work because > query-replace-read-args doesn't shift focus to minibuf for the replacement > string. Possibly related to Bug 64152. This worked in 28.1. > > To reproduce, create init.el with these two lines: > > (add-to-list 'initial-frame-alist '(minibuffer . nil)) > (add-to-list 'minibuffer-frame-alist '(minibuffer . only)) > > Now run emacs: > emacs-29.1 -Q --load init.el > > Run query-replace, usually bound to M-%. Focus will shift to the minibuf. > Enter a string and hit . The minibuf will now prompt for a > replacement string, but focus will now be in the scratch buffer instead of > the minibuf, and it will be impossible to enter the replacement string > without re-focusing. What I see here is that the frame where *scratch* is shown becomes the selected frame, but input focus stays in the minibuffer frame, so if I type the replacement string (without any refocusing), the command accepts the replacement and starts replacing after I type RET. YMMV, depending on your WM, I think. > In GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) > of 2023-01-15 built on motul The Subject says "Emacs 29.1", but this report is from Emacs 28.1. So which one is the version where you see the problem?