diff options
| author | Glenn Morris | 2011-05-12 00:07:06 -0700 |
|---|---|---|
| committer | Glenn Morris | 2011-05-12 00:07:06 -0700 |
| commit | d2fc7e3d0f6f57f962cbd94df3bf4fd15a37bb68 (patch) | |
| tree | e6d877c35b4396bd5092a7be244b1527374d4a0e /lisp/progmodes | |
| parent | d45885f7e0025fb5bd0756ba78c511a981d64533 (diff) | |
| parent | e531bdfff1ee57a0ba4af6c8575ed7856e4c86d2 (diff) | |
| download | emacs-d2fc7e3d0f6f57f962cbd94df3bf4fd15a37bb68.tar.gz emacs-d2fc7e3d0f6f57f962cbd94df3bf4fd15a37bb68.zip | |
Merge from emacs-23; up to 2010-06-10T12:56:11Z!michael.albinus@gmx.de.
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/which-func.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/progmodes/which-func.el b/lisp/progmodes/which-func.el index ae18486c43b..4e4d7b15053 100644 --- a/lisp/progmodes/which-func.el +++ b/lisp/progmodes/which-func.el | |||
| @@ -270,7 +270,7 @@ It calls them sequentially, and if any returns non-nil, | |||
| 270 | (defun which-function () | 270 | (defun which-function () |
| 271 | "Return current function name based on point. | 271 | "Return current function name based on point. |
| 272 | Uses `which-func-functions', `imenu--index-alist' | 272 | Uses `which-func-functions', `imenu--index-alist' |
| 273 | or `add-log-current-defun-function'. | 273 | or `add-log-current-defun'. |
| 274 | If no function name is found, return nil." | 274 | If no function name is found, return nil." |
| 275 | (let ((name | 275 | (let ((name |
| 276 | ;; Try the `which-func-functions' functions first. | 276 | ;; Try the `which-func-functions' functions first. |
| @@ -320,9 +320,8 @@ If no function name is found, return nil." | |||
| 320 | (reverse (cons (car pair) namestack)))))))))))) | 320 | (reverse (cons (car pair) namestack)))))))))))) |
| 321 | 321 | ||
| 322 | ;; Try using add-log support. | 322 | ;; Try using add-log support. |
| 323 | (when (and (null name) (boundp 'add-log-current-defun-function) | 323 | (when (null name) |
| 324 | add-log-current-defun-function) | 324 | (setq name (add-log-current-defun))) |
| 325 | (setq name (funcall add-log-current-defun-function))) | ||
| 326 | ;; Filter the name if requested. | 325 | ;; Filter the name if requested. |
| 327 | (when name | 326 | (when name |
| 328 | (if which-func-cleanup-function | 327 | (if which-func-cleanup-function |