From b5ae30598bc72ca95bdb56db70911fb8601547e4 Mon Sep 17 00:00:00 2001 From: Katsumi Yamaoka Date: Wed, 30 Apr 2014 04:20:56 +0000 Subject: [PATCH] gnus-art.el (gnus-mm-display-part): Fix previous commit --- lisp/gnus-art.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/gnus-art.el b/lisp/gnus-art.el index 7f987b822..0b2d17fe9 100644 --- a/lisp/gnus-art.el +++ b/lisp/gnus-art.el @@ -5680,7 +5680,11 @@ all parts." (delete-region (previous-single-property-change end 'gnus-data) end)) (gnus-insert-mime-button handle id (list (mm-handle-displayed-p handle))) - (delete-char -1) + (let ((pt (point))) + (if (search-backward "\n\n" nil t) + (goto-char pt) + ;; We're in the article header. + (delete-char -1))) (goto-char point)) retval)) -- 2.25.1