(mm-find-mime-charset-region): Don't do Latin-9 hack
authorJesper Harder <harder@ifa.au.dk>
Mon, 6 Jan 2003 04:31:23 +0000 (04:31 +0000)
committerJesper Harder <harder@ifa.au.dk>
Mon, 6 Jan 2003 04:31:23 +0000 (04:31 +0000)
if we don't need to.
(mm-iso-8859-x-to-15-region): Fix misplaced parenthesis.

lisp/ChangeLog
lisp/mm-util.el

index 89ad450..3891842 100644 (file)
@@ -1,3 +1,9 @@
+2003-01-06  Jesper Harder  <harder@ifa.au.dk>
+
+       * mm-util.el (mm-find-mime-charset-region): Don't do Latin-9 hack
+       if we don't need to.
+       (mm-iso-8859-x-to-15-region): Fix misplaced parenthesis.
+
 2003-01-06  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-group.el (gnus-group-make-web-group): Pass the select
index 9c9ba85..3ee2493 100644 (file)
@@ -493,8 +493,8 @@ If the charset is `composition', return the actual one."
              (forward-char))
             (t
              (insert-before-markers (prog1 (+ c (car (cdr item)))
-                                      (delete-char 1))))
-           (skip-chars-forward "\0-\177"))))
+                                      (delete-char 1)))))
+           (skip-chars-forward "\0-\177")))
        (not inconvertible))))
 
 (defun mm-sort-coding-systems-predicate (a b)
@@ -532,7 +532,8 @@ charset, and a longer list means no appropriate charset."
               (mapcar 'mm-mime-charset
                       (delq 'ascii
                             (mm-find-charset-region b e))))))
-    (if (and (memq 'iso-8859-15 charsets)
+    (if (and (> (length charsets) 1)
+            (memq 'iso-8859-15 charsets)
             (memq 'iso-8859-15 hack-charsets)
             (save-excursion (mm-iso-8859-x-to-15-region b e)))
        (mapcar (lambda (x) (setq charsets (delq (car x) charsets)))