all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to update modelines of all displayed buffers
@ 2010-04-15 19:21 Cecil Westerhof
  2010-04-16  2:17 ` Barry Margolin
  2010-04-16 22:49 ` Andreas Politz
  0 siblings, 2 replies; 5+ messages in thread
From: Cecil Westerhof @ 2010-04-15 19:21 UTC (permalink / raw)
  To: help-gnu-emacs

I have defined the following function:
    (defun buffer-update-mode-line ()
      (setq buffer-mode-line (buffer-mode-line-extra))
      (force-mode-line-update t))

The function buffer-mode-line-extra gives the extra data I want to
display in the modeline.

It is called every minute with:
    (run-with-timer 60 60 'buffer-update-mode-line)

With this only the modeline of the current buffer is updated. In
principal (force-mode-line-update t) makes all modelines updated, but
that will only work if for every (visible) buffer buffer-mode-line is
updated with the function buffer-mode-line-extra. Is there a way to get
this done?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-04-16 22:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-15 19:21 How to update modelines of all displayed buffers Cecil Westerhof
2010-04-16  2:17 ` Barry Margolin
2010-04-16  7:19   ` Cecil Westerhof
2010-04-16 21:58     ` José A. Romero L.
2010-04-16 22:49 ` Andreas Politz

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.