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: Eli Zaretskii
Subject: Re: Allowing point to be outside the window?
Date: Thu, 10 Feb 2022 15:04:07 +0200

> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Wed, 09 Feb 2022 09:57:45 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > I don't think you can do that indiscriminately, because some of the
> > places that set the window's force_start flag are unrelated to this
> > feature.  One example is set_window_buffer and its callers.  Another
> > example is the code in redisplay_window that ends with "goto
> > force_start".  And there are probably more.
> >
> > So if you want to do that, you'll need to carefully audit all those
> > places, and make sure you avoid moving point only when force_start was
> > set by scrolling commands or in some similar situations.  Otherwise,
> > users will complain that point goes out of view when they didn't
> > expect it to.  For example, "C-x 2" goes through that code, and I'm
> > quite sure we don't want point to be left outside of the window in
> > that case.
> 
> Would it make sense to introduce a new flag that split-window-below and
> other such commands set that makes force_start move point regardless of
> the value of `keep-point-visible'?

Commands cannot bind variables to force redisplay do something,
because redisplay runs when the command already exited.

So what you mean is probably a flag in the window object.  Is that the
intent?



reply via email to

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