diff options
| author | Stefan Monnier | 2005-03-29 14:18:00 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-03-29 14:18:00 +0000 |
| commit | ef91372af5abbff26bbdbea17ec28202f7dd2f65 (patch) | |
| tree | 11e110059e84f8888a88daa7910ade52d3998dad | |
| parent | 8d194e3e9b34551d9651413586da945a8450c53b (diff) | |
| download | emacs-ef91372af5abbff26bbdbea17ec28202f7dd2f65.tar.gz emacs-ef91372af5abbff26bbdbea17ec28202f7dd2f65.zip | |
(which-function): Be robust in the face of an
imenu--make-index-alist failure.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/which-func.el | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 47d3fb33da3..648d58d9ff7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-03-29 Stephan Stahl <stahl@eos.franken.de> (tiny change) | ||
| 2 | |||
| 3 | * progmodes/which-func.el (which-function): Be robust in the face of an | ||
| 4 | imenu--make-index-alist failure. | ||
| 5 | |||
| 1 | 2005-03-29 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2005-03-29 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * reveal.el (reveal-mode-map): Don't override C-a and C-e. | 8 | * reveal.el (reveal-mode-map): Don't override C-a and C-e. |
diff --git a/lisp/progmodes/which-func.el b/lisp/progmodes/which-func.el index dae5722d430..d329e234025 100644 --- a/lisp/progmodes/which-func.el +++ b/lisp/progmodes/which-func.el | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | ;;; which-func.el --- print current function in mode line | 1 | ;;; which-func.el --- print current function in mode line |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1994, 1997, 1998, 2001, 2003 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1994, 1997, 1998, 2001, 2003, 2005 |
| 4 | ;; Free Software Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | ;; Author: Alex Rezinsky <alexr@msil.sps.mot.com> | 6 | ;; Author: Alex Rezinsky <alexr@msil.sps.mot.com> |
| 6 | ;; (doesn't seem to be responsive any more) | 7 | ;; (doesn't seem to be responsive any more) |
| @@ -251,7 +252,7 @@ If no function name is found, return nil." | |||
| 251 | (when (and (null name) | 252 | (when (and (null name) |
| 252 | (boundp 'imenu--index-alist) (null imenu--index-alist) | 253 | (boundp 'imenu--index-alist) (null imenu--index-alist) |
| 253 | (null which-function-imenu-failed)) | 254 | (null which-function-imenu-failed)) |
| 254 | (imenu--make-index-alist) | 255 | (imenu--make-index-alist t) |
| 255 | (unless imenu--index-alist | 256 | (unless imenu--index-alist |
| 256 | (make-local-variable 'which-function-imenu-failed) | 257 | (make-local-variable 'which-function-imenu-failed) |
| 257 | (setq which-function-imenu-failed t))) | 258 | (setq which-function-imenu-failed t))) |
| @@ -291,5 +292,5 @@ If no function name is found, return nil." | |||
| 291 | 292 | ||
| 292 | (provide 'which-func) | 293 | (provide 'which-func) |
| 293 | 294 | ||
| 294 | ;;; arch-tag: fa8a55c7-bfe3-4ffc-95ab-01bf21796827 | 295 | ;; arch-tag: fa8a55c7-bfe3-4ffc-95ab-01bf21796827 |
| 295 | ;;; which-func.el ends here | 296 | ;;; which-func.el ends here |