[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?
- Re: Allowing point to be outside the window?, (continued)
- Re: Allowing point to be outside the window?, Po Lu, 2022/02/06
- Re: Allowing point to be outside the window?, Eli Zaretskii, 2022/02/06
- Re: Allowing point to be outside the window?, Po Lu, 2022/02/06
- Re: Allowing point to be outside the window?, Po Lu, 2022/02/07
- Re: Allowing point to be outside the window?, Eli Zaretskii, 2022/02/07
- Re: Allowing point to be outside the window?, Po Lu, 2022/02/07
- Re: Allowing point to be outside the window?, Eli Zaretskii, 2022/02/07
- Re: Allowing point to be outside the window?, Po Lu, 2022/02/07
- Re: Allowing point to be outside the window?, Eli Zaretskii, 2022/02/08
- Re: Allowing point to be outside the window?, Po Lu, 2022/02/08
- Re: Allowing point to be outside the window?,
Eli Zaretskii <=
- Re: Allowing point to be outside the window?, Po Lu, 2022/02/10