Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ef91372a
Commit
ef91372a
authored
Mar 29, 2005
by
Stefan Monnier
Browse files
(which-function): Be robust in the face of an
imenu--make-index-alist failure.
parent
8d194e3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/progmodes/which-func.el
lisp/progmodes/which-func.el
+4
-3
No files found.
lisp/ChangeLog
View file @
ef91372a
2005-03-29 Stephan Stahl <stahl@eos.franken.de> (tiny change)
* progmodes/which-func.el (which-function): Be robust in the face of an
imenu--make-index-alist failure.
2005-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
* reveal.el (reveal-mode-map): Don't override C-a and C-e.
...
...
lisp/progmodes/which-func.el
View file @
ef91372a
;;; which-func.el --- print current function in mode line
;; Copyright (C) 1994, 1997, 1998, 2001, 2003 Free Software Foundation, Inc.
;; Copyright (C) 1994, 1997, 1998, 2001, 2003, 2005
;; Free Software Foundation, Inc.
;; Author: Alex Rezinsky <alexr@msil.sps.mot.com>
;; (doesn't seem to be responsive any more)
...
...
@@ -251,7 +252,7 @@ If no function name is found, return nil."
(
when
(
and
(
null
name
)
(
boundp
'imenu--index-alist
)
(
null
imenu--index-alist
)
(
null
which-function-imenu-failed
))
(
imenu--make-index-alist
)
(
imenu--make-index-alist
t
)
(
unless
imenu--index-alist
(
make-local-variable
'which-function-imenu-failed
)
(
setq
which-function-imenu-failed
t
)))
...
...
@@ -291,5 +292,5 @@ If no function name is found, return nil."
(
provide
'which-func
)
;;
;
arch-tag: fa8a55c7-bfe3-4ffc-95ab-01bf21796827
;; arch-tag: fa8a55c7-bfe3-4ffc-95ab-01bf21796827
;;; which-func.el ends here
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment