From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#40774: Error messages shouldn't be hidden when the user is idle Date: Tue, 14 Dec 2021 10:35:13 +0200 Organization: LINKOV.NET Message-ID: <86ee6f4mqe.fsf@mail.linkov.net> References: <-ZmNQQ07JD7L0I5EpXolv4t1UhWBGc4SN0dkJml3cLbBjO6ucAMUzAqsI9Ca69xO_hzlMLfaLs6bY9vq8GAR24RUGu1LZqVoVkXhiJcFgtg=@protonmail.com> <835zdre31u.fsf@gnu.org> <87v9lpluez.fsf@mail.linkov.net> <874koxwi1t.fsf@gnus.org> <86pmqa51cz.fsf@mail.linkov.net> <87bl1uojxd.fsf@gnus.org> <86czmakaem.fsf@mail.linkov.net> <87tufmnuz6.fsf@gnus.org> <86bl1uyt8f.fsf@mail.linkov.net> <87r1aocf5p.fsf@gnus.org> <83czm7xozh.fsf@gnu.org> <86wnkerjgt.fsf@mail.linkov.net> <8335n2x3w5.fsf@gnu.org> <865yrtiqb6.fsf@mail.linkov.net> <83wnk9mwmx.fsf@gnu.org> <86v8ztfuga.fsf@mail.linkov.net> <831r2gmox3.fsf@gnu.org> <86sfuwnxtv.fsf@mail.linkov.net> <83o85kl2aq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31316"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 40774@debbugs.gnu.org, larsi@gnus.org, ndame@protonmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 14 10:00:28 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mx3ff-0007uH-Rq for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Dec 2021 10:00:27 +0100 Original-Received: from localhost ([::1]:53014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mx3fe-0007AW-0R for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Dec 2021 04:00:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52170) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mx3fG-00078s-Li for bug-gnu-emacs@gnu.org; Tue, 14 Dec 2021 04:00:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46016) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mx3fG-0008PR-Ch for bug-gnu-emacs@gnu.org; Tue, 14 Dec 2021 04:00:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mx3fG-00025U-9Q for bug-gnu-emacs@gnu.org; Tue, 14 Dec 2021 04:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Dec 2021 09:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40774 X-GNU-PR-Package: emacs Original-Received: via spool by 40774-submit@debbugs.gnu.org id=B40774.16394723847978 (code B ref 40774); Tue, 14 Dec 2021 09:00:02 +0000 Original-Received: (at 40774) by debbugs.gnu.org; 14 Dec 2021 08:59:44 +0000 Original-Received: from localhost ([127.0.0.1]:57562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mx3ey-00024c-HC for submit@debbugs.gnu.org; Tue, 14 Dec 2021 03:59:44 -0500 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:40607) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mx3ev-000249-8R for 40774@debbugs.gnu.org; Tue, 14 Dec 2021 03:59:41 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 1F85BC000E; Tue, 14 Dec 2021 08:59:32 +0000 (UTC) In-Reply-To: <83o85kl2aq.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 13 Dec 2021 21:42:21 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:222360 Archived-At: >> > Isn't there some Lisp-visible effect of that, like that the echo-area >> > will appear empty after the assignment? If so, then the >> > clear-message-function was previously running with the echo-area >> > buffer nil, but now it won't. >> >> clear-message-function is not intended to do anything with the echo-area. >> Its purpose is to notify a subscriber that the message is going to be cleared, >> so the subscriber can e.g. clear the message from the minibuffer, etc. >> When the subscriber needs to affect the echo-area, it's the purpose >> of the proposed return value not to clear the echo-area when the subscriber >> asks so via the return value. > > So there will be some effect of this reordering, if some > clear-message-function does something that you say it shouldn't. Of course, when authors decide to shoot themselves in the foot, we can't prevent this. >> > I gave an example of how using this for that purpose could be a >> > problem, and you responded only to that example. But the problem that >> > bothers me is much more general, and you are silent about that larger >> > problem. >> > >> > I'm asking once again: aren't we trying to use echo-area messages or >> > minibuffer messages displayed in the mini-window for a job that they >> > weren't intended to do: showing large amounts of messages at the same >> > time? >> >> Sorry, I still don't understand what do you mean. What large amounts >> of messages? At what the same time? This is completely unclear. >> Maybe if you give an example, this could help to understand. > > This whole discussion started from a request to be able to accumulate > messages in the echo-area so that the user who is away could see them > all when he/she comes back from whatever took him/her away. There > could be quite a lot of messages accumulated during that period, and > the request was to leave them all on display. For which you proposed > to use clear-message-function in a way that doesn't actually clear > them. > > Is the above an accurate description and summary of what is being > proposed here? If so, is it now clear what kind of job I think > display of echo-area messages was never designed to support? Thanks for explanation, now it's clear where is the misunderstanding. Actually, the patch for clear-message-function here is unrelated to the feature that uses set-message-function to accumulate messages and doesn't use clear-message-function. The feature here is intended for users who want to always leave the last displayed message in the echo-area, and never clear it. It will be possible even to do this conditionally. For example, when the user wants to leave the message "Compilation finished" displayed in the echo area even during navigation in the buffer or when the user types text. Normally such message will be cleared on any key press, and thus the user will miss it. But with such configuration the user won't miss the message even while using self-inserting or navigation keys when the message is displayed: (setq clear-message-function (lambda () (when (string-match-p "^Compilation" (current-message)) 'dont-clear-message)))