From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Piet van Oostrum Newsgroups: gmane.emacs.help Subject: Re: blinking the modeline Date: 23 Apr 2003 19:19:07 +0200 Organization: Dept of Computer Science, Utrecht University, The Netherlands Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051119456 15763 80.91.224.249 (23 Apr 2003 17:37:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Apr 2003 17:37:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 23 19:37:34 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 198OBP-00045K-00 for ; Wed, 23 Apr 2003 19:37:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198O9Z-0005PN-03 for gnu-help-gnu-emacs@m.gmane.org; Wed, 23 Apr 2003 13:35:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!195.129.110.18.MISMATCH!bnewspeer00.bru.ops.eu.uu.net!emea.uu.net!surfnet.nl!news.wind.surfnet.nl!news.nl.linux.org!humbolt.nl.linux.org!phil.uu.nl!cs.uu.nl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: modena.cs.uu.nl Original-X-Trace: june.cs.uu.nl 1051118806 28231 131.211.80.35 (23 Apr 2003 17:26:46 GMT) Original-X-Complaints-To: news@cs.uu.nl Original-NNTP-Posting-Date: Wed, 23 Apr 2003 17:26:46 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:112230 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8730 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8730 >>>>> roblist@bigdis.com (Rob Meyer) (RM) wrote: RM> (defun blink-mode-line () RM> "Blink the left character of the mode line" RM> (interactive) RM> (message "1: %s" mode-line-inverse-video) RM> (sleep-for 1) RM> (setq mode-line-inverse-video (not mode-line-inverse-video)) RM> (message "2: %s" mode-line-inverse-video) RM> (force-mode-line-update) RM> (sleep-for 1) RM> (setq mode-line-inverse-video (not mode-line-inverse-video)) RM> (message "3: %s" mode-line-inverse-video) RM> ) RM> Does nothing but print the messages, which strangely enough are as I RM> would expect (t, nil, then t). But no mode-line change at all. If I RM> comment out the RM> second setq, then it does change the mode-line once, leaving it the RM> opposite of it's original state after running. But nothing I do seems RM> to be able to convince Emacs to flash the mode-line. Use sit-for rather than sleep-for (sleep-for doesn't redisplay). You could also display-time which updates the time in the modeline every minute. However, when there is a lot of crap in the modeline the time will be pushed out of it. -- Piet van Oostrum URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.van.Oostrum@hccnet.nl