diff options
Diffstat (limited to 'lisp/progmodes/which-func.el')
-rw-r--r-- | lisp/progmodes/which-func.el | 3 |
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 |