From a983bf0c4997c59f813e90be17537548909a1052 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 14 Jun 2019 13:30:13 +0200 Subject: [PATCH] Fix compilation warning in rmailmm * lisp/mail/rmailmm.el (rmail-mime-insert-bulk): Remove apparently superfluous call to string-as-unibyte -- the buffer should be unibyte already at this point. --- lisp/mail/rmailmm.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el index af528135ccb..95977e826d7 100644 --- a/lisp/mail/rmailmm.el +++ b/lisp/mail/rmailmm.el @@ -836,7 +836,8 @@ directly." size (car bulk-data)) (if (stringp (aref body 0)) (setq data (aref body 0)) - (setq data (string-as-unibyte (buffer-string))) + (setq data (buffer-string)) + (cl-assert (not (multibyte-string-p data))) (aset body 0 data) (rmail-mime-set-bulk-data entity) (delete-region (point-min) (point-max))) -- 2.39.5