]> git.eshelyaron.com Git - emacs.git/commit
Support displaying function name in the header line
authorSpencer Baugh <sbaugh@catern.com>
Sun, 9 Jul 2023 16:16:28 +0000 (12:16 -0400)
committerEli Zaretskii <eliz@gnu.org>
Sat, 15 Jul 2023 07:54:25 +0000 (10:54 +0300)
commitdcad72a779bc4d5d8878c53b4b8bee13e316c9b4
tree8ee0bf41c1a086ec9540dccb746b58df09e33d2b
parent3021a0656f31c03ebfcaf535e54605c76acf23b6
Support displaying function name in the header line

In some languages, the function name as displayed in the mode-line by
which-func-mode can be quite long.  It's useful to be able to display
it in the header-line instead.  Let's support that.

* lisp/progmodes/which-func.el (which-func-display)
(which-func--use-header-line, which-func--use-mode-line):
Add. (Bug#64533)
(which-func-try-to-enable): Support 'which-func--use-header-line'.
(which-func--disable): Add, to support 'which-func--use-header-line'.
(which-func-ff-hook, which-func-update-1): Use 'which-func--disable'.
doc/emacs/programs.texi
lisp/progmodes/which-func.el