[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master a983bf0 1/2: Fix compilation warning in rmailmm
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master a983bf0 1/2: Fix compilation warning in rmailmm |
Date: |
Fri, 14 Jun 2019 08:05:38 -0400 (EDT) |
branch: master
commit a983bf0c4997c59f813e90be17537548909a1052
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
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 af52813..95977e8 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)))