GNU bug report logs -
#51590
follow-mode is broken with header-line and tab-line
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Wed, 3 Nov 2021 18:28:01 UTC
Severity: normal
Merged with 47498
Found in version 28.0.50
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
In emacs -Q visit a long buffer, split the window horizontally,
and enable 'M-x follow-mode'. A partially-visible bottom line
of the left window will help to observe that the same line
is completely visible at the top of the right window.
This is a nice feature that allows follow-mode to work correctly.
Now enable 'M-x global-tab-line-mode' and observe that
the same line is still visible at the top of the right window,
whereas the bottom line of the left window shows another
partially-visible line. This is a bug.
The most low-level function of follow-mode is follow-calc-win-end.
When global-tab-line-mode is enabled, follow-calc-win-end
returns the same values as when global-tab-line-mode is disabled.
I don't understand what more low-level function doesn't take
into account the height of the tab-line. Maybe the problem is
in pos-visible-in-window-p? Or maybe different values returned
by window-inside-pixel-edges and window-end?
This bug report was last modified 3 years and 199 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.