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:06:29 +0300 Message-ID: <83y3dro0e2.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 1533053111 15323 195.159.176.226 (31 Jul 2018 16:05:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 31 Jul 2018 16:05:11 +0000 (UTC) Cc: 32257@debbugs.gnu.org To: Andy Moreton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 31 18:05:07 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 1fkX8y-0003qA-L4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Jul 2018 18:05:04 +0200 Original-Received: from localhost ([::1]:59709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkXB5-0004rn-Fb for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Jul 2018 12:07:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkXAv-0004qV-5N for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2018 12:07:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkXAr-0002af-VB for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2018 12:07:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59802) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fkXAr-0002aU-Qm for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2018 12:07:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fkXAr-0003Ue-KC for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2018 12:07:01 -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:07: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.153305318913385 (code B ref 32257); Tue, 31 Jul 2018 16:07:01 +0000 Original-Received: (at 32257) by debbugs.gnu.org; 31 Jul 2018 16:06:29 +0000 Original-Received: from localhost ([127.0.0.1]:36587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkXAL-0003Tp-C2 for submit@debbugs.gnu.org; Tue, 31 Jul 2018 12:06:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkXAJ-0003TZ-A3 for 32257@debbugs.gnu.org; Tue, 31 Jul 2018 12:06:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkXAD-0002Lz-6o for 32257@debbugs.gnu.org; Tue, 31 Jul 2018 12:06:22 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkXAD-0002Lr-2U; Tue, 31 Jul 2018 12:06:21 -0400 Original-Received: from [176.228.60.248] (port=4870 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fkXAC-0006rQ-HK; Tue, 31 Jul 2018 12:06:20 -0400 In-reply-to: (message from Andy Moreton on Tue, 31 Jul 2018 12:59:37 +0100) 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:149115 Archived-At: > From: Andy Moreton > Date: Tue, 31 Jul 2018 12:59:37 +0100 > > > 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). > > AS you have done, I read the implementation and tried a patch using > `read-char-exclusive'. The result is unusable as the printed events > obscure the original question. I think "unusable" is an exaggeration, since you can recover the prompt. And the result is definitely better than the current situation, where you just get stuck. > The proper long term fix for this is to make read-multiple-choice use a > dedicated buffer rather than the minibuffer, and give better visibility > when more than one question is asked in succession. Perhaps also some > way to stop the echo area from obscuring the minibuffer ? The echo-area messages are fine, but we should have a feature that allows to suppress echoing the mouse clicks.