emacs-devel
[Top][All Lists]
Advanced

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

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


From: Eli Zaretskii
Subject: master 9d0385d: Fix problem with 8bit content-transfer-encoding in nndoc mbox files
Date: Fri, 21 Aug 2020 22:47:14 +0300

> --- a/lisp/gnus/nndoc.el
> +++ b/lisp/gnus/nndoc.el
> @@ -352,6 +352,7 @@ from the document.")
>           nndoc-group-alist)
>        (setq nndoc-dissection-alist nil)
>        (with-current-buffer nndoc-current-buffer
> +     (set-buffer-multibyte nil)
>       (erase-buffer)
>       (condition-case error
>           (if (and (stringp nndoc-address)
> 

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.



reply via email to

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