an explicit nil.
Fixes: debbugs:12338
+2012-10-22 Takafumi Arakaki <aka.tkf@gmail.com> (tiny change)
+
+ * progmodes/which-func.el (which-func-current): The hash-table may have
+ an explicit nil (bug#12338).
+
2012-10-22 Stefan Monnier <monnier@iro.umontreal.ca>
* electric.el (electric-pair-delete-selection-self-insert-function):
(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