summaryrefslogtreecommitdiff
path: root/lisp/progmodes/which-func.el
diff options
context:
space:
mode:
authorTakafumi Arakaki <aka.tkf@gmail.com>2012-10-22 09:29:28 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2012-10-22 09:29:28 -0400
commit4f020becaf99b8797ae48a2df34693bb6c015391 (patch)
treea4a212b795b32a1ef2e7b6c60a178ea0ea174246 /lisp/progmodes/which-func.el
parentc77d37e227560d8ab87b475acef74bf20b54750e (diff)
downloademacs-4f020becaf99b8797ae48a2df34693bb6c015391.tar.gz
* lisp/progmodes/which-func.el (which-func-current): The hash-table may have
an explicit nil. Fixes: debbugs:12338
Diffstat (limited to 'lisp/progmodes/which-func.el')
-rw-r--r--lisp/progmodes/which-func.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/which-func.el b/lisp/progmodes/which-func.el
index 4819149bdf6..c2ce12b6ad4 100644
--- a/lisp/progmodes/which-func.el
+++ b/lisp/progmodes/which-func.el
@@ -182,7 +182,8 @@ and you want to simplify them for the mode line
(defconst which-func-current
'(:eval (replace-regexp-in-string
"%" "%%"
- (gethash (selected-window) which-func-table which-func-unknown))))
+ (or (gethash (selected-window) which-func-table)
+ which-func-unknown))))
;;;###autoload (put 'which-func-current 'risky-local-variable t)
(defvar which-func-mode nil