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

समीर सिंह Sameer Singh <[email protected]>
Newsgroups gmane.emacs.bugs
Message-ID <CAOR1sLxgfK0wxd=eDEtt0i6i7E67t1zqsy9+sa9FQvGA+Uo7Ow@mail.gmail.com>
Currently, with `query-replace-show-preview' set to 't and a Quail IME
active, the replacement preview in the buffer erroneously includes the
input method's name and its completion suggestions. This happens because
the minibuffer displays this additional UI information while an input
method is active, and the replacement preview logic does not filter it
out.

Steps to reproduce:
1. emacs -Q
2. M-: (setq query-replace-show-preview t)
3. C-x RET C-\
4. Type in the name of any quail input-method, such as
"devanagari-kyoto-harvard"
5. Type in a word such as: "श्वेत"
6. M-x replace-string
7. श्वेत RET
8. Type "z" in the minibuffer

Observed behaviour:
Instead of displaying only "श्", the buffer preview text displays:
"श् [DevKH] \nz[AEILQRUaeiloqu](01/01) 1.श्", incorrectly mirroring the
full minibuffer contents.

It would be nice if this got fixed. Thanks.

-- 
समीरसिंह
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.