From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.emacs.help Subject: How to update modelines of all displayed buffers Date: Thu, 15 Apr 2010 21:21:27 +0200 Organization: Decebal Computing Message-ID: <87y6gor07c.fsf@linux-lqcw.site> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273006672 9599 80.91.229.12 (4 May 2010 20:57:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 20:57:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 04 22:57:51 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O9PBe-0007ns-Uu for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 22:57:51 +0200 Original-Received: from localhost ([127.0.0.1]:43760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9PBe-0002m8-In for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 16:57:50 -0400 Original-Path: usenet.stanford.edu!elk.ncren.net!nntp.club.cc.cmu.edu!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:tPzM78cJRZGkHx3oZ5JDMS/xjjQ= Original-Lines: 21 Original-NNTP-Posting-Host: 84.53.123.169 Original-X-Trace: 1271359253 news.xs4all.nl 22903 decebal/[::ffff:84.53.123.169]:19873 Original-X-Complaints-To: abuse@xs4all.nl Original-Xref: usenet.stanford.edu gnu.emacs.help:177701 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:73160 Archived-At: 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