From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.bugs
Subject: bug#51590: Tab-line breaks windows of follow-mode
Date: Wed, 03 Nov 2021 20:35:36 +0200
Message-ID: <83h7ctgk93.fsf@gnu.org>
References: <86bl31xfl9.fsf@mail.linkov.net>
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="30583"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: 51590@debbugs.gnu.org
To: Juri Linkov <juri@linkov.net>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 03 19:36:57 2021
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1miL85-0007m9-0J
	for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Nov 2021 19:36:57 +0100
Original-Received: from localhost ([::1]:32996 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1miL84-0003Nd-2I
	for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Nov 2021 14:36:56 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33186)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1miL7E-0002YK-2O
 for bug-gnu-emacs@gnu.org; Wed, 03 Nov 2021 14:36:05 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:57903)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1miL7C-0005rP-7e
 for bug-gnu-emacs@gnu.org; Wed, 03 Nov 2021 14:36:03 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1miL7C-0001dN-5X
 for bug-gnu-emacs@gnu.org; Wed, 03 Nov 2021 14:36:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Eli Zaretskii <eliz@gnu.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Wed, 03 Nov 2021 18:36:02 +0000
Resent-Message-ID: <handler.51590.B51590.16359645486250@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 51590
X-GNU-PR-Package: emacs
Original-Received: via spool by 51590-submit@debbugs.gnu.org id=B51590.16359645486250
 (code B ref 51590); Wed, 03 Nov 2021 18:36:02 +0000
Original-Received: (at 51590) by debbugs.gnu.org; 3 Nov 2021 18:35:48 +0000
Original-Received: from localhost ([127.0.0.1]:41215 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1miL6y-0001ck-8L
 for submit@debbugs.gnu.org; Wed, 03 Nov 2021 14:35:48 -0400
Original-Received: from eggs.gnu.org ([209.51.188.92]:35814)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@gnu.org>) id 1miL6w-0001cU-7p
 for 51590@debbugs.gnu.org; Wed, 03 Nov 2021 14:35:47 -0400
Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36248)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@gnu.org>)
 id 1miL6q-0005oc-2f; Wed, 03 Nov 2021 14:35:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=04h72p67V8z8gBTPJw+MlQRa58iHgU8mYE9C2EE6aFw=; b=WdTo6qrVBW5F
 onApvO2RWs4v1SA5GcjH0KmnJqgMi4DIXAp7VjI7qcXRM1cch11JJd+4bkpefuN6IC4zREHjevB5O
 TDE5l292UJBN095x2+/gBVyK+WF0fxNQ25caqHNlrbUXAXnndEdr8QrQaTcDc9BfIpNZXKKgfk3Zy
 fzkMlBQGvHzznD6tEcmDTmOGhGaVVRp/gVroWiYpMMfaSJFyxqNyHmxBUkJZolcMa9idwrqGvzeOQ
 tcYYtIcJqCb1W88VKuNVgAePMT0Z7RhASPk8FfN5d5lohjnqkfsB7z6AjSx1wkIEooNQZQVPb5D+U
 favw0R1KBT/P8DMcjRh+VA==;
Original-Received: from [87.69.77.57] (port=3646 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@gnu.org>)
 id 1miL6o-0005E4-BJ; Wed, 03 Nov 2021 14:35:39 -0400
In-Reply-To: <86bl31xfl9.fsf@mail.linkov.net> (message from Juri Linkov on
 Wed, 03 Nov 2021 20:24:18 +0200)
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "bug-gnu-emacs"
 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.bugs:218890
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/218890>

> From: Juri Linkov <juri@linkov.net>
> Date: Wed, 03 Nov 2021 20:24:18 +0200
> 
> 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.

Can you step through that function and see which part is misbehaving
there?

> 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?

I don't know the answer, but I see that header-line-format is
mentioned in one place in follow.el, and that is not a good sign...