From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.help Subject: Re: How make this modeline item be recalculated more often? Date: 10 Oct 2002 12:33:52 +1000 Organization: University of New England, NSW, Australia Sender: help-gnu-emacs-admin@gnu.org Message-ID: <87ofa33tv3.fsf@blind-bat.une.edu.au> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034217766 13862 127.0.0.1 (10 Oct 2002 02:42:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 10 Oct 2002 02:42:46 +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 17zTHg-0003bS-00 for ; Thu, 10 Oct 2002 04:42:44 +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 17zTGB-0007R4-00; Wed, 09 Oct 2002 22:41:11 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!news.usyd.edu.au!news.une.edu.au!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: blind-bat.une.edu.au User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:105897 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:2444 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2444 seberino@spawar.navy.mil writes: > (setq default-mode-line-format (list "" > 'mode-line-buffer-identification > " " > (system-name) > " " > '(:eval (format "%s" (+ (string-to-int "%c") 1))) > "Line %l Col %c")) > > I've been playing with adding one to column number in modeline and > came up with the eval element above.... > > It evaluates to a 1 when column in zero but it is not updated > when I change the columns!?!?!? How make it be reevaluated > when %c changes??? > I vaguely remember seeing something about this in one of the documents which comes with emacs - check the FAQ, NEWS and PROBLEMS files - sorry I can't be more specific - it was a little while ago and the memory just aint what it use to be. Also, make sure you have (column-number-mode t) somewhere in your .emacs file. Tim