From eaea03546a291e27c5794599040b8bb464118d9f Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 18 Dec 2020 09:16:29 -0500 Subject: [PATCH] * lisp/progmodes/which-func.el (which-func-update): Bind `non-essential` --- lisp/progmodes/which-func.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/progmodes/which-func.el b/lisp/progmodes/which-func.el index a524bbaa223..562a357a8cb 100644 --- a/lisp/progmodes/which-func.el +++ b/lisp/progmodes/which-func.el @@ -186,7 +186,7 @@ and you want to simplify them for the mode line "Non-nil means display current function name in mode line. This makes a difference only if `which-function-mode' is non-nil.") -(add-hook 'after-change-major-mode-hook 'which-func-ff-hook t) +(add-hook 'after-change-major-mode-hook #'which-func-ff-hook t) (defun which-func-try-to-enable () (unless (or (not which-function-mode) @@ -216,7 +216,8 @@ It creates the Imenu index for the buffer, if necessary." (defun which-func-update () ;; "Update the Which-Function mode display for all windows." ;; (walk-windows 'which-func-update-1 nil 'visible)) - (which-func-update-1 (selected-window))) + (let ((non-essential t)) + (which-func-update-1 (selected-window)))) (defun which-func-update-1 (window) "Update the Which Function mode display for window WINDOW." @@ -356,7 +357,7 @@ This function is meant to be called from `ediff-select-hook'." (when ediff-window-C (which-func-update-1 ediff-window-C)))) -(add-hook 'ediff-select-hook 'which-func-update-ediff-windows) +(add-hook 'ediff-select-hook #'which-func-update-ediff-windows) (provide 'which-func) -- 2.39.2