bug#81667: 32.0.50; `query-replace-show-preview' includes Quail IME UI and suggestions in buffer preview

Eli Zaretskii <[email protected]>
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
> From: समीर सिंह Sameer Singh <[email protected]>
> Date: Thu, 20 Aug 2026 23:49:59 -0700
> Cc: [email protected], [email protected], [email protected]
> 
> Eli Zaretskii <[email protected]> writes:
> 
> >> From: समीर सिंह Sameer Singh <[email protected]>
> >> Date: Thu, 20 Aug 2026 21:12:16 -0700
> >> Cc: [email protected], [email protected], [email protected]
> >>
> >> Hi Rahul,
> >>
> >> Thanks for the patch.
> >> I see one problem with the patch applied. The cursor, if not inserting
> >> text, appears in the second line of the minibuffer now (where the
> >> completion suggestions usually appear)
> >>
> >> Maybe Eli or Juri can tell what is happening wrong here?
> >
> > In the case of query-replace-show-preview, or when using IM in
> > general?
> 
> When using the IM in general in the minibuffer with the patch applied.

Looks like one more reason not to make the proposed change the
default, but as a variant callers could use, per my comments.

And yes, using the 'cursor' property on the overlay string, or perhaps
moving the cursor before the overlay string, might solve the problem
in this case.  (It is hard for me to say without being familiar with
this IM and without close study of the proposed patch to use
overlays.)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.