[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-win
From: |
Eli Zaretskii |
Subject: |
bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts |
Date: |
Wed, 17 Apr 2024 15:58:08 +0300 |
> Date: Wed, 17 Apr 2024 10:02:12 +0200
> Cc: luangruo@yahoo.com, 70038@debbugs.gnu.org
> From: martin rudalics <rudalics@gmx.at>
>
> > I hope this is now more clear.
>
> Thanks. So when we enter the part headed by
>
> if ((w->optional_new_start || window_frozen_p (w))
>
> then the single aim is apparently to make sure that the cursor line
> remains fully visible.
Yes. If it isn't, we will either move point or, if even that is
impossible, ignore the request to preserve window-start.
> When we enter that part because window_frozen_p (w) is set, we ignore
> the scroll margins because we assume that preserving the window start
> position is more important in this situation.
>
> When we enter that part because w->optional_new_start was set, we assume
> that the caller ('recenter', 'delete-other-windows-internal') has done
> its part to obey the scroll margins but still might have failed to keep
> the cursor visible.
>
> Is that interpretation correct?
No, we actually check that point doesn't end up inside scroll margins
(search for "Some people insist"), and move point or reject the
window-start if it did.
> If so, it might make sense to put some
> explanation into a comment for that part because, at least for me, it's
> a priori not clear that the same treatment is wanted for keeping the
> previous start position of a window and for one that has been explicitly
> changed. I've spent almost an hour to arrive at the conclusion above.
> Things like this comment in 'delete-other-windows-internal'
>
> /* We need to do this, so that the window-scroll-functions
> get called. */
> w->optional_new_start = true;
>
> were distracting even further.
Where would you like to put the comment, and what should that comment
say?
- bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts, (continued)
- bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts, Eli Zaretskii, 2024/04/07
- bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts, martin rudalics, 2024/04/07
- bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts, Eli Zaretskii, 2024/04/07
- bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts, martin rudalics, 2024/04/08
- bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts, Eli Zaretskii, 2024/04/13
- bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts, martin rudalics, 2024/04/14
- bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts, Eli Zaretskii, 2024/04/14
- bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts, martin rudalics, 2024/04/15
- bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts, Eli Zaretskii, 2024/04/15
- bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts, martin rudalics, 2024/04/17
- bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts,
Eli Zaretskii <=
- bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts, martin rudalics, 2024/04/28
- bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts, Po Lu, 2024/04/28
- bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts, martin rudalics, 2024/04/29
- bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts, Eli Zaretskii, 2024/04/29
bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts, Ramon Diaz-Uriarte, 2024/04/11