all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: 59918@debbugs.gnu.org
Subject: bug#59918: 29.0.60; query-replace in the minibuffer lazy-highlights original buffer
Date: Sat, 10 Dec 2022 19:20:14 +0200	[thread overview]
Message-ID: <86r0x7gnnx.fsf@mail.linkov.net> (raw)
In-Reply-To: <86y1rhhvsi.fsf@mail.linkov.net> (Juri Linkov's message of "Fri,  09 Dec 2022 09:42:49 +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.





  reply	other threads:[~2022-12-10 17:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-09  7:42 bug#59918: 29.0.60; query-replace in the minibuffer lazy-highlights original buffer Juri Linkov
2022-12-10 17:20 ` Juri Linkov [this message]
2022-12-10 18:36   ` Eli Zaretskii
2022-12-11 11:40 ` Augusto Stoffel
2022-12-12 17:43   ` Juri Linkov
2022-12-12 18:07     ` Eli Zaretskii
2022-12-12 19:05       ` Augusto Stoffel
2022-12-12 19:28         ` Eli Zaretskii
2022-12-12 22:42           ` Augusto Stoffel
2022-12-13 12:05             ` Eli Zaretskii
2022-12-13 17:39               ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86r0x7gnnx.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=59918@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.