]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-show.el
emacs: Honor debug-on-error for part renderers
[notmuch] / emacs / notmuch-show.el
index f6ca827e0525933fa8fc20a0e434f1bf9df58353..df10d4bad93b3936c00461194774cef4214725c1 100644 (file)
@@ -785,7 +785,10 @@ message at DEPTH in the current thread."
     (while (and handlers
                (not (condition-case err
                         (funcall (car handlers) msg part content-type nth depth button)
-                      (error (progn
+                      ;; Specifying `debug' here lets the debugger
+                      ;; run if `debug-on-error' is non-nil.
+                      ((debug error)
+                       (progn
                                (insert "!!! Bodypart insert error: ")
                                (insert (error-message-string err))
                                (insert " !!!\n") nil)))))