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

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

Re: Fake cursors.


From: Kim F. Storm
Subject: Re: Fake cursors.
Date: 17 Nov 2003 22:37:46 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Luc Teirlinck <address@hidden> writes:

> However, the description in (elisp)Textual Scrolling is unambiguous:
> 
>      If COUNT is a negative number, then it counts upward from the
>      bottom of the window, so that -1 stands for the last usable line
>      in the window.
> 
> The last _usable_ line seems to mean the last _completely visible_
> line, the last line where point can go without rescrolling the window.

I don't understand -- unless the cursor is already on the last visible line,
(recenter -1) will have to scroll the window, right?!

> When I use (recenter -1) in Info, that is indeed where it puts point.

So you mean, if the last line currently is only paritally visible,
(recenter -1) will leave a partially visible line at the bottom of the
window?  Maybe that's what I've seen (a single invisible pixel line
would enough to provoke this behaviour).

> It is the next to last fully _or_ partially visible line.  If there
> are no partially visible lines (recenter -1) always puts point on the
> last line.  Do you see anything different from what I described above?

Probably not, but I think that (recenter -1) should put the cursor on
the last line, independently of the current contents of the window,
i.e. it should align the cursor line at the bottom of the window
(possibly making the first line only partially visible).

Doesn't that make more sense?

> 
> Maybe the doc string could be clarified.

I think so.

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





reply via email to

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