diff options
| -rw-r--r-- | lisp/progmodes/which-func.el | 4 |
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. |
| 265 | Uses `which-function-functions', `imenu--index-alist' | 265 | Uses `which-func-functions', `imenu--index-alist' |
| 266 | or `add-log-current-defun-function'. | 266 | or `add-log-current-defun-function'. |
| 267 | If no function name is found, return nil." | 267 | If 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. |