From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: Q on minibuffer-message Date: Fri, 20 Jan 2006 11:23:28 -0800 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137796753 27532 80.91.229.2 (20 Jan 2006 22:39:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2006 22:39:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 20 23:39:12 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F04uM-0002kF-G4 for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Jan 2006 23:39:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F04wr-00054O-NY for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Jan 2006 17:41:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F01v5-0003wH-MK for help-gnu-emacs@gnu.org; Fri, 20 Jan 2006 14:27:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F01uT-0003WE-L5 for help-gnu-emacs@gnu.org; Fri, 20 Jan 2006 14:27:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F01ti-000306-U8 for help-gnu-emacs@gnu.org; Fri, 20 Jan 2006 14:26:11 -0500 Original-Received: from [148.87.122.30] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1F01xy-0006yF-Pu for help-gnu-emacs@gnu.org; Fri, 20 Jan 2006 14:30:35 -0500 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.186.50]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id k0KJNVIF010283 for ; Fri, 20 Jan 2006 12:23:32 -0700 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k0KJNV74007721 for ; Fri, 20 Jan 2006 12:23:31 -0700 Original-Received: from dradamslap (dhcp-amer-rmdc-csvpn-gw5-141-144-107-196.vpn.oracle.com [141.144.107.196]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k0KJNU3h007713 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Fri, 20 Jan 2006 12:23:31 -0700 Original-To: "Help-Gnu-Emacs" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32756 Archived-At: 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?