(rfc2047-strip-backslashes-in-quoted-strings): Decode `\\' in quoted string
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 4 Sep 2006 01:40:59 +0000 (01:40 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 4 Sep 2006 01:40:59 +0000 (01:40 +0000)
 into `\'.

lisp/ChangeLog
lisp/rfc2047.el

index 090071a..99ce4d9 100644 (file)
@@ -1,3 +1,8 @@
+2006-09-04  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * rfc2047.el (rfc2047-strip-backslashes-in-quoted-strings): Decode `\\'
+       in quoted string into `\'.
+
 2006-09-01  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * rfc2047.el (rfc2047-quote-special-characters-in-quoted-strings):
index 647e997..221d251 100644 (file)
@@ -830,7 +830,7 @@ the decoder will fully decode each encoded-word before concatenating
 them.")
 
 (defun rfc2047-strip-backslashes-in-quoted-strings ()
-  "Strip backslashes in quoted strings.  `\\\"' and `\\\\' remain."
+  "Strip backslashes in quoted strings.  `\\\"' remains."
   (goto-char (point-min))
   (let (beg)
     (with-syntax-table (standard-syntax-table)
@@ -845,7 +845,7 @@ them.")
                  (narrow-to-region beg (1- (point)))
                  (goto-char beg)
                  (while (search-forward "\\" nil 'move)
-                   (unless (memq (char-after) '(?\" ?\\))
+                   (unless (memq (char-after) '(?\"))
                      (delete-backward-char 1))
                    (forward-char)))
                (forward-char))