GNU bug report logs -
#40774
Error messages shouldn't be hidden when the user is idle
Previous Next
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 #73 received at 40774 <at> debbugs.gnu.org (full text, mbox):
Juri Linkov <juri <at> linkov.net> writes:
> I see now what you mean. This can be easily implemented with the
> following patch. So you can set `clear-message-function' to a function
> that returns a non-nil, and the echo area won't be cleared.
>
> Such predicate function could contain a complex logic, but for testing
> you could use just:
>
> (setq clear-message-function (lambda () t))
[...]
> - safe_call (1, Vclear_message_function);
> + preserve = safe_call (1, Vclear_message_function);
> unbind_to (count, Qnil);
> }
> +
> + if (NILP (preserve))
> + {
> + echo_area_buffer[0] = Qnil;
> + message_cleared_p = true;
> + }
It an interesting idea, but I don't think this would be a
backwards-compatible implementation. Today, the return value of
clear-message-function isn't used, so we have to assume that users of
that variable returns... whatever. Giving it semantics now would lead
to the message area being preserved unexpectedly.
Or not, if somebody has used that function to semi-clear the echo area,
and then return nil?
So this would have to be implemented in a different way, unfortunately,
I think.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
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.