From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@gnu.org (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.help Subject: Re: Column-number-mode ordinality question Date: Sat, 17 Apr 2010 02:22:05 +0200 Organization: Telesweet ISP Message-ID: <87y6gnexn6.fsf@gnu.org> References: <6e35721a-1cf3-439b-aadc-9ed115e80181@x3g2000yqd.googlegroups.com> <87fx2wh1ck.fsf@fh-trier.de> <7a823b97-3960-44b9-8fad-00380960f3f9@b33g2000yqc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273008309 16021 80.91.229.12 (4 May 2010 21:25:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 21:25:09 +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 23:25:08 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 1O9Pc3-00052R-Dz for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 23:25:07 +0200 Original-Received: from localhost ([127.0.0.1]:52464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9Pc2-00049M-Pw for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 17:25:06 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!news.telesweet.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: c-f7cae455.04-211-6c6b701.cust.bredbandsbolaget.se Original-X-Trace: news.telesweet.net 1271463725 18991 85.228.202.247 (17 Apr 2010 00:22:05 GMT) Original-X-Complaints-To: newsmaster@telesweet.net Original-NNTP-Posting-Date: Sat, 17 Apr 2010 00:22:05 +0000 (UTC) X-Notice: Filtered by postfilter Cancel-Lock: sha1:YkfGf8f6lhcv26Yu2/ce5oih2wQ= sha1:7PND+IoubV4yYbtrvSG/uB6fQao= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:177735 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:73183 Archived-At: Smith_RS writes: > The problem is that the "eval" construct doesn't get eval'd every time > the cursor moves. The mode line is caused to be updated more often by the %c construct. If you remove it you have to trigger an update some other way. > Also, you can't mix %l and $d in a format that way. You can add another % to protect the %-sequence. (setq mode-line-format `((-1 (:propertize "%c" face (:height 0))) (10 (:propertize (:eval (format " (%%l,%d)" (1+ (current-column)))) local-map ,mode-line-column-line-number-mode-map mouse-face mode-line-highlight))))