* progmodes/which-func.el (which-func-current): Quote %

characters for mode-line processing.
This commit is contained in:
Andreas Schwab 2012-04-21 20:25:20 +02:00
parent 18edb22d4f
commit 581b67880c
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-04-21 Andreas Schwab <schwab@linux-m68k.org>
* progmodes/which-func.el (which-func-current): Quote %
characters for mode-line processing.
2012-04-21 Chong Yidong <cyd@gnu.org>
* xml.el (xml-parse-region, xml-parse-tag): Avoid errors due to

View file

@ -178,7 +178,9 @@ and you want to simplify them for the mode line
(defvar which-func-table (make-hash-table :test 'eq :weakness 'key))
(defconst which-func-current
'(:eval (gethash (selected-window) which-func-table which-func-unknown)))
'(:eval (replace-regexp-in-string
"%" "%%"
(gethash (selected-window) which-func-table which-func-unknown))))
;;;###autoload (put 'which-func-current 'risky-local-variable t)
(defvar which-func-mode nil