emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 9d0385d: Fix problem with 8bit content-transfer-encoding in n


From: Lars Ingebrigtsen
Subject: Re: master 9d0385d: Fix problem with 8bit content-transfer-encoding in nndoc mbox files
Date: Sat, 22 Aug 2020 15:43:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> I think you want to swap the order: first erase-buffer, and then
> set-buffer-multibyte.  That's because the latter in a non-empty buffer
> can be expensive, and tis actually waste of cycles if you are going to
> erase the buffer.

Yup, I've now done this.  Looking at the code, it looks like a possibly
offensive case of defensive programming -- that buffer will be empty
when the `erase-buffer' is called, I think.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]