]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-art.el (article-treat-non-ascii): Keep text properties.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 12 Nov 2010 05:59:53 +0000 (05:59 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 12 Nov 2010 05:59:53 +0000 (05:59 +0000)
gnus.texi (Article Washing): Fix typo.

doc/misc/ChangeLog
doc/misc/gnus.texi
lisp/gnus/ChangeLog
lisp/gnus/gnus-art.el

index d878a0178557bc8e980d52924f5c1ee283ac12bc..1069a42513aa741f7ccfecffcebe6f92d17a77b8 100644 (file)
@@ -1,3 +1,7 @@
+2010-11-12  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus.texi (Article Washing): Fix typo.
+
 2010-11-11  Noorul Islam  <noorul@noorul.com>
 
        * org.texi: Fix typo
index 9afbc67877d763d4fc78d9cf80018e7ad05362e3..2bab960f0a76717b3d91ddfe9d7ba3ac0438cf35 100644 (file)
@@ -9664,8 +9664,8 @@ an attempt to provide more quoting characters.  If you see something
 like @code{\222} or @code{\264} where you're expecting some kind of
 apostrophe or quotation mark, then try this wash.
 
-@item W A
-@kindex W A (Summary)
+@item W U
+@kindex W U (Summary)
 @findex gnus-article-treat-non-ascii
 @cindex Unicode
 @cindex Non-@acronym{ASCII}
index 64752711f98524a02c31a2fc316c934132a2b5ef..11118ed1ed7a23d0aa1630153b3da1f292516fb5 100644 (file)
@@ -1,3 +1,7 @@
+2010-11-12  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-art.el (article-treat-non-ascii): Keep text properties.
+
 2010-11-11  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * mm-decode.el (mm-dissect-buffer): Pass sender's mail address to
index 82de5b46475cda9f6df800428d9b1b865162f5cd..a5d9a279ddba4285716073d22a426fdc6db670d5 100644 (file)
@@ -2130,14 +2130,18 @@ try this wash."
     (save-excursion
       (when (article-goto-body)
        (let ((inhibit-read-only t)
-             replace)
+             replace props)
          (while (not (eobp))
            (if (not (setq replace (if (featurep 'xemacs)
                                       (get-char-table (following-char) table)
                                     (aref table (following-char)))))
                (forward-char 1)
-             (delete-char 1)
-             (insert replace))))))))
+             (if (prog1
+                     (setq props (text-properties-at (point)))
+                   (delete-char 1))
+                 (add-text-properties (point) (progn (insert replace) (point))
+                                      props)
+               (insert replace)))))))))
 
 (defun article-translate-characters (from to)
   "Translate all characters in the body of the article according to FROM and TO.