emacs-devel
[Top][All Lists]
Advanced

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

RE: recenter-top-bottom


From: Drew Adams
Subject: RE: recenter-top-bottom
Date: Sun, 11 Nov 2007 14:38:56 -0800

> I like the new definition of `recenter-top-bottom'.  But there is one
> problem: it doesn't work when point is close to the end of the buffer.
>
> It doesn't put point to the upper half of the window but this
> is possible with other commands (because the end of the buffer
> is not attached to the end of the window in Emacs).

Or at or near the beginning of the buffer. Depending on what you mean by
"work".

I think it DTRT in these cases, but you're welcome to tweak it.

> Also I suggest replacing `(recenter)' with `(recenter '(4))' to not redraw
> the frame when moving point to the center, to not make it different from
> moving point to other parts of the window that doesn't redraw the frame.

Yes. Go for it.





reply via email to

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