Skip to content

Commit

Permalink
Fix issue with mml-preview from outside Gnus
Browse files Browse the repository at this point in the history
* lisp/gnus/gnus-art.el (gnus-mime-display-alternative): Be more
resilient when running from outside Gnus.
  • Loading branch information
larsmagne committed Jul 30, 2021
1 parent 4053bd5 commit 0bd1346
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lisp/gnus/gnus-art.el
Original file line number Diff line number Diff line change
Expand Up @@ -6238,8 +6238,9 @@ If nil, don't show those extra buttons."
(gnus-display-mime preferred)
(let ((mail-parse-charset gnus-newsgroup-charset)
(mail-parse-ignored-charsets
(with-current-buffer gnus-summary-buffer
gnus-newsgroup-ignored-charsets)))
(and (buffer-live-p gnus-summary-buffer)
(with-current-buffer gnus-summary-buffer
gnus-newsgroup-ignored-charsets))))
(gnus-bind-mm-vars (mm-display-part preferred))
;; Do highlighting.
(save-excursion
Expand Down

0 comments on commit 0bd1346

Please sign in to comment.