From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: seberino@spawar.navy.mil Newsgroups: gmane.emacs.help Subject: Re: How force evaluation of this string's math *before* print?.... Date: Wed, 9 Oct 2002 18:08:35 -0700 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <20021009180835.A2135@spawar.navy.mil> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034212192 29763 127.0.0.1 (10 Oct 2002 01:09:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 10 Oct 2002 01:09:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org 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 17zRpm-0007ju-00 for ; Thu, 10 Oct 2002 03:09:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17zRp8-0006xF-00; Wed, 09 Oct 2002 21:09:10 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17zRoe-0006v7-00 for help-gnu-emacs@gnu.org; Wed, 09 Oct 2002 21:08:40 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17zRoc-0006tw-00 for help-gnu-emacs@gnu.org; Wed, 09 Oct 2002 21:08:40 -0400 Original-Received: from seberino.spawar.navy.mil ([128.49.22.159]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17zRoc-0006ti-00 for help-gnu-emacs@gnu.org; Wed, 09 Oct 2002 21:08:38 -0400 Original-Received: from seberino by seberino.spawar.navy.mil with local (Exim 4.10) id 17zRoZ-0000aY-00; Wed, 09 Oct 2002 18:08:35 -0700 Original-To: Michael Slass Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from miknrene@drizzle.com on Wed, Oct 09, 2002 at 10:54:21PM +0000 Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2440 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2440 Indeed it works. Thanks. I noticed that column number is updated for all cursor movements. Is there any way to move the (force-mode-line-update) up the "things to do list" for every keystroke??? The reason I'm asking is that the *line number* is updated immediately after it changes, but, column number is noticeably slower to update...... there is a noticeable fraction of a second between cursor movement and column number updating. Thanks, Chris On Wed, Oct 09, 2002 at 10:54:21PM +0000, Michael Slass wrote: > Barry Margolin writes: > > >In article , > > wrote: > >>Jesper > >> > >>Thank you so much!! I implemented your suggestion and it gave > >>me a column number on my mode line that indeed updates itself > >>as I move around my document!!! > >> > >>Can I ask you one last question? I noticed that often > >>the column number will *not* be updated with this > >>suggestion. For some reason, on some > >>lines, the column number is not updated when I move right and > >>left with the cursor until some event forces an update. > >>For example, when I change > >>line numbers that seems to force an update of the column number. > >>Often pressing right/left arrow *does* effect an update of > >>column number on modeline but not always. > > > >The :eval stuff will only be executed when Emacs thinks that something has > >changed that requires recomputing the mode line. > > > This will probably work, although I shudder to think what it will do > to your emacs's performance. > > (add-hook 'post-command-hook > (lambda () (force-mode-line-update))) > > > > > -- > Mike Slass > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://mail.gnu.org/mailman/listinfo/help-gnu-emacs -- _______________________________________ Dr. Christian Seberino SPAWAR Systems Center San Diego Code 2363 49590 Lassing Road, Room A339 San Diego, CA 92152-6147 U.S.A. Phone: (619) 553-7940 Fax: (619) 553-1269 Email: seberino@spawar.navy.mil _______________________________________