aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2009-01-31 18:53:50 +0000
committerEli Zaretskii2009-01-31 18:53:50 +0000
commit062ca6f69ab2b8f1ddac138d8b212e003a13e330 (patch)
treef12ffde486863fa760c6665bff2893f3260c4bb2 /lisp
parentae42a852883b41352ef47285cf33571c6bed1cc3 (diff)
downloademacs-062ca6f69ab2b8f1ddac138d8b212e003a13e330.tar.gz
emacs-062ca6f69ab2b8f1ddac138d8b212e003a13e330.zip
(rmail-redecode-body): Use eight-bit instead of obsolete
eight-bit-control and eight-bit-graphic.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/mail/rmail.el13
2 files changed, 11 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 407c34cbfcc..d69bd444b3a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-01-31 Eli Zaretskii <eliz@gnu.org>
2
3 * mail/rmail.el (rmail-redecode-body): Use eight-bit instead of
4 obsolete eight-bit-control and eight-bit-graphic.
5
12009-01-31 Stefan Monnier <monnier@iro.umontreal.ca> 62009-01-31 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * emacs-lisp/elp.el (elp-results-symname-map): Add follow-link. 8 * emacs-lisp/elp.el (elp-results-symname-map): Add follow-link.
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 8ea6cd2dbba..b2bd29c1991 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -2722,14 +2722,13 @@ iso-8859, koi8-r, etc."
2722 (not (coding-system-equal 2722 (not (coding-system-equal
2723 (coding-system-base old-coding) 2723 (coding-system-base old-coding)
2724 (coding-system-base coding))) 2724 (coding-system-base coding)))
2725 ;; If the body includes only eight-bit-* 2725 ;; If the body includes only eight-bit characters,
2726 ;; characters, encoding might fail, e.g. with 2726 ;; encoding might fail, e.g. with UTF-8, and isn't
2727 ;; UTF-8, and isn't needed anyway. 2727 ;; needed anyway.
2728 (> (length (delq 'ascii 2728 (> (length (delq 'ascii
2729 (delq 'eight-bit-graphic 2729 (delq 'eight-bit
2730 (delq 'eight-bit-control 2730 (find-charset-region
2731 (find-charset-region 2731 (point-min) (point-max)))))
2732 (point-min) (point-max))))))
2733 0) 2732 0)
2734 (encode-coding-region (point-min) (point-max) old-coding)) 2733 (encode-coding-region (point-min) (point-max) old-coding))
2735 (decode-coding-region (point-min) (point-max) coding) 2734 (decode-coding-region (point-min) (point-max) coding)