[Top][All Lists]

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

Re: line-number-mode at EOB

From: Eli Zaretskii
Subject: Re: line-number-mode at EOB
Date: Tue, 18 Jul 2017 22:03:47 +0300

> From: Stephen Berman <address@hidden>
> Cc: address@hidden
> Date: Tue, 18 Jul 2017 18:33:08 +0200
> > Hmm... I don't understand why you needed to change the format spec to
> > %l, and also why the change in mode_line_update_needed.  Isn't it
> > enough to just produce "EOB" instead of a number?
> If just mode-line-position in bindings.el is changed, that fails to
> update the mode line frequently enough: if you go to point-max in
> *scratch*, so the mode line displays "EOB", then continually typing C-b
> or C-p doesn't change the "EOB".  Conversely, if just decode_mode_spec
> is changed to output "EOB" at point-max, the current code in
> mode-line-position will make the mode line display "LEOB" when
> column-number-mode is disabled.  Finally, even with both of the other
> changes, without the change in mode_line_update_needed, if the character
> immediately before EOB is not a newline (and column-number-mode is not
> enabled), then if point is at EOB, continually typing C-b will keep
> displaying "EOB" until the line number changes, and if point in on the
> last line but before EOB, typing C-f to move to EOB will not change the
> display to "EOB".

Right, thanks for the explanations.

In any case, I don't think that what-line should be changed, because
it's used elsewhere, and such a change is backward-incompatible.

reply via email to

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