diff options
| author | Miles Bader | 2005-08-05 08:48:40 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-08-05 08:48:40 +0000 |
| commit | 11e22c4a01e2535ad784e0d122a65837a13ec71c (patch) | |
| tree | a3159549d49d3f75ede9c448f1383599d93cd1cf /lisp | |
| parent | 97f78c9b71b22ef2a09db90f38512346652583fa (diff) | |
| download | emacs-11e22c4a01e2535ad784e0d122a65837a13ec71c.tar.gz emacs-11e22c4a01e2535ad784e0d122a65837a13ec71c.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-513
Merge from gnus--rel--5.10
Patches applied:
* gnus--rel--5.10 (patch 103)
- Update from CVS
2005-08-05 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/mm-bodies.el (mm-encode-body): Use coding system rather than
charset to encode text.
* lisp/gnus/mm-util.el (mm-find-mime-charset-region): Attempt to reduce the
number of charsets if utf-8 is available (XEmacs).
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/gnus/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/gnus/mm-bodies.el | 5 | ||||
| -rw-r--r-- | lisp/gnus/mm-util.el | 11 |
3 files changed, 22 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 0efec1e14c1..9f5ee5e1e33 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2005-08-05 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * mm-bodies.el (mm-encode-body): Use coding system rather than | ||
| 4 | charset to encode text. | ||
| 5 | |||
| 6 | * mm-util.el (mm-find-mime-charset-region): Attempt to reduce the | ||
| 7 | number of charsets if utf-8 is available (XEmacs). | ||
| 8 | |||
| 1 | 2005-08-04 Lars Magne Ingebrigtsen <larsi@gnus.org> | 9 | 2005-08-04 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 10 | ||
| 3 | * gnus-art.el (article-unsplit-urls): Don't anchor urls to the | 11 | * gnus-art.el (article-unsplit-urls): Don't anchor urls to the |
diff --git a/lisp/gnus/mm-bodies.el b/lisp/gnus/mm-bodies.el index f58a840fbdd..23900d0cbec 100644 --- a/lisp/gnus/mm-bodies.el +++ b/lisp/gnus/mm-bodies.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; mm-bodies.el --- Functions for decoding MIME things | 1 | ;;; mm-bodies.el --- Functions for decoding MIME things |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004 | 3 | ;; Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2005 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> |
| @@ -95,7 +95,8 @@ If no encoding was done, nil is returned." | |||
| 95 | (save-excursion | 95 | (save-excursion |
| 96 | (if charset | 96 | (if charset |
| 97 | (progn | 97 | (progn |
| 98 | (mm-encode-coding-region (point-min) (point-max) charset) | 98 | (mm-encode-coding-region (point-min) (point-max) |
| 99 | (mm-charset-to-coding-system charset)) | ||
| 99 | charset) | 100 | charset) |
| 100 | (goto-char (point-min)) | 101 | (goto-char (point-min)) |
| 101 | (let ((charsets (mm-find-mime-charset-region (point-min) (point-max) | 102 | (let ((charsets (mm-find-mime-charset-region (point-min) (point-max) |
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el index a57389f59c4..512fee70863 100644 --- a/lisp/gnus/mm-util.el +++ b/lisp/gnus/mm-util.el | |||
| @@ -766,6 +766,17 @@ charset, and a longer list means no appropriate charset." | |||
| 766 | (if (and (memq 'iso-2022-jp-2 charsets) | 766 | (if (and (memq 'iso-2022-jp-2 charsets) |
| 767 | (memq 'iso-2022-jp-2 hack-charsets)) | 767 | (memq 'iso-2022-jp-2 hack-charsets)) |
| 768 | (setq charsets (delq 'iso-2022-jp charsets))) | 768 | (setq charsets (delq 'iso-2022-jp charsets))) |
| 769 | ;; Attempt to reduce the number of charsets if utf-8 is available. | ||
| 770 | (if (and (featurep 'xemacs) | ||
| 771 | (> (length charsets) 1) | ||
| 772 | (mm-coding-system-p 'utf-8)) | ||
| 773 | (let ((mm-coding-system-priorities | ||
| 774 | (cons 'utf-8 mm-coding-system-priorities))) | ||
| 775 | (setq charsets | ||
| 776 | (mm-delete-duplicates | ||
| 777 | (mapcar 'mm-mime-charset | ||
| 778 | (delq 'ascii | ||
| 779 | (mm-find-charset-region b e))))))) | ||
| 769 | charsets)) | 780 | charsets)) |
| 770 | 781 | ||
| 771 | (defmacro mm-with-unibyte-buffer (&rest forms) | 782 | (defmacro mm-with-unibyte-buffer (&rest forms) |