From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#34939: Some minibuffer behaviour is annoying Date: Thu, 30 May 2019 14:00:27 -0700 (PDT) Message-ID: References: <1879851553195601@myt3-2475c4d2af83.qloud-c.yandex.net> <87a7hasuz4.fsf@mail.linkov.net> <87imtvd57d.fsf@mail.linkov.net> <877ea96i6t.fsf@mail.linkov.net> <0501caa5-0196-45fd-8bc6-8dbb176622ce@default> <87ef4foh6v.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="87020"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Dmitry Gutov , 34939@debbugs.gnu.org, pinkanon pinkanon To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 30 23:01:19 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hWSAo-000MVA-9G for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 May 2019 23:01:18 +0200 Original-Received: from localhost ([127.0.0.1]:59100 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWSAn-0003wg-8H for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 May 2019 17:01:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWSAZ-0003tl-Jy for bug-gnu-emacs@gnu.org; Thu, 30 May 2019 17:01:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hWSAY-0005AT-E5 for bug-gnu-emacs@gnu.org; Thu, 30 May 2019 17:01:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48754) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hWSAY-0005AA-7l for bug-gnu-emacs@gnu.org; Thu, 30 May 2019 17:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hWSAY-0003Po-4B for bug-gnu-emacs@gnu.org; Thu, 30 May 2019 17:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 May 2019 21:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34939 X-GNU-PR-Package: emacs Original-Received: via spool by 34939-submit@debbugs.gnu.org id=B34939.155925004013083 (code B ref 34939); Thu, 30 May 2019 21:01:02 +0000 Original-Received: (at 34939) by debbugs.gnu.org; 30 May 2019 21:00:40 +0000 Original-Received: from localhost ([127.0.0.1]:34065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWSAC-0003Ox-7N for submit@debbugs.gnu.org; Thu, 30 May 2019 17:00:40 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:53624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWSA9-0003Oh-NN for 34939@debbugs.gnu.org; Thu, 30 May 2019 17:00:38 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x4UKwhtN118590; Thu, 30 May 2019 21:00:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=2ZygadGx85Zx+HIQJpx3xLx/i7H8pJIY/zzpxwQzgaA=; b=Tdpf0+nkRM3kNVgEIwpjMQmbVlmFW+lFGmDBgTR2ip9ncTtuU7w4BUwyjmKQS/7R2eX5 S33GP25+IQagRXmduNoyLXdI9p3PZTi4WWNt0dhwWRdKc9EQJbluL0abLnqBo+OG7HW5 Juk21Zf29BMy/5k9dK5N1ew4eieua1jyE7SRKcevGAPo8EAJHDdv/TrFIRFSQfha1e6b D+pwFbeChaf6Btk89JTjbM0T7Jl/VyS3N/GeI1yjf7EA6Ay34J6sBh9pqZ0stoQiz346 7tRybGsn/iRWqcJZ4a8nuxW2LZbij942lUpZEhcVRbv8Y5oCi+LrRR9mlqJSXADdF4K9 Lg== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 2spxbqjjk6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 30 May 2019 21:00:31 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x4UKxx1p142965; Thu, 30 May 2019 21:00:30 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3030.oracle.com with ESMTP id 2srbdy7x27-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 30 May 2019 21:00:30 +0000 Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x4UL0RbB025851; Thu, 30 May 2019 21:00:28 GMT In-Reply-To: <87ef4foh6v.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4849.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9273 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=18 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=969 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905300149 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9273 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=18 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905300149 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: 209.51.188.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:159946 Archived-At: > > I haven't been following this thread. But it looks > > like this will use `minibuffer-message' for errors > > raised during minibuffer input, and block `message', > > except for logging. Is that right? >=20 > No, it won't block messages. It will block `message', not messages. It will hijack `message' to effect instead `minibuffer-message'. That's not right or fair. Code that calls `message' should get `message' behavior. > It will display messages together with the minibuffer contents > instead of replacing it. Which means that code that _intends_ `message' behavior, which does (temporarily) replace your input in the minibuffer, no longer does that. No way around it - `message' just gets hijacked. It is so _easy_ for any code to explicitly call `minibuffer-message' when it wants that effect. But now you want to make it impossible for code that calls `message' to get `message' behavior. Not needed and not the right thing. You're impoverishing Emacs behavior by replacing two possible behaviors with one. > Currently it requires the user to wait 2 seconds > before the user can see the minibuffer contents again. No, it does not. User input cancels the `message' text. And this is during an overall input reading, remember? And code that calls `message' can invoke `(message nil)' to also cancel the `message' text at _any_ time it deems appropriate. There is no mandatory 2-sec wait, such as you suggest. > Most often, this happens after typing M-n to see if any default values > are available, and it replaces the minibuffer contents with the message > =E2=80=9CEnd of history; no default available=E2=80=9D. If you think there is a _particular_ context or use of `message' that is problematic then fix that. What you're proposing/doing instead is smashing with a sledgehammer. > I have to wait several times > per day for this message to go away. Totally it takes ~1 minute per day, > ~300 minutes (5 hours) per year, and ~50 hours per decade - this is > a whole workweek of just looking at the message and waiting for Godot. Ridiculous exaggeration. I use `M-n' all the time and have never had to wait like that. This is a bad idea. If you want to let users opt in to such a reduction in behaviors then fine, please do create a user option that lets them opt in for that. No one will have a problem with that.