emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: line-spacing and (recenter -1)


From: Kim F. Storm
Subject: Re: line-spacing and (recenter -1)
Date: Fri, 12 Nov 2004 15:30:59 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

SAITO Takuya <address@hidden> writes:

> (recenter -1) does not show point at the bottom of the window
> if line-spacing is set to positive integer.
>
> Start emacs -Q, and evaluate below:
>
> (progn
>   (setq line-spacing 1)
>   (dotimes (i (window-height))
>     (insert "\n" (int-to-string i)))
>   (recenter -1))
>
> Then, point is displayed at the center of the window.
> But point should be displayed at the bottom of the window like Emacs-21.3.

I think I've finally fixed this problem.

In 21.3, redisplay would adjust window vscroll to make the bottom line
visible, but in CVS emacs, we no longer do that.  Instead, the recenter
code now performs some extra calculations to make the current line end
up as the last (fully visible) window line.

As a result, there next line in the buffer may be partially visible
at the bottom of the window, but I cannot do anything about that.

-- 
Kim F. Storm  http://www.cua.dk





reply via email to

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