Merge pull request #1374 from Chris00/prepare-display

mu4e: Increase `max-specpdl-size' when decoding messages
This commit is contained in:
Dirk-Jan C. Binnema 2019-04-27 08:21:10 +03:00 committed by GitHub
commit d979efb9c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -247,6 +247,11 @@ and `mu4e-headers-visible-columns'."
(const :tag "Don't split" nil))
:group 'mu4e-headers)
(defcustom mu4e-view-max-specpdl-size 4096
"The value of `max-specpdl-size' for displaying messages with Gnus."
:type 'integer
:group 'mu4e-view)
(defcustom mu4e-view-show-images nil
"If non-nil, automatically display images in the view buffer."
:type 'boolean

View File

@ -375,7 +375,8 @@ article-mode."
gnus-summary-buffer (get-buffer-create " *appease-gnus*")
gnus-original-article-buffer (current-buffer))
(run-hooks 'gnus-article-decode-hook)
(gnus-article-prepare-display)
(let ((max-specpdl-size mu4e-view-max-specpdl-size))
(gnus-article-prepare-display))
(mu4e-view-mode)
(setq mu4e~view-message msg)
(setq gnus-article-decoded-p gnus-article-decode-hook)