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: follow-mode is broken with header-line and tab-line
Date: Sat, 06 Nov 2021 14:12:50 +0200
Message-ID: <83bl2xbhz1.fsf@gnu.org>
References: <86bl31xfl9.fsf@mail.linkov.net> <83h7ctgk93.fsf@gnu.org>
 <86pmrf3l9m.fsf_-_@mail.linkov.net> <835yt7g3my.fsf@gnu.org>
 <YYWl/FgcizlBrKKB@ACM>
 <8335o9dazn.fsf@gnu.org> <YYZsGBOtJeDHyn1H@ACM>
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="21022"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: 51590@debbugs.gnu.org, juri@linkov.net
To: Alan Mackenzie <acm@muc.de>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 06 13:14:14 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 1mjKaL-0005Ih-N4
	for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Nov 2021 13:14:13 +0100
Original-Received: from localhost ([::1]:53566 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 1mjKaK-000364-9D
	for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Nov 2021 08:14:12 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41434)
 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 1mjKaA-00035g-D3
 for bug-gnu-emacs@gnu.org; Sat, 06 Nov 2021 08:14:02 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:37108)
 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 1mjKaA-0002u4-4R
 for bug-gnu-emacs@gnu.org; Sat, 06 Nov 2021 08:14:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1mjKa9-0002eS-Sp
 for bug-gnu-emacs@gnu.org; Sat, 06 Nov 2021 08:14:01 -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: Sat, 06 Nov 2021 12:14:01 +0000
Resent-Message-ID: <handler.51590.B51590.163620079910132@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.163620079910132
 (code B ref 51590); Sat, 06 Nov 2021 12:14:01 +0000
Original-Received: (at 51590) by debbugs.gnu.org; 6 Nov 2021 12:13:19 +0000
Original-Received: from localhost ([127.0.0.1]:48654 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1mjKZS-0002dL-48
 for submit@debbugs.gnu.org; Sat, 06 Nov 2021 08:13:19 -0400
Original-Received: from eggs.gnu.org ([209.51.188.92]:44004)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@gnu.org>) id 1mjKZO-0002d6-6o
 for 51590@debbugs.gnu.org; Sat, 06 Nov 2021 08:13:17 -0400
Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42190)
 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 1mjKZH-0001iq-OY; Sat, 06 Nov 2021 08:13:07 -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=nvY7hi1MclL0tR7YLhX0MnMMLkfpauZkEW75X4p6kq4=; b=g3MDUMxmhfWX
 bDGzpsS0DX97vle1c70x9LXqOl6Z0RI9JuueZ7LdFbtmUM6lgqhrcPMgIc2pwn/VOea5Ast3Ffx9L
 LWV9v5r/xHwahWrd2VU68Qjxcy2yZ9/ZN3Dv5AyFAYq6H1JPx9ShYBGGYmQwKlmX/zqDzIyBIK8Sd
 JU8kqr3pNZX80oT2OCw5FLgVhwhbCtuoiCSVX+qyoh9xZ21Y0LKOTL0GCSxwwJ838r0HhFA2pRenX
 aURcE6wZHXU9gbImFUFbRqfRMtMa+NtfOal5EdIKBf/Fr9nC45YWxBAkMGtZvJ6hzaOHsKu0i+V0O
 8u/I6qbP7KgZ3Bf+BFimvA==;
Original-Received: from [87.69.77.57] (port=2078 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 1mjKZH-00052n-A4; Sat, 06 Nov 2021 08:13:07 -0400
In-Reply-To: <YYZsGBOtJeDHyn1H@ACM> (message from Alan Mackenzie on Sat, 6 Nov
 2021 11:50:48 +0000)
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:219101
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/219101>

> Date: Sat, 6 Nov 2021 11:50:48 +0000
> Cc: juri@linkov.net, 51590@debbugs.gnu.org
> From: Alan Mackenzie <acm@muc.de>
> 
> > I've now made changes there to make clear that the header-line and the
> > tab-line _are_ included in the text area.
> 
> I'm just confused at the moment, after having spent several hours trying
> to sort things out in my head.
> 
> I think "window body" and "window text area" mean the same thing, but
> I'm not sure.

They aren't.  "Text area" includes the header-line and the tab-line,
the body doesn't.

> The picture in elisp page "Basic Windows" seems to show "window body
> height" as NOT including the header line or tab line.  That picture
> seems to show the header line as being ABOVE the text area, not part of
> it.

The updated picture doesn't have "text area" written on it at all.

> The current implementation of posn-at-x-y includes the header line in
> its Y coordinate, BUT NOT THE TAB LINE.  I think this is a bug.

Yes.  Please fix it.

> > > And I think we (probably me ;-) should go through the elisp manual and
> > > doc strings replacing vague phrases like "the text area of the window"
> > > with explicit descriptions involving "the header line", etc.
> 
> > That'd be going overboard.  We could place a cross-reference in some
> > of those places to the "Frame Layout" node, though.  Suggestions for
> > such places are welcome.
> 
> OK.  But I think there's confusion in the manual and doc strings, and
> even the code, and that it's not just me.

_After_ my today's changes?  If so, please show where is the confusing
text.