diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/which-func.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1b680eadc08..e208b06189e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-10-22 Takafumi Arakaki <aka.tkf@gmail.com> (tiny change) | ||
| 2 | |||
| 3 | * progmodes/which-func.el (which-func-current): The hash-table may have | ||
| 4 | an explicit nil (bug#12338). | ||
| 5 | |||
| 1 | 2012-10-22 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2012-10-22 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * electric.el (electric-pair-delete-selection-self-insert-function): | 8 | * electric.el (electric-pair-delete-selection-self-insert-function): |
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 | |||
| 182 | (defconst which-func-current | 182 | (defconst which-func-current |
| 183 | '(:eval (replace-regexp-in-string | 183 | '(:eval (replace-regexp-in-string |
| 184 | "%" "%%" | 184 | "%" "%%" |
| 185 | (gethash (selected-window) which-func-table which-func-unknown)))) | 185 | (or (gethash (selected-window) which-func-table) |
| 186 | which-func-unknown)))) | ||
| 186 | ;;;###autoload (put 'which-func-current 'risky-local-variable t) | 187 | ;;;###autoload (put 'which-func-current 'risky-local-variable t) |
| 187 | 188 | ||
| 188 | (defvar which-func-mode nil | 189 | (defvar which-func-mode nil |