[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master eaea035: * lisp/progmodes/which-func.el (which-func-update): Bind
From: |
Stefan Monnier |
Subject: |
master eaea035: * lisp/progmodes/which-func.el (which-func-update): Bind `non-essential` |
Date: |
Fri, 18 Dec 2020 09:16:35 -0500 (EST) |
branch: master
commit eaea03546a291e27c5794599040b8bb464118d9f
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* 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 a524bba..562a357 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master eaea035: * lisp/progmodes/which-func.el (which-func-update): Bind `non-essential`,
Stefan Monnier <=