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: Sun, 12 Dec 2021 21:19:41 +0200 Organization: LINKOV.NET Message-ID: <865yrtiqb6.fsf@mail.linkov.net> References: <83blnje5ro.fsf@gnu.org> <838sine4si.fsf@gnu.org> <837dy7e3wr.fsf@gnu.org> <-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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11147"; 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 Sun Dec 12 20:25:21 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 1mwUTH-0002gl-82 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Dec 2021 20:25:19 +0100 Original-Received: from localhost ([::1]:52984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwUTF-0002zT-7o for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Dec 2021 14:25:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwUP8-0007Gp-R1 for bug-gnu-emacs@gnu.org; Sun, 12 Dec 2021 14:21:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41632) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mwUP8-0003ad-FV for bug-gnu-emacs@gnu.org; Sun, 12 Dec 2021 14:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mwUP8-0000wg-96 for bug-gnu-emacs@gnu.org; Sun, 12 Dec 2021 14:21: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: Sun, 12 Dec 2021 19:21: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.16393368453594 (code B ref 40774); Sun, 12 Dec 2021 19:21:02 +0000 Original-Received: (at 40774) by debbugs.gnu.org; 12 Dec 2021 19:20:45 +0000 Original-Received: from localhost ([127.0.0.1]:53178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwUOr-0000vu-L2 for submit@debbugs.gnu.org; Sun, 12 Dec 2021 14:20:45 -0500 Original-Received: from relay12.mail.gandi.net ([217.70.178.232]:42921) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwUOp-0000vg-PO for 40774@debbugs.gnu.org; Sun, 12 Dec 2021 14:20:44 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 6E769200004; Sun, 12 Dec 2021 19:20:36 +0000 (UTC) In-Reply-To: <8335n2x3w5.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 08 Dec 2021 22:01:14 +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:222258 Archived-At: >> +** The return value of 'clear-message-function' is not ignored anymore. >> +If the function returns t, then the message is not cleared, >> +with the assumption that the function cleared it itself. > > I could perhaps agree to this if the special new behavior was the > result of a very special return value, and only that value. Having > the new behavior kick in for t is out of the question for the release > branch, as it is highly likely to trip unsuspecting Lisp programs. What a special value would you prefer? Maybe, a symbol 'no'? > Btw, what does the change of the order between the call of > clear-message-function and setting echo_area_buffer[0] to nil mean, > compatibility-wise? won't it also produce different results, even if > the return value is nil? When the return value is nil, it will still clear the echo area. > More generally, I fear that we are trying very hard to tweak a > particular infrastructure for a job for which it was hardly meant. This is the most simple and thus reliable solution. > IOW, shouldn't we provide some completely different optional feature > for this use case? Like a special buffer that pops up or a special > frame? Echo-area is not suited for showing large chunks of text, and > my gut feeling is that we will bump into problems on this path. E.g., > what happens when there are enough accumulated messages that they can > no longer be shown with the maximum allowed height of the mini-window? This is exactly what functions bound to clear-message-function intended to do.