[Top][All Lists]

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

Re: mode-line-element-to-string

From: Stefan Monnier
Subject: Re: mode-line-element-to-string
Date: Thu, 11 Apr 2002 14:14:35 -0400

> > Any objection to the patch below ?
> > I'd also welcome comments, especially suggestions for a better name.
> emacs -q --no-site-file
> M-x ielm
> C-c C-b *scratch*
> <Enter>                                 ; enough times for the ELISP>
>                                         ; prompt to be at the bottom
>                                         ; of the Window
> (mode-line-element-to-string "%c/%l")   ; repeat till it crashes
> Eventually it crashes in `display-count-lines'.

Damn!  The code relies on the current-buffer being the
buffer displayed in the selected-window.  Hmmm...


reply via email to

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