From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#65116: 29.1; query-replace-read-args fails reading second arg in detached minibuf Date: Fri, 12 Jan 2024 15:37:08 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1772"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, Eli Zaretskii , 65116@debbugs.gnu.org To: Jim Rees Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 12 16:38:20 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 1rOJbv-0000E9-Nl for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Jan 2024 16:38:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOJbi-00019n-Gw; Fri, 12 Jan 2024 10:38:06 -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 1rOJbg-00019I-OT for bug-gnu-emacs@gnu.org; Fri, 12 Jan 2024 10:38:04 -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 1rOJbg-0003NX-GQ for bug-gnu-emacs@gnu.org; Fri, 12 Jan 2024 10:38:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rOJbe-0004uE-Gg for bug-gnu-emacs@gnu.org; Fri, 12 Jan 2024 10:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jan 2024 15:38: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.170507383818802 (code B ref 65116); Fri, 12 Jan 2024 15:38:02 +0000 Original-Received: (at 65116) by debbugs.gnu.org; 12 Jan 2024 15:37:18 +0000 Original-Received: from localhost ([127.0.0.1]:37252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOJav-0004tC-IM for submit@debbugs.gnu.org; Fri, 12 Jan 2024 10:37:17 -0500 Original-Received: from mail.muc.de ([193.149.48.3]:26157) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOJaq-0004sw-G0 for 65116@debbugs.gnu.org; Fri, 12 Jan 2024 10:37:16 -0500 Original-Received: (qmail 22496 invoked by uid 3782); 12 Jan 2024 16:37:08 +0100 Original-Received: from acm.muc.de (p4fe152a6.dip0.t-ipconnect.de [79.225.82.166]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 12 Jan 2024 16:37:08 +0100 Original-Received: (qmail 10212 invoked by uid 1000); 12 Jan 2024 15:37:08 -0000 Content-Disposition: inline In-Reply-To: X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:278040 Archived-At: Hello, Jim. On Sun, Aug 06, 2023 at 11:18:34 -0600, Jim Rees wrote: > 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. > 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 > Windowing system distributor 'The X.Org Foundation', version 11.0.12101008 > System Description: Arch Linux .... and in a more recent post: > The problem is in 29.1. I think report-emacs-bug just appends the info > for whatever version of emacs you are running at the time you report a > bug. > I have tried two different window managers, twm and openbox, and get > the bug in both of them. However, it only happens if I am running with > focus follows mouse. It does not happen if I have set click to focus. > The settings of focus-follows-mouse and > minibuffer-follows-selected-frame make no difference. I can't reproduce the bug on my setup, GNU/Linux with an XFCE window manager with "focus follows mouse" set. I've tried both with Emacs 29.1, and a fairly recent version from our git master branch. Seeing as how "focus follows mouse" is set, does it make any difference where on the screen the mouse is when you perform the various steps of the bug recipe? Where was your mouse when entering the original string and then attempting to enter the replacement string? -- Alan Mackenzie (Nuremberg, Germany).