help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Mode to display information in the topmost line of a window


From: Drew Adams
Subject: RE: Mode to display information in the topmost line of a window
Date: Fri, 31 Jul 2009 09:19:51 -0700

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)))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]