[Top][All Lists]

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

Re: Global bar to display global information

From: Thien-Thi Nguyen
Subject: Re: Global bar to display global information
Date: Tue, 16 Aug 2011 22:00:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

() "Drew Adams" <address@hidden>
() Tue, 16 Aug 2011 10:42:41 -0700

   Essentially, what's requested is some stable place to post (and leave 
posted) a
   bit of general info - info that is not specific to any buffer or window or

Perhaps ‘message’ could be extended to recognize a distinguished text property
and arrange for that text to be placed in a *State of the Emacs* buffer
(perhaps indexed/formatted/prettified in some way by that property's value),
in addition to being added to *Messages*.  Something like:

  (defun message/stateful (category fmt &rest args)
    (message "%s" (propertize (apply 'format fmt args)
  (defun note-stateful (category text)
    (with-current-buffer "*State of the Emacs*"
      (goto-char (GOOD-PLACE-FOR category text))
      (apply 'delete-region (REGION-OF-OLD category))
      (insert (APPROPRIATELY-DECORATED category text))))

where ‘note-stateful’ is called by ‘Fmessage’.

reply via email to

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