emacs-devel
[Top][All Lists]
Advanced

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

Re: Allowing point to be outside the window?


From: Po Lu
Subject: Re: Allowing point to be outside the window?
Date: Thu, 09 Dec 2021 08:16:05 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> IIUC the way this new feature is expected to work is that it prevents
> "scroll to bring point into view" under some conditions.
> I'm not sure exactly what are those conditions, but I'd expect it's
> something like:
> - point was not moved since last time we redisplayed this buffer.
> - window-start was set explicitly.

Yes.

> - the buffer was not modified since last time we redisplayed it.

This might not be necessary.

> So it should be easy to provide a "move point to view" with something
> like:

>     (goto-char (window-start))

It would probably have to take into account vscroll, as the cursor
appearing in a partially visible row would be confusing.


reply via email to

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