From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Missing minibuffer messages (was: obsoleting stuff) Date: Tue, 03 Jun 2003 09:42:02 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200306031342.h53Dg2ZT020586@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054649264 689 80.91.224.249 (3 Jun 2003 14:07:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2003 14:07:44 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jun 03 16:07:43 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19NCRJ-00006v-00 for ; Tue, 03 Jun 2003 16:07:01 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19NCiQ-0005mk-00 for ; Tue, 03 Jun 2003 16:24:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19NCP7-0007gr-QH for emacs-devel@quimby.gnus.org; Tue, 03 Jun 2003 10:04:45 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19NCCb-0003U6-77 for emacs-devel@gnu.org; Tue, 03 Jun 2003 09:51:49 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19NC8B-00029k-3M for emacs-devel@gnu.org; Tue, 03 Jun 2003 09:47:15 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19NC38-0008Vg-KH for emacs-devel@gnu.org; Tue, 03 Jun 2003 09:42:02 -0400 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h53Dg20i020588 for ; Tue, 3 Jun 2003 09:42:02 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h53Dg2ZT020586; Tue, 3 Jun 2003 09:42:02 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:14633 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14633 One of the problems with my Fload patch is that the message telling users that a package is obsolete might be missed because it might be immediately overwritten by something else. One option is to add a (sit-for 2) right after the call to Fmessage, but I was wondering whether there shouldn't be a better option: 1 - Mark some messages "important" which means "display them for at least X seconds". I.e. when displayed, those messages are tagged with a timeout that says when they can be taken off. 2 - when trying to show another message, if there's an important message on display, just stuff the new message in a "queue of pending messages" that will be processed when the timeout triggers. 3 - when the minibuffer is requested and the echo area is busy with an important message, I'm not sure what we should do: maybe just wait with a sit-for, or maybe put the important message back on the message queue to be shown again afterwards. Obviously, this is overkill if it's just for the `obsolete' message, but I feel like it could be useful in more cases. Stefan