Tags: patch 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. This was my original motivation for Bug#63825, so that the header line was not displayed when which-func-mode wasn't enabled, but just teaching which-function-mode to handle this is much easier. * lisp/progmodes/which-func.el (which-func-use-header-line) (which-func-use-mode-line): Add. (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. In GNU Emacs 29.0.92 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo version 1.15.12, Xaw scroll bars) of 2023-07-05 built on igm-qws-u22796a Repository revision: 4127aa427fc7e2cb5b3dbae9264c2ee628474db4 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: CentOS Linux 7 (Core) Configured using: 'configure --config-cache --with-x-toolkit=lucid --with-gif=ifavailable'