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#59918: 29.0.60; query-replace in the minibuffer lazy-highlights original buffer Date: Sat, 10 Dec 2022 19:20:14 +0200 Organization: LINKOV.NET Message-ID: <86r0x7gnnx.fsf@mail.linkov.net> References: <86y1rhhvsi.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29809"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) To: 59918@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 10 18:48:44 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 1p43xr-0007cX-Ms for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Dec 2022 18:48:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p43xI-0002wZ-2a; Sat, 10 Dec 2022 12:48:08 -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 1p43xD-0002vW-47 for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 12:48: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 1p43xC-0002RQ-SZ for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 12:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p43xC-0001aN-OD for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 12:48: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: Sat, 10 Dec 2022 17:48: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.16706944505947 (code B ref 59918); Sat, 10 Dec 2022 17:48:02 +0000 Original-Received: (at 59918) by debbugs.gnu.org; 10 Dec 2022 17:47:30 +0000 Original-Received: from localhost ([127.0.0.1]:44191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p43wg-0001Xr-EQ for submit@debbugs.gnu.org; Sat, 10 Dec 2022 12:47:30 -0500 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:57247) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p43we-0001XN-LV for 59918@debbugs.gnu.org; Sat, 10 Dec 2022 12:47:29 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id D7D1E20003 for <59918@debbugs.gnu.org>; Sat, 10 Dec 2022 17:47:20 +0000 (UTC) In-Reply-To: <86y1rhhvsi.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 09 Dec 2022 09:42:49 +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:250538 Archived-At: > 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.