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#63988: 30.0.50; Recent header line format changes cause spin/seg fault with format-mode-line Date: Wed, 05 Jul 2023 18:40:19 +0300 Message-ID: <83zg4aicyk.fsf@gnu.org> References: <831qij24qm.fsf@gnu.org> <83wn0bzoeb.fsf@gnu.org> <83y1kltgeq.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3665"; mail-complaints-to="usenet@ciao.gmane.io" Cc: me@eshelyaron.com, 63988@debbugs.gnu.org, aaronjensen@gmail.com, monnier@iro.umontreal.ca To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 05 17:41:11 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 1qH4cw-0000my-Ht for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Jul 2023 17:41:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qH4cq-0000QW-Og; Wed, 05 Jul 2023 11:41: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 1qH4co-0000Po-HK for bug-gnu-emacs@gnu.org; Wed, 05 Jul 2023 11:41: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 1qH4co-000101-8r for bug-gnu-emacs@gnu.org; Wed, 05 Jul 2023 11:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qH4co-0001l3-4T for bug-gnu-emacs@gnu.org; Wed, 05 Jul 2023 11:41: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: Wed, 05 Jul 2023 15:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63988 X-GNU-PR-Package: emacs Original-Received: via spool by 63988-submit@debbugs.gnu.org id=B63988.16885716316713 (code B ref 63988); Wed, 05 Jul 2023 15:41:02 +0000 Original-Received: (at 63988) by debbugs.gnu.org; 5 Jul 2023 15:40:31 +0000 Original-Received: from localhost ([127.0.0.1]:38822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qH4cJ-0001kC-9g for submit@debbugs.gnu.org; Wed, 05 Jul 2023 11:40:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qH4cG-0001jw-P2 for 63988@debbugs.gnu.org; Wed, 05 Jul 2023 11:40:29 -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 1qH4cB-0000jV-1V; Wed, 05 Jul 2023 11:40:23 -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=1snvpyxIdl0l60gFtYoR1uj5OQ08EUnwk7cm70jsV3s=; b=kbbgqQwxYtIa HkgGFeEkcUgOe2VZX6D87XbyY/QFZLpDiQ03runQLTIB3BEo5pAFZa55CHYrfK6hAAM/d4Gw8f2ON T0epRzWR8EikIMrT55JuL4kWQiD2HYy+UgzfS8F0oEiSKQxyXkwsyHW15rwp+UaZ2MlS648uzVM3K HdulCOekzvwwDIiMuxh6vW/VXTA9Qn9Yjw/KhkVj20HZdofmclbAfIuiE03vORCdr6E0XlMJVjT9f l5zCQrHiiiEcnrDTqfj+2I6k5B7Z8QuJ7ScV8iJK0oJUHXsF5H8rT8uUO8GjRMOueUWFVlYiZbPje 4W7K8Kl4ozs7eRSoHy761g==; 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 1qH4cA-0003P5-Gv; Wed, 05 Jul 2023 11:40:22 -0400 In-Reply-To: (message from Spencer Baugh on Wed, 05 Jul 2023 11:30:41 -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:264640 Archived-At: > From: Spencer Baugh > Cc: Eshel Yaron , 63988@debbugs.gnu.org, > aaronjensen@gmail.com, monnier@iro.umontreal.ca > Date: Wed, 05 Jul 2023 11:30:41 -0400 > > > It sounds like the consensus here is that indeed this feature is not > > worth the complications, and so, unless I hear some good reasons not > > to do so, I intend to delete it in a week's time. > > Ugh, I am only just now seeing this... I would have appreciated a CC > since I'm the one who requested this feature, or maybe a mail sent to > the original bug report... > > Anyway, the reason for this feature remains what is described in > bug#63825: displaying a header line only when there is information to be > displayed in the header line. The discussion indicated that the reason for the feature, while it is valid, is not serious enough to justify the complications described in the thread. > Concretely, for which-function-mode: it is nice to have > which-func-format displayed in the header line, but in some kinds of > buffers it does not have any information to display. When a window is > displaying such a buffer, I'd prefer to not have a header line, because > the header line will just be empty. > > This use case has no need for the full-fledged :eval mode of this > feature. It works fine with the non-nil car case. That the car is nil doesn't necessarily mean that the header will not show something. > I could add this functionality to which-func-mode directly: it could > learn to set header-line-format buffer-locally only in buffers that > support which-func-mode. Would that be acceptable? If so I'll send a > patch for that. If you mean that some Lisp will set header-line-format nil when some condition is true, I think it should be fine, assuming you can arrange for this Lisp to run whenever the condition could change.