From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mekeor Melire Newsgroups: gmane.emacs.bugs Subject: bug#66283: 30.0.50; which-function-mode: When configured to display in header, and toggling off, then does not remove header Date: Sat, 30 Sep 2023 20:41:05 +0000 Message-ID: <87edif9xqh.fsf@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30801"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Author , Committer To: 66283@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 30 23:09:01 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 1qmhCv-0007aY-F8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Sep 2023 23:09:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qmhCi-0004Pm-HZ; Sat, 30 Sep 2023 17:08:48 -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 1qmhCh-0004Pe-3c for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2023 17:08:47 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qmhCg-0002hh-SP for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2023 17:08:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qmhCv-0002UH-VO for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2023 17:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mekeor Melire Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Sep 2023 21:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66283 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16961081089510 (code B ref -1); Sat, 30 Sep 2023 21:09:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Sep 2023 21:08:28 +0000 Original-Received: from localhost ([127.0.0.1]:59849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmhCO-0002TK-1P for submit@debbugs.gnu.org; Sat, 30 Sep 2023 17:08:28 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:42746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmhCK-0002T2-5T for submit@debbugs.gnu.org; Sat, 30 Sep 2023 17:08:26 -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 1qmhBz-0004Mz-5A for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2023 17:08:03 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qmhBx-0002YU-3J for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2023 17:08:02 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 18DD7240101 for ; Sat, 30 Sep 2023 23:07:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1696108077; bh=Th16IOZNgYE+MidyXX7MjQY8aMUFydKWaTGy68hjurc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=hgsLydd3MgYYX4H2yXO2iUh3KL/cSnsyOQ9Do8ZsWSbfxN+GNLGKl8eu5HVur4RRq h7YooI5uTxK1UcXtjxnX8BF3DqNCm6TJ/J4cmJSkup0d5BUq2qaxGXEgr6y9+sS96Q A6EICnUCeY28kN+ROsi1EsY7VMvAXvR1q3cq8z4RYWq4ctodmm6L4drtLcZh9syrxV TeQ4BY5E1v8GHfGceCjnSIcFUSBjlvc6y+1CMtwiOLURpb+c9Btb4xeFjqlR5MJ1wx rGGxz20ypWRhOEL9YqlZxo0Ryhbbd1F4hX2EmtWpNKFb3xxxEN/UHRksxhHBq1IdGS 3VDhJVtw9CYjg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Ryfv01Zykz9rxB; Sat, 30 Sep 2023 23:07:56 +0200 (CEST) Received-SPF: pass client-ip=185.67.36.66; envelope-from=mekeor@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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:271563 Archived-At: Execute: emacs -Q Configure Which Function Mode to display in header by evaluating the following; note that this is a new feature in Emacs 30: (customize-set-variable 'which-func-display 'header) Toggle Which Function Mode on by typing: M-x which-function-mode RET Toggle Which Function Mode off by typing again: M-x which-function-mode RET You can see a dysfunctional header. (It won't be update because Which Function Mode is off.) To be precise, the value of variable `header-line-format' is '(("" which-func-format " ")). Apparently, this variable has not been cleaned up appropriately. This is the job of the function `which-func--disable'. [1] In order to test the `which-func--disable' function, type: M-: (which-func--disable) RET The header disappeared. The value of variable `header-line-format' is `nil'. This means, that the function does its job well. Apparently, it's not being called when toggling off. [2] [1]: https://git.sv.gnu.org/cgit/emacs.git/tree/lisp/progmodes/which-func.el?h=35fbf6f15830f576fd1909f4a8d30e7ba1d777bd#n225 [2]: Where is the "Turn it off." comment here? https://git.sv.gnu.org/cgit/emacs.git/tree/lisp/progmodes/which-func.el?h=35fbf6f15830f576fd1909f4a8d30e7ba1d777bd#n289 -- In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0) Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Guix System