unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim Cross <tcross@nospam.une.edu.au>
Subject: Re: How make this modeline item be recalculated more often?
Date: 10 Oct 2002 12:33:52 +1000	[thread overview]
Message-ID: <87ofa33tv3.fsf@blind-bat.une.edu.au> (raw)
In-Reply-To: mailman.1034163501.17035.help-gnu-emacs@gnu.org

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

       reply	other threads:[~2002-10-10  2:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1034163501.17035.help-gnu-emacs@gnu.org>
2002-10-10  2:33 ` Tim Cross [this message]
2002-10-11 12:24 ` How make this modeline item be recalculated more often? Colin Marquardt
2002-10-11 18:11   ` seberino
     [not found]   ` <mailman.1034359998.21370.help-gnu-emacs@gnu.org>
2002-10-14  8:40     ` Colin Marquardt
2002-10-09 11:37 seberino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ofa33tv3.fsf@blind-bat.une.edu.au \
    --to=tcross@nospam.une.edu.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).