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#59918: 29.0.60; query-replace in the minibuffer lazy-highlights original buffer Date: Sat, 10 Dec 2022 20:36:06 +0200 Message-ID: <838rjfw1gp.fsf@gnu.org> References: <86y1rhhvsi.fsf@mail.linkov.net> <86r0x7gnnx.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32365"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59918@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 10 19:37:24 2022 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 1p44iy-0008Bi-K0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Dec 2022 19:37:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p44ig-0004xW-1R; Sat, 10 Dec 2022 13:37: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 1p44id-0004x1-Dg for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 13:37: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 1p44id-0007C3-66 for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 13:37:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p44ic-0004Qr-Gp for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 13:37: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: Sat, 10 Dec 2022 18:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59918 X-GNU-PR-Package: emacs Original-Received: via spool by 59918-submit@debbugs.gnu.org id=B59918.167069737717018 (code B ref 59918); Sat, 10 Dec 2022 18:37:02 +0000 Original-Received: (at 59918) by debbugs.gnu.org; 10 Dec 2022 18:36:17 +0000 Original-Received: from localhost ([127.0.0.1]:44395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p44ht-0004QQ-0d for submit@debbugs.gnu.org; Sat, 10 Dec 2022 13:36:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p44hr-0004QH-GC for 59918@debbugs.gnu.org; Sat, 10 Dec 2022 13:36:16 -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 1p44hl-0006Sz-9s; Sat, 10 Dec 2022 13:36:09 -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=KHCA9SkLtZD47rY+jlqmLa9SpO+jGgdRLejrfTgkAMk=; b=HuyIl74cODe+ WlMC/o3RbZ88DsgGXXKX12bPmw/dRHCR+ftmbxnbqsgT9PDj3LMZLcLB5/GFIMwvtOy7t/PjF6aQ8 NS7ype3edFfynkf1UbvqK2uETqMvD0xQltaxjbYwlkTGuQa28QwNdOF39yTi28UtBO8f/FBdKewDj q6nkZqhRhD9/Yv1NjfbpU4L0x1qhasKZZnrLwsvN+3jyUbYrHkkxg9Zmv3XJHBVcJ+XLKW4f/7SS1 2hPWyi+L02A1UOc5qkHf8YqcX8qGl1Z8935yPD2VIhIytta2PExhwMCbOF50kS2QPELfA1Nu2lVky pQg7z9uHbBXeb23TjcdAuw==; 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 1p44hk-00052N-Qf; Sat, 10 Dec 2022 13:36:09 -0500 In-Reply-To: <86r0x7gnnx.fsf@mail.linkov.net> (message from Juri Linkov on Sat, 10 Dec 2022 19:20:14 +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:250544 Archived-At: > From: Juri Linkov > Date: Sat, 10 Dec 2022 19:20:14 +0200 > > > 1. (setq enable-recursive-minibuffers t) > > 2. M-! is C-a > > 3. M-% is > > > > Matches are lazy-highlighted in the original buffer, > > but the replacement is going to be used to replace > > matches in the minibuffer. > > Unfortunately, this is how minibuffer-selected-window behaves: > > 1. M-! > 2. M-x > 3. M-: (minibuffer-selected-window) > > returns *scratch*, but not the minibuffer where it was invoked. > > So lazy-highlighting could be disabled if (minibuffer-depth) > 1, > if we are sure that not such highlighting would be preferable. If you know that you are in the minibuffer window, you can get that window by calling minibuffer-window, right?