From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51590: follow-mode is broken with header-line and tab-line Date: Sat, 06 Nov 2021 20:40:41 +0200 Message-ID: <83o86x9lg6.fsf@gnu.org> References: <86bl31xfl9.fsf@mail.linkov.net> <83h7ctgk93.fsf@gnu.org> <86pmrf3l9m.fsf_-_@mail.linkov.net> <835yt7g3my.fsf@gnu.org> <8335o9dazn.fsf@gnu.org> <83bl2xbhz1.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38251"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, 51590@debbugs.gnu.org, juri@linkov.net To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 06 19:42:15 2021 Return-path: 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 ) id 1mjQdq-0009ps-PH for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Nov 2021 19:42:14 +0100 Original-Received: from localhost ([::1]:39572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjQdp-0001uC-87 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Nov 2021 14:42:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjQdf-0001sq-7z for bug-gnu-emacs@gnu.org; Sat, 06 Nov 2021 14:42:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39080) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mjQde-0002Ni-Vy for bug-gnu-emacs@gnu.org; Sat, 06 Nov 2021 14:42:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mjQde-00073r-81 for bug-gnu-emacs@gnu.org; Sat, 06 Nov 2021 14:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Nov 2021 18:42:02 +0000 Resent-Message-ID: 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.163622406627071 (code B ref 51590); Sat, 06 Nov 2021 18:42:02 +0000 Original-Received: (at 51590) by debbugs.gnu.org; 6 Nov 2021 18:41:06 +0000 Original-Received: from localhost ([127.0.0.1]:50626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjQcj-00072Z-UA for submit@debbugs.gnu.org; Sat, 06 Nov 2021 14:41:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjQch-00071y-Bf for 51590@debbugs.gnu.org; Sat, 06 Nov 2021 14:41:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51102) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjQcZ-0000qI-Td; Sat, 06 Nov 2021 14:40:56 -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=DecEzbDe6+obrCNGZ4B3V4SoiSART/jBCdgkMKGlIrE=; b=YsnyWz186UmV QbmzUyQs85TD+W/dlnOsqRQPVlJs2XYwrDKdot1068MMWKZGlM6wIpXoYsFc/1/qvEGTnTlTiZuRh /UwwbZhkMo0X3zDCZelcW92w75tEy9sgXMTV2eKDIvlLNQ05X1iSM4P6DrUkvK/CZNYxs09au8oH4 Ptauhi5R+ldnLfJmPKyoCA71yFPbW1s4Y62lonnmst4zEP1VYefXHPEs7iYbl4a2Yxq/5HSwpyYui KcOw57GlexrSfEFri+SL8Z2VW0hk449CbNKGDNJhNmMiPBou26aQuSQsyDOMt6JZFs8YuMjZBLMzm ro57O46SVDj9f5JEkWQLTQ==; Original-Received: from [87.69.77.57] (port=2576 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjQcZ-0005Uy-ER; Sat, 06 Nov 2021 14:40:55 -0400 In-Reply-To: (message from martin rudalics on Sat, 6 Nov 2021 19:31:11 +0100) 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:219138 Archived-At: > Cc: 51590@debbugs.gnu.org, juri@linkov.net > From: martin rudalics > Date: Sat, 6 Nov 2021 19:31:11 +0100 > > >> 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. > > I'm afraid this is a change for the worse. I respectfully disagree. > The text area does not contain the header line. It does in my book. > If you look at a version of 'coordinates-in-window-p' from the past > century you will see that > > If COORDINATES are in the text portion of WINDOW,\n\ > the coordinates relative to the window are returned.\n\ > If they are in the mode line of WINDOW, `mode-line' is returned.\n\ > If they are in the top mode line of WINDOW, `header-line' is returned.\n\ > > and this has never changed. The text area is what window_box_height > tells us. I don't think I understand how that follows. And last-century documentation may need updating anyway. > According to your change we'd now have to rewrite doc-strings and info > of lots of functions like 'window-text-height', 'window-body-height' or > 'window-text-pixel-size'. If we must, yes. Why is that a catastrophe? > If 'posn-at-x-y' has a problem, let's fix it. Just that I don't really > know what the problem is. See bug#51632. And let's continue the discussion there.