X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch-show.el;fp=emacs%2Fnotmuch-show.el;h=eb07e450f34e0c80935becac89131daac9e0ff77;hp=a210898b7e8bccf71e33d8162a02b81799ca9ff6;hb=73b8f0b8d71af395667022395b6d6bb692c3aaf2;hpb=73cc4105aa27f13464fcfdfe958e553842395789 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index a210898b..eb07e450 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -505,21 +505,17 @@ message at DEPTH in the current thread." (defun notmuch-show-insert-part-header (nth content-type declared-type &optional name comment) - (let ((button) - (base-label (concat (and name (concat name ": ")) + (let ((base-label (concat (and name (concat name ": ")) declared-type (and (not (string-equal declared-type content-type)) (concat " (as " content-type ")")) comment))) - (setq button - (insert-button - (concat "[ " base-label " ]") - :base-label base-label - :type 'notmuch-show-part-button-type - :notmuch-part-hidden nil)) - (insert "\n") - ;; return button - button)) + (prog1 (insert-button + (concat "[ " base-label " ]") + :base-label base-label + :type 'notmuch-show-part-button-type + :notmuch-part-hidden nil) + (insert "\n")))) (defun notmuch-show-toggle-part-invisibility (&optional button) (interactive)