aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2018-04-14 23:25:01 +0200
committerLars Ingebrigtsen2018-04-14 23:25:01 +0200
commit679a433744ca550a079ff47e1964ff558965b51a (patch)
treed6a6e9e01382d6bbc8898e4ffc3b47c4f4ccc61c
parent9f767b3ec83a89706bceb5e0a9c778092a7dfe5d (diff)
downloademacs-679a433744ca550a079ff47e1964ff558965b51a.tar.gz
emacs-679a433744ca550a079ff47e1964ff558965b51a.zip
Fix a `string-to-multibyte' in Gnus
* lisp/gnus/gnus-art.el (gnus-request-article-this-buffer): The original article buffer is multibyte, and we're inserting into the article buffer, which is also multibyte, so the `string-to-multibyte' here should be unnecessary?
-rw-r--r--lisp/gnus/gnus-art.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index c153d94f3c3..0b349ea2d22 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -7037,9 +7037,8 @@ If given a prefix, show the hidden text instead."
7037 ;; equivalent of string-make-multibyte which amount to decoding 7037 ;; equivalent of string-make-multibyte which amount to decoding
7038 ;; with locale-coding-system, causing failure of 7038 ;; with locale-coding-system, causing failure of
7039 ;; subsequent decoding. 7039 ;; subsequent decoding.
7040 (insert (string-to-multibyte 7040 (insert (with-current-buffer gnus-original-article-buffer
7041 (with-current-buffer gnus-original-article-buffer 7041 (buffer-substring (point-min) (point-max))))
7042 (buffer-substring (point-min) (point-max)))))
7043 'article) 7042 'article)
7044 ;; Check the backlog. 7043 ;; Check the backlog.
7045 ((and gnus-keep-backlog 7044 ((and gnus-keep-backlog