From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Slass Newsgroups: gmane.emacs.help Subject: Re: How force evaluation of this string's math *before* print?.... Date: Wed, 09 Oct 2002 22:54:21 GMT Organization: AT&T Broadband Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034204398 32740 127.0.0.1 (9 Oct 2002 22:59:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 9 Oct 2002 22:59:58 +0000 (UTC) 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 17zPo5-0008Vq-00 for ; Thu, 10 Oct 2002 00:59:57 +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 17zPkQ-0008Nv-00; Wed, 09 Oct 2002 18:56:10 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn12feed!wn11feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc03.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 12.228.27.239 Original-X-Complaints-To: abuse@attbi.com Original-X-Trace: sccrnsc03 1034204061 12.228.27.239 (Wed, 09 Oct 2002 22:54:21 GMT) Original-NNTP-Posting-Date: Wed, 09 Oct 2002 22:54:21 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:105890 Original-To: help-gnu-emacs@gnu.org 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:2437 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2437 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