auth-source.el (auth-source-format-prompt): Don't get confused by any "\\" in replace...
authorGabor Vida <gabor.v.vida@ericsson.com>
Thu, 7 Feb 2013 22:22:37 +0000 (22:22 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 7 Feb 2013 22:22:37 +0000 (22:22 +0000)
lisp/ChangeLog
lisp/auth-source.el

index 66d0fc9..76595f3 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-07  Gábor Vida  <gabor.v.vida@ericsson.com>  (tiny change)
+
+       * auth-source.el (auth-source-format-prompt): Don't get confused by
+       any "\" in replacement text.  (Bug#13637)
+
 2013-01-30  Christopher Schmidt  <christopher@ch.ristopher.com>
 
        * gnus-int.el (gnus-backend-trace-elapsed): New variable.
index 8144d5a..f40d32a 100644 (file)
@@ -923,7 +923,7 @@ while \(:host t) would find all host entries."
       (when (and c v)
         (setq prompt (replace-regexp-in-string (format "%%%c" c)
                                                (format "%s" v)
-                                               prompt)))))
+                                               prompt nil t)))))
   prompt)
 
 (defun auth-source-ensure-strings (values)