aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/gnus/message.el7
-rw-r--r--lisp/gnus/mm-bodies.el4
-rw-r--r--lisp/gnus/mm-decode.el2
-rw-r--r--lisp/gnus/mm-util.el4
-rw-r--r--lisp/gnus/nnmail.el2
5 files changed, 10 insertions, 9 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index a5f1dfb103f..33c5e2cedbf 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -1351,7 +1351,8 @@ If nil, Message won't auto-save."
1351 :link '(custom-manual "(message)Various Message Variables") 1351 :link '(custom-manual "(message)Various Message Variables")
1352 :type '(choice directory (const :tag "Don't auto-save" nil))) 1352 :type '(choice directory (const :tag "Don't auto-save" nil)))
1353 1353
1354(defcustom message-default-charset (and (not (mm-multibyte-p)) 'iso-8859-1) 1354(defcustom message-default-charset (and (not enable-multibyte-characters)
1355 'iso-8859-1)
1355 "Default charset used in non-MULE Emacsen. 1356 "Default charset used in non-MULE Emacsen.
1356If nil, you might be asked to input the charset." 1357If nil, you might be asked to input the charset."
1357 :version "21.1" 1358 :version "21.1"
@@ -4294,7 +4295,7 @@ conformance."
4294 (point-max)))) 4295 (point-max))))
4295 (setq char (char-after))) 4296 (setq char (char-after)))
4296 (when (or (< char 128) 4297 (when (or (< char 128)
4297 (and (mm-multibyte-p) 4298 (and enable-multibyte-characters
4298 (memq (char-charset char) 4299 (memq (char-charset char)
4299 '(eight-bit-control eight-bit-graphic 4300 '(eight-bit-control eight-bit-graphic
4300 ;; Emacs 23, Bug#1770: 4301 ;; Emacs 23, Bug#1770:
@@ -4326,7 +4327,7 @@ conformance."
4326 (while (not (eobp)) 4327 (while (not (eobp))
4327 (when (let ((char (char-after))) 4328 (when (let ((char (char-after)))
4328 (or (< char 128) 4329 (or (< char 128)
4329 (and (mm-multibyte-p) 4330 (and enable-multibyte-characters
4330 ;; FIXME: Wrong for Emacs 23 (unicode) and for 4331 ;; FIXME: Wrong for Emacs 23 (unicode) and for
4331 ;; things like undecodable utf-8 (in Emacs 21?). 4332 ;; things like undecodable utf-8 (in Emacs 21?).
4332 ;; Should at least use find-coding-systems-region. 4333 ;; Should at least use find-coding-systems-region.
diff --git a/lisp/gnus/mm-bodies.el b/lisp/gnus/mm-bodies.el
index faf887cbb9d..e292dac16fe 100644
--- a/lisp/gnus/mm-bodies.el
+++ b/lisp/gnus/mm-bodies.el
@@ -262,7 +262,7 @@ decoding. If it is nil, default to `mail-parse-charset'."
262 (setq coding-system 262 (setq coding-system
263 (mm-charset-to-coding-system mail-parse-charset))) 263 (mm-charset-to-coding-system mail-parse-charset)))
264 (when (and charset coding-system 264 (when (and charset coding-system
265 (mm-multibyte-p) 265 enable-multibyte-characters
266 (or (not (eq coding-system 'ascii)) 266 (or (not (eq coding-system 'ascii))
267 (setq coding-system mail-parse-charset))) 267 (setq coding-system mail-parse-charset)))
268 (decode-coding-region (point-min) (point-max) coding-system)) 268 (decode-coding-region (point-min) (point-max) coding-system))
@@ -289,7 +289,7 @@ decoding. If it is nil, default to `mail-parse-charset'."
289 (setq coding-system 289 (setq coding-system
290 (mm-charset-to-coding-system mail-parse-charset))) 290 (mm-charset-to-coding-system mail-parse-charset)))
291 (when (and charset coding-system 291 (when (and charset coding-system
292 (mm-multibyte-p) 292 enable-multibyte-characters
293 (or (not (eq coding-system 'ascii)) 293 (or (not (eq coding-system 'ascii))
294 (setq coding-system mail-parse-charset))) 294 (setq coding-system mail-parse-charset)))
295 (decode-coding-string string coding-system))) 295 (decode-coding-string string coding-system)))
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el
index 18c5837dd54..3e6883b2a4b 100644
--- a/lisp/gnus/mm-decode.el
+++ b/lisp/gnus/mm-decode.el
@@ -760,7 +760,7 @@ MIME-Version header before proceeding."
760(defun mm-copy-to-buffer () 760(defun mm-copy-to-buffer ()
761 "Copy the contents of the current buffer to a fresh buffer." 761 "Copy the contents of the current buffer to a fresh buffer."
762 (let ((obuf (current-buffer)) 762 (let ((obuf (current-buffer))
763 (mb (mm-multibyte-p)) 763 (mb enable-multibyte-characters)
764 beg) 764 beg)
765 (goto-char (point-min)) 765 (goto-char (point-min))
766 (search-forward-regexp "^\n" nil t) 766 (search-forward-regexp "^\n" nil t)
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el
index 42c2f3ab155..25b156803a6 100644
--- a/lisp/gnus/mm-util.el
+++ b/lisp/gnus/mm-util.el
@@ -559,7 +559,7 @@ nil means ASCII, a single-element list represents an appropriate MIME
559charset, and a longer list means no appropriate charset." 559charset, and a longer list means no appropriate charset."
560 (let (charsets) 560 (let (charsets)
561 ;; The return possibilities of this function are a mess... 561 ;; The return possibilities of this function are a mess...
562 (or (and (mm-multibyte-p) 562 (or (and enable-multibyte-characters
563 mm-use-find-coding-systems-region 563 mm-use-find-coding-systems-region
564 ;; Find the mime-charset of the most preferred coding 564 ;; Find the mime-charset of the most preferred coding
565 ;; system that has one. 565 ;; system that has one.
@@ -628,7 +628,7 @@ charset, and a longer list means no appropriate charset."
628(defun mm-find-charset-region (b e) 628(defun mm-find-charset-region (b e)
629 "Return a list of Emacs charsets in the region B to E." 629 "Return a list of Emacs charsets in the region B to E."
630 (cond 630 (cond
631 ((mm-multibyte-p) 631 (enable-multibyte-characters
632 ;; Remove composition since the base charsets have been included. 632 ;; Remove composition since the base charsets have been included.
633 ;; Remove eight-bit-*, treat them as ascii. 633 ;; Remove eight-bit-*, treat them as ascii.
634 (let ((css (find-charset-region b e))) 634 (let ((css (find-charset-region b e)))
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el
index d751f182e30..08db5ab5b69 100644
--- a/lisp/gnus/nnmail.el
+++ b/lisp/gnus/nnmail.el
@@ -1249,7 +1249,7 @@ Return the number of characters in the body."
1249 (progn (forward-line 1) (point)))) 1249 (progn (forward-line 1) (point))))
1250 (insert (format "Xref: %s" (system-name))) 1250 (insert (format "Xref: %s" (system-name)))
1251 (while group-alist 1251 (while group-alist
1252 (insert (if (mm-multibyte-p) 1252 (insert (if enable-multibyte-characters
1253 (format " %s:%d" (caar group-alist) (cdar group-alist)) 1253 (format " %s:%d" (caar group-alist) (cdar group-alist))
1254 (encode-coding-string 1254 (encode-coding-string
1255 (format " %s:%d" (caar group-alist) (cdar group-alist)) 1255 (format " %s:%d" (caar group-alist) (cdar group-alist))