* How make this modeline item be recalculated more often?
@ 2002-10-09 11:37 seberino
0 siblings, 0 replies; 5+ messages in thread
From: seberino @ 2002-10-09 11:37 UTC (permalink / raw)
(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???
CS
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How make this modeline item be recalculated more often?
[not found] <mailman.1034163501.17035.help-gnu-emacs@gnu.org>
@ 2002-10-10 2:33 ` Tim Cross
2002-10-11 12:24 ` Colin Marquardt
1 sibling, 0 replies; 5+ messages in thread
From: Tim Cross @ 2002-10-10 2:33 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How make this modeline item be recalculated more often?
[not found] <mailman.1034163501.17035.help-gnu-emacs@gnu.org>
2002-10-10 2:33 ` How make this modeline item be recalculated more often? Tim Cross
@ 2002-10-11 12:24 ` Colin Marquardt
2002-10-11 18:11 ` seberino
[not found] ` <mailman.1034359998.21370.help-gnu-emacs@gnu.org>
1 sibling, 2 replies; 5+ messages in thread
From: Colin Marquardt @ 2002-10-11 12:24 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How make this modeline item be recalculated more often?
2002-10-11 12:24 ` Colin Marquardt
@ 2002-10-11 18:11 ` seberino
[not found] ` <mailman.1034359998.21370.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 5+ messages in thread
From: seberino @ 2002-10-11 18:11 UTC (permalink / raw)
Cc: help-gnu-emacs
Colin
I'm curious what exactly RMS looked into. What exactly
was your question/concern???
Chris
On Fri, Oct 11, 2002 at 02:24:24PM +0200, Colin Marquardt wrote:
> 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
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
--
_______________________________________
Dr. Christian Seberino
SPAWAR Systems Center San Diego
Code 2363
49590 Lassing Road, Room A339
San Diego, CA 92152-6147
U.S.A.
Phone: (619) 553-7940
Fax: (619) 553-1269
Email: seberino@spawar.navy.mil
_______________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How make this modeline item be recalculated more often?
[not found] ` <mailman.1034359998.21370.help-gnu-emacs@gnu.org>
@ 2002-10-14 8:40 ` Colin Marquardt
0 siblings, 0 replies; 5+ messages in thread
From: Colin Marquardt @ 2002-10-14 8:40 UTC (permalink / raw)
seberino@spawar.navy.mil writes:
> I'm curious what exactly RMS looked into. What exactly
> was your question/concern???
See
<http://groups.google.com/groups?q=%22frame+title+is+not+updated+often+enough
%22&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=200112060244.fB62ilP00564
%40aztec.santafe.edu&rnum=1>.
Google doesn't seem to have the rest of the thread. After looking at
the code, RMS said that special-casing the column number update for
the frame title (i.e., to make it work like in the mode line) would
be a lot of work.
HTH,
Colin
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-10-14 8:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1034163501.17035.help-gnu-emacs@gnu.org>
2002-10-10 2:33 ` How make this modeline item be recalculated more often? Tim Cross
2002-10-11 12:24 ` 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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.