From ce599aeda0c2e9323f8bdb19a9be7c520765b736 Mon Sep 17 00:00:00 2001 From: ueno Date: Sun, 20 Feb 2000 06:06:03 +0000 Subject: [PATCH] * mime-edit.el (mime-edit-define-charset): Handle 'mime-charset-comment. --- mime-edit.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mime-edit.el b/mime-edit.el index a8a38ff..94cc53f 100644 --- a/mime-edit.el +++ b/mime-edit.el @@ -524,7 +524,6 @@ If encoding is nil, it is determined from its contents." "A string formatted version of mime-transfer-level") (make-variable-buffer-local 'mime-transfer-level-string) - ;;; @@ about content transfer encoding (defvar mime-content-transfer-encoding-priority-list @@ -1400,7 +1399,11 @@ Optional argument ENCODING specifies an encoding method such as base64." (mime-create-tag (mime-edit-set-parameter (mime-edit-get-contype tag) - "charset" (upcase (symbol-name charset))) + "charset" + (let ((comment (get charset 'mime-charset-comment))) + (if comment + (concat (upcase (symbol-name charset)) " (" comment ")") + (upcase (symbol-name charset))))) (mime-edit-get-encoding tag))) )))) -- 1.7.10.4