From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel,gmane.emacs.help Subject: Re: Q on minibuffer-message Date: Fri, 20 Jan 2006 23:50:44 +0100 Message-ID: <43D16944.1020407@student.lu.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137801410 10383 80.91.229.2 (20 Jan 2006 23:56:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2006 23:56:50 +0000 (UTC) Cc: Help-Gnu-Emacs Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 21 00:56:48 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F067a-0002F8-6K for ged-emacs-devel@m.gmane.org; Sat, 21 Jan 2006 00:56:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F06A5-0003n6-Rh for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2006 18:59:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F058H-0004pU-LK for emacs-devel@gnu.org; Fri, 20 Jan 2006 17:53:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F058G-0004nw-N7 for emacs-devel@gnu.org; Fri, 20 Jan 2006 17:53:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F058G-0004nU-5D; Fri, 20 Jan 2006 17:53:24 -0500 Original-Received: from [81.228.8.164] (helo=pne-smtpout2-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1F05CX-0003Bd-J8; Fri, 20 Jan 2006 17:57:49 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn2.hy.skanova.net (7.2.069.1) id 43CFE419000569A8; Fri, 20 Jan 2006 23:50:45 +0100 User-Agent: Thunderbird 1.5 (Windows/20051201) Original-To: Drew Adams , Emacs Devel In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:49335 gmane.emacs.help:32764 Archived-At: As far as I can see it is a bug, at least in CVS Emacs. `minibuffer-message' uses temp_echo_area_glyphs in minibuf.c and that function calls Fsit_for (make_number (2), Qnil, Qnil); which just sits for 2 seconds. BTW `minibuffer-message' puts the string at the end of the current buffer which is not necessarily the minibuffer. Is not that a bug too? --lennart Drew Adams wrote: > I have a command `foo' that calls `minibuffer-message' at various points. > > I want to call this function from another command, `bar', but I don't want > the `minibuffer-message' display to wait for two seconds - I even don't care > if it is displayed at all in this case. > > I could change the definition of command `foo', to pass it a flag to not > call `minibuffer-message' (or to call it only when the command is called > interactively), but I'd rather not have to resort to that. > > `minibuffer-message' displays its message for two seconds, unless an input > event is received during this time. My question is: How can I inhibit the > 2-second wait? Is there, for example, some way I can simulate an input > event? Or is there a simpler, cleaner way? > > In command `bar', just after calling `foo', I tried (sit-for 0), to no > avail. I tried adding a fake event (e.g. a character) to > `unread-command-events', to no avail. I tried binding > `minibuffer-message-timeout' (to nil and to 0), to no avail (it seemed to > have no effect). > > Anyone have a suggestion? >