aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/which-func.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/which-func.el b/lisp/progmodes/which-func.el
index 8ca7eb188ec..b622e536d26 100644
--- a/lisp/progmodes/which-func.el
+++ b/lisp/progmodes/which-func.el
@@ -262,11 +262,11 @@ It calls them sequentially, and if any returns non-nil,
262 262
263(defun which-function () 263(defun which-function ()
264 "Return current function name based on point. 264 "Return current function name based on point.
265Uses `which-function-functions', `imenu--index-alist' 265Uses `which-func-functions', `imenu--index-alist'
266or `add-log-current-defun-function'. 266or `add-log-current-defun-function'.
267If no function name is found, return nil." 267If no function name is found, return nil."
268 (let ((name 268 (let ((name
269 ;; Try the `which-function-functions' functions first. 269 ;; Try the `which-func-functions' functions first.
270 (run-hook-with-args-until-success 'which-func-functions))) 270 (run-hook-with-args-until-success 'which-func-functions)))
271 271
272 ;; If Imenu is loaded, try to make an index alist with it. 272 ;; If Imenu is loaded, try to make an index alist with it.