GNU bug report logs -
#66283
30.0.50; which-function-mode: When configured to display in header, and toggling off, then does not remove header
Previous Next
Reported by: Mekeor Melire <mekeor <at> posteo.de>
Date: Sat, 30 Sep 2023 21:09:01 UTC
Severity: minor
Tags: confirmed, patch
Found in version 30.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
This bug report was last modified 1 year and 207 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.