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: Yuri Khan
Subject: Re: Allowing point to be outside the window?
Date: Thu, 9 Dec 2021 02:29:26 +0700

On Wed, 8 Dec 2021 at 23:58, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

> So it should be easy to provide a "move point to view" with something
> like:
>
>     (goto-char (window-start))

A better implementation would bring the point to the line of
(window-start) when point is before (window-start), or to the line of
(window-end) when after (window-end), while striving to keep the
column unchanged or to move to goal-column, as if by (previous-line)
or (next-line).



reply via email to

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