]> git.eshelyaron.com Git - emacs.git/commitdiff
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-256
authorMiles Bader <miles@gnu.org>
Wed, 13 Apr 2005 21:38:06 +0000 (21:38 +0000)
committerMiles Bader <miles@gnu.org>
Wed, 13 Apr 2005 21:38:06 +0000 (21:38 +0000)
Merge from gnus--rel--5.10

Patches applied:

 * gnus--rel--5.10  (patch 65)

   - Update from CVS

2005-04-13  Katsumi Yamaoka  <yamaoka@jpl.org>

   * lisp/gnus/gnus-art.el (gnus-mime-inline-part): Use mm-string-to-multibyte.
   * lisp/gnus/qp.el (quoted-printable-encode-region): Use mm-string-to-multibyte.

lisp/gnus/ChangeLog
lisp/gnus/gnus-art.el
lisp/gnus/qp.el

index aecd7b20c047237de9cefdf919fe62292d52c98f..2ec1e0bc62e5b4d785b1000280f4d1842070c0ad 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-13  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-art.el (gnus-mime-inline-part): Use mm-string-to-multibyte.
+       * qp.el (quoted-printable-encode-region): Use mm-string-to-multibyte.
+
 2005-04-13  Miles Bader  <miles@gnu.org>
 
        * mm-util.el (mm-string-to-multibyte): Use Gnus trunk definition.
 
 2004-11-26  Katsumi Yamaoka  <yamaoka@jpl.org>
 
-       * lpath.el: Remove bbdb-create-internal, bbdb-records,
-       spam-BBDB-register-routine and spam-enter-ham-BBDB.
-
        * nnrss.el (nnrss-string-as-multibyte): Redefine it as a macro in
        order to silence the byte compiler.
 
index fdf3aad70fea819bf376a62b2e4c293bd0840e44..30ac3c6ccd8cf32eaf2215aa5d8971b6f9c948a7 100644 (file)
@@ -4358,21 +4358,16 @@ are decompressed."
                    (mm-read-coding-system "Charset: "))))
         (t
          (if (mm-handle-undisplayer handle)
-             (mm-remove-part handle))
-         (setq contents
-               (if (fboundp 'string-to-multibyte)
-                   (string-to-multibyte contents)
-                 (mapconcat
-                  (lambda (ch) (mm-string-as-multibyte (char-to-string ch)))
-                  contents "")))))
+             (mm-remove-part handle))))
        (forward-line 2)
-       (mm-insert-inline handle
-                         (if (and charset
-                                  (setq charset (mm-charset-to-coding-system
-                                                 charset))
-                                  (not (eq charset 'ascii)))
-                             (mm-decode-coding-string contents charset)
-                           contents))
+       (mm-insert-inline
+        handle
+        (if (and charset
+                 (setq charset (mm-charset-to-coding-system
+                                charset))
+                 (not (eq charset 'ascii)))
+            (mm-decode-coding-string contents charset)
+          (mm-string-to-multibyte contents)))
        (goto-char b)))))
 
 (defun gnus-mime-view-part-as-charset (&optional handle arg)
index 6a27b20eb1effc88c9e233228c0728a64496f7f2..3789e0efda8c34502567a92c99328d5ec7c6ed6d 100644 (file)
@@ -100,15 +100,10 @@ You should probably avoid non-ASCII characters in this arg.
 If `mm-use-ultra-safe-encoding' is set, fold lines unconditionally and
 encode lines starting with \"From\"."
   (interactive "r")
-  (save-excursion
-    (goto-char from)
-    (if (fboundp 'string-to-multibyte) ; Emacs 22
-       (if (re-search-forward (string-to-multibyte "[^\x0-\x7f\x80-\xff]")
-                              to t)
-           ;; Fixme: This is somewhat misleading.
-           (error "Multibyte character in QP encoding region"))
-      (if (re-search-forward (mm-string-as-multibyte "[^\0-\377]") to t)
-         (error "Multibyte character in QP encoding region"))))
+  (goto-char from)
+  (if (re-search-forward (mm-string-to-multibyte "[^\x0-\x7f\x80-\xff]")
+                        to t)
+      (error "Multibyte character in QP encoding region"))
   (unless class
     ;; Avoid using 8bit characters. = is \075.
     ;; Equivalent to "^\000-\007\013\015-\037\200-\377="