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: RE: Mode to display information in the topmost line of a window Date: Fri, 31 Jul 2009 09:19:51 -0700 Message-ID: References: <87r5vyw653.fsf@thinkpad.tsdh.de> <87tz0tl40h.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249057307 17884 80.91.229.12 (31 Jul 2009 16:21:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jul 2009 16:21:47 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "'Geralt'" , "'Tassilo Horn'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 31 18:21:40 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MWurT-000892-TF for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Jul 2009 18:21:40 +0200 Original-Received: from localhost ([127.0.0.1]:53314 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWurT-0004uD-AT for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Jul 2009 12:21:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWupt-0003bM-Rt for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 12:20:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWupp-0003X4-5b for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 12:20:01 -0400 Original-Received: from [199.232.76.173] (port=48700 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWupo-0003Wy-VK for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 12:19:57 -0400 Original-Received: from rcsinet11.oracle.com ([148.87.113.123]:55449 helo=rgminet11.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWupo-0001uX-Dp for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 12:19:56 -0400 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n6VGLjUR010191 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 31 Jul 2009 16:21:46 GMT Original-Received: from abhmt005.oracle.com (abhmt005.oracle.com [141.146.116.14]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n6VGJqlF032745; Fri, 31 Jul 2009 16:19:52 GMT Original-Received: from dradamslap1 (/141.144.168.5) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 31 Jul 2009 09:19:50 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcoR+b9zYMS3md6RTm+1Zad0BH0VCQAAGk+A X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt005.oracle.com [141.146.116.14] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.4A7319A7.0249:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:66577 Archived-At: As an alternative, you might want to put the info in the mode line. This is what I use: (defun show-in-mode-line (text &optional buffer) "Display TEXT in BUFFER's mode line for 10 sec (or until user event). Note: This sits for 10 sec or until a user event, so call this last in a sequence of user-visible actions." (with-current-buffer (or buffer (current-buffer)) (make-local-variable 'mode-line-format) (let ((mode-line-format text)) (force-mode-line-update) (sit-for 10)) (force-mode-line-update)))