]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/net/eww.el (eww-update-header-line-format): Quote % characters
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 21 Jun 2013 07:52:47 +0000 (07:52 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 21 Jun 2013 07:52:47 +0000 (07:52 +0000)
lisp/ChangeLog
lisp/net/eww.el

index fcc2c2ae3823a3f0a152f1557b3da073dd0fddb2..f258f37f1d679bf6f4bec02b9c18fd01aa7aa09d 100644 (file)
@@ -1,3 +1,7 @@
+2013-06-21  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * net/eww.el (eww-update-header-line-format): Quote % characters.
+
 2013-06-21  Glenn Morris  <rgm@gnu.org>
 
        * play/cookie1.el (cookie): New custom group.
index b09d8732afb2379623280610f786cca12f9c62ec..ad19758b4a61fc1d66866f72ff2eb7d548dcc1bf 100644 (file)
 
 (defun eww-update-header-line-format ()
   (if eww-header-line-format
-      (setq header-line-format (format-spec eww-header-line-format
-                                            `((?u . ,eww-current-url)
-                                              (?t . ,eww-current-title))))
+      (setq header-line-format
+           (replace-regexp-in-string
+            "%" "%%"
+            (format-spec eww-header-line-format
+                         `((?u . ,eww-current-url)
+                           (?t . ,eww-current-title)))))
     (setq header-line-format nil)))
 
 (defun eww-tag-title (cont)