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#63825: 29.0.90; The header line should be hidden when empty Date: Thu, 01 Jun 2023 19:14:29 +0300 Message-ID: <838rd3cg7u.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32841"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63825@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 01 18:16:44 2023 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 1q4kyi-0008IQ-Pw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Jun 2023 18:16:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q4kw8-0008Nn-Jd; Thu, 01 Jun 2023 12:14:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4kw6-0008Lc-Uy for bug-gnu-emacs@gnu.org; Thu, 01 Jun 2023 12:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q4kw6-0003uS-M9 for bug-gnu-emacs@gnu.org; Thu, 01 Jun 2023 12:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q4kw6-0001Gb-H8 for bug-gnu-emacs@gnu.org; Thu, 01 Jun 2023 12:14: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: Thu, 01 Jun 2023 16:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63825 X-GNU-PR-Package: emacs Original-Received: via spool by 63825-submit@debbugs.gnu.org id=B63825.16856360314843 (code B ref 63825); Thu, 01 Jun 2023 16:14:02 +0000 Original-Received: (at 63825) by debbugs.gnu.org; 1 Jun 2023 16:13:51 +0000 Original-Received: from localhost ([127.0.0.1]:38385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q4kvv-0001G3-7n for submit@debbugs.gnu.org; Thu, 01 Jun 2023 12:13:51 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q4kvs-0001Fp-HF for 63825@debbugs.gnu.org; Thu, 01 Jun 2023 12:13:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4kvm-0003qb-Ls; Thu, 01 Jun 2023 12:13:42 -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=OCdY2YXXHFMYGOYM30SiUR8Bf7HG0QpwJVET1M0mv0M=; b=oikK9w8KXW5o odr3ztGUxjHoBG2MWvOPHOR6BJzB/ls4lhqngitYVi8r4iBiwMoLeud57/NjxH1K5UsvEkBj5by4e O0is1fXLwPwgZMMayqHHkz4PFuCdeBcwIct8llhVjkLb2G06Z8kfVknoZI1jwmcrHWyrxudBJ4UzU MPnZ1jtZ1cvVQKHzTwava8oaKs07nLgBE88+NTw4EwqvYboZlbHcaRUIWbeQaNHxjqB7AuIZBmBE3 UWuxVvddATwMy93zlptU84+4FiDMQ+PaOcavAaTVUGOZo+DwPQ19v+cEDuOWQkfzQf2pO7wW+eaM1 b+iQ4f1U2jk82PU3Y0I8WQ==; Original-Received: from [87.69.77.57] (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 1q4kvl-0008Sl-LX; Thu, 01 Jun 2023 12:13:42 -0400 In-Reply-To: (message from Spencer Baugh on Thu, 01 Jun 2023 09:37:38 -0400) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262710 Archived-At: > From: Spencer Baugh > Date: Thu, 01 Jun 2023 09:37:38 -0400 > > It would be nice if the header line was hidden when it was empty, not > just when header-line-format was nil. That reduces a bit of visual > noise and gives one more line of text in some buffers. We could maybe do this optionally (although I don't yet see why we should, see below), but we cannot do this unconditionally: it's an incompatible change in eons-long behavior. > A concrete use case is with which-func-mode: > > 1. emacs -Q > 2. (setq-default header-line-format > '((which-func-mode ("" which-func-format " ")))) > 3. This nicely adds the current function name to the header in code > buffers, but in buffers not supported by which-function-mode (text-mode, > for example) the header line is empty and ugly. header-line-format supports :eval and :when, so why cannot which-function-mode use those to yield nil when there's nothing to show? IOW, instead of introducing a new and breaking behavior, why not use the (quite elaborate and flexible) features we already have? Am I missing something?