GNU bug report logs - #40774
Error messages shouldn't be hidden when the user is idle

Previous Next

Package: emacs;

Reported by: ndame <ndame <at> protonmail.com>

Date: Wed, 22 Apr 2020 16:23:01 UTC

Severity: wishlist

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #118 received at 40774 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 40774 <at> debbugs.gnu.org, larsi <at> gnus.org, ndame <at> protonmail.com
Subject: Re: bug#40774: Error messages shouldn't be hidden when the user is
 idle
Date: Mon, 13 Dec 2021 18:48:24 +0200
> From: Juri Linkov <juri <at> linkov.net>
> Cc: larsi <at> gnus.org,  40774 <at> debbugs.gnu.org,  ndame <at> protonmail.com
> Date: Sun, 12 Dec 2021 22:18:29 +0200
> 
> >> > 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.
> >
> > That wasn't what I asked.  I asked whether the change in the order
> > could matter.  Specifically, we now set echo_area_buffer[0] to nil
> > after we run clear-message-function, not before.  Can that affect
> > some customization of clear-message-function?
> 
> Actually, it should not affect customizations because such customizations
> should not touch the echo-area.  It's the task of clear_message
> to handle the echo-area.

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.

> >> > 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.
> >
> > ??? This function is about _clearing_ the echo-area, whereas I was
> > talking about the _display_ in the echo-area.  I'm saying that I'm not
> > sure echo-area display is suited for the jobs that this bug wants it
> > to do.  As an example, I asked what would happen when the echo-area
> > can no longer be resized to accommodate all the messages that were not
> > cleared.
> 
> clear-message-function can handle not only echo-area but also e.g.
> the minibuffer messages.  In case of the returned value, by using
> 'dont-clear-message' it can sometimes tell the function clear_message
> to not clear the echo-area, so there are no resizing problems.
> It doesn't add more lines to the existing echo-area.

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?




This bug report was last modified 3 years and 90 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.