From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32257: 26.1; read-multiple-choice inf loops on mouse clicks Date: Tue, 31 Jul 2018 19:04:07 +0300 Message-ID: <83zhy7o0i0.fsf@gnu.org> References: <87muug4z52.fsf@gmail.com> <87y3dy3i05.fsf@gmail.com> <83muudrqol.fsf@gnu.org> <83effosvx2.fsf@gnu.org> <87r2jo3l0w.fsf@gmail.com> <837elgss8l.fsf@gnu.org> <87sh40189j.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1533053055 11369 195.159.176.226 (31 Jul 2018 16:04:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 31 Jul 2018 16:04:15 +0000 (UTC) Cc: 32257@debbugs.gnu.org, andrewjmoreton@gmail.com To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 31 18:04:11 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkX86-0002r4-Uq for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Jul 2018 18:04:11 +0200 Original-Received: from localhost ([::1]:59701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkXAD-0004Jw-MH for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Jul 2018 12:06:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkX90-0003T5-BK for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2018 12:05:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkX8w-0001XL-FS for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2018 12:05:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59798) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fkX8w-0001Wy-BQ for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2018 12:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fkX8w-0003RN-0S for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2018 12:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Jul 2018 16:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32257 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32257-submit@debbugs.gnu.org id=B32257.153305305013152 (code B ref 32257); Tue, 31 Jul 2018 16:05:01 +0000 Original-Received: (at 32257) by debbugs.gnu.org; 31 Jul 2018 16:04:10 +0000 Original-Received: from localhost ([127.0.0.1]:36583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkX85-0003Q4-Uu for submit@debbugs.gnu.org; Tue, 31 Jul 2018 12:04:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkX84-0003Ps-Pz for 32257@debbugs.gnu.org; Tue, 31 Jul 2018 12:04:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkX7z-0000o8-0e for 32257@debbugs.gnu.org; Tue, 31 Jul 2018 12:04:03 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkX7u-0000nB-Mk; Tue, 31 Jul 2018 12:03:58 -0400 Original-Received: from [176.228.60.248] (port=4724 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fkX7u-0001nm-5N; Tue, 31 Jul 2018 12:03:58 -0400 In-reply-to: <87sh40189j.fsf@gmail.com> (message from Noam Postavsky on Mon, 30 Jul 2018 21:52:40 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:149114 Archived-At: > From: Noam Postavsky > Cc: 32257@debbugs.gnu.org, andrewjmoreton@gmail.com > Date: Mon, 30 Jul 2018 21:52:40 -0400 > > Another possibility is to use read-char-exclusive which only changes > ERROR_NON_ASCII to 0. The downside is that when there are mouse clicks > it prints the events into the minibuffer, covering the prompt (but > typing "?" still works to restore the prompt). > > --- i/lisp/emacs-lisp/rmc.el > +++ w/lisp/emacs-lisp/rmc.el > @@ -118,7 +118,7 @@ read-multiple-choice > choices))) > (condition-case nil > (let ((cursor-in-echo-area t)) > - (read-char)) > + (read-char-exclusive)) > (error nil)))) > (setq answer (lookup-key query-replace-map (vector tchar) t)) > (setq tchar Maybe this is the best compromise for emacs-026. We could search for a better (and bolder) solution on master. Thanks.