From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#40774: Error messages shouldn't be hidden when the user is idle Date: Wed, 22 Apr 2020 19:44:47 +0300 Message-ID: <83mu73eagw.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="77096"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40774@debbugs.gnu.org To: ndame , ndame Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 22 18:46:14 2020 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 1jRIVp-000Jve-Ao for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Apr 2020 18:46:13 +0200 Original-Received: from localhost ([::1]:54314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRIVo-0006V8-E4 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Apr 2020 12:46:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47216) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRIVf-0006T3-VN for bug-gnu-emacs@gnu.org; Wed, 22 Apr 2020 12:46:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRIVe-0007ph-IL for bug-gnu-emacs@gnu.org; Wed, 22 Apr 2020 12:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41520) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRIVe-0007n2-4p for bug-gnu-emacs@gnu.org; Wed, 22 Apr 2020 12:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jRIVe-00086H-1D for bug-gnu-emacs@gnu.org; Wed, 22 Apr 2020 12:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Apr 2020 16:46:01 +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.158757391431075 (code B ref 40774); Wed, 22 Apr 2020 16:46:01 +0000 Original-Received: (at 40774) by debbugs.gnu.org; 22 Apr 2020 16:45:14 +0000 Original-Received: from localhost ([127.0.0.1]:53066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRIUs-000859-BW for submit@debbugs.gnu.org; Wed, 22 Apr 2020 12:45:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRIUq-00084w-5w for 40774@debbugs.gnu.org; Wed, 22 Apr 2020 12:45:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33142) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRIUk-0002iV-9t; Wed, 22 Apr 2020 12:45:06 -0400 Original-Received: from [176.228.60.248] (port=4046 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jRIUj-0008O5-Kg; Wed, 22 Apr 2020 12:45:06 -0400 In-Reply-To: (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178810 Archived-At: > Date: Wed, 22 Apr 2020 16:21:38 +0000 > From: ndame via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > If a message is printed in the echo area then it can be hidden in two > ways: either the user uses some command and the echo area is cleared > automatically or an other message comes which replaces the previous > one. > > I use several timers which perform recurring or background tasks, > e.g. fetching things from the network. When there is an error in such > a timer then often I only know about it by noticing that the task does > not produce the usual results, e.g. fails to update something, because > other progress messages hide the printed errors. That's why we have the *Messages* buffer, where all the messages are logged, even those that aren't shown in the echo area. A simple solution to your use case is to have the *Messages* buffer shown in a window at all times. > So when the user is not idle then things should work as today. But if > the user is idle (e.g. uses an other app or is away from the computer) > then error messages should not be hidden by other messages, rather > they should all be shown in a multiline echo area, so when the user > gets back to emacs he can see all the errors which happened while he > was away. How do you define "user is idle"? is that only keyboard input, or does that include other kinds of input as well? On a modern graphical system, it isn't trivial to decide whether the user is idle, because there are input events that come from the system, not just from the user making keyboard or mouse gestures.