help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How make this modeline item be recalculated more often?


From: Colin Marquardt
Subject: Re: How make this modeline item be recalculated more often?
Date: Fri, 11 Oct 2002 14:24:24 +0200
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (sparc-sun-solaris2.8)

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 also asked this a while ago and got told that Emacs 21 now has display
optimizations that prevent this from working like we want. RMS looked
into it and said that changing it would require extensive modifications.

Cheers,
  Colin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]