emacs-diffs
[Top][All Lists]
Advanced

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

master 3c443e9: Make previous mml-expand-html-into-multipart-related fix


From: Lars Ingebrigtsen
Subject: master 3c443e9: Make previous mml-expand-html-into-multipart-related fix more general
Date: Sat, 14 Mar 2020 07:45:16 -0400 (EDT)

branch: master
commit 3c443e990f933409ab6ab01a5a20097ad86929fd
Author: Jeremy Compostella <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Make previous mml-expand-html-into-multipart-related fix more general
    
    * lisp/gnus/mml.el (mml-expand-html-into-multipart-related): This is
    function is now called by a recursive
    engine (mml-expand-all-html-into-multipart-related).  The structure of
    the returned value should be identical between an untouched part and a
    expanded multipart (bug#39230).
---
 lisp/gnus/mml.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el
index 3d86c5b..2006837 100644
--- a/lisp/gnus/mml.el
+++ b/lisp/gnus/mml.el
@@ -547,8 +547,7 @@ type detected."
                        new-parts))
                (setq cid (1+ cid)))))))
       ;; We have local images that we want to include.
-      (if (not new-parts)
-         (list cont)
+      (when new-parts
        (setcdr (assq 'contents cont) (buffer-string))
        (setq cont
              (nconc (list 'multipart (cons 'type "related"))
@@ -561,8 +560,8 @@ type detected."
                                       (nth 1 new-part)
                                       (nth 2 new-part))
                                    (id . ,(concat "<" (nth 0 new-part)
-                                                  ">")))))))
-       cont))))
+                                                  ">"))))))))
+      cont)))
 
 (autoload 'image-property "image")
 



reply via email to

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