[Top][All Lists]

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

[Emacs-diffs] master 679a433 2/2: Fix a `string-to-multibyte' in Gnus

From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 679a433 2/2: Fix a `string-to-multibyte' in Gnus
Date: Sat, 14 Apr 2018 17:25:31 -0400 (EDT)

branch: master
commit 679a433744ca550a079ff47e1964ff558965b51a
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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?
 lisp/gnus/gnus-art.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index c153d94..0b349ea 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."
             ;; equivalent of string-make-multibyte which amount to decoding
             ;; with locale-coding-system, causing failure of
             ;; subsequent decoding.
-            (insert (string-to-multibyte
-                     (with-current-buffer gnus-original-article-buffer
-                       (buffer-substring (point-min) (point-max)))))
+            (insert (with-current-buffer gnus-original-article-buffer
+                      (buffer-substring (point-min) (point-max))))
           ;; Check the backlog.
           ((and gnus-keep-backlog

reply via email to

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