* mm-view.el (mm-inline-text-html-render-with-w3): Don't ignore
authorShengHuo ZHU <zsh@cs.rochester.edu>
Mon, 8 Apr 2002 01:34:48 +0000 (01:34 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Mon, 8 Apr 2002 01:34:48 +0000 (01:34 +0000)
errors when debug.

lisp/ChangeLog
lisp/mm-view.el

index 959dbda..7825ae2 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-07  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * mm-view.el (mm-inline-text-html-render-with-w3): Don't ignore
+       errors when debug.
+
 2002-04-07  Josh Huber  <huber@alum.wpi.edu>
 
        * message.el (message-make-mft): Changed MFT code from using
index 2ab6898..7bf1cb1 100644 (file)
                  ;; Don't let w3 set the global version of
                  ;; this variable.
                  (fill-column fill-column))
-             (condition-case ()
+             (if (or debug-on-error debug-on-quit)
                  (w3-region (point-min) (point-max))
-               (error
-                (delete-region (point-min) (point-max))
-                (let ((b (point))
-                      (charset (mail-content-type-get
-                                (mm-handle-type handle) 'charset)))
-                  (if (or (eq charset 'gnus-decoded)
-                          (eq mail-parse-charset 'gnus-decoded))
+               (condition-case ()
+                   (w3-region (point-min) (point-max))
+                 (error
+                  (delete-region (point-min) (point-max))
+                  (let ((b (point))
+                        (charset (mail-content-type-get
+                                  (mm-handle-type handle) 'charset)))
+                    (if (or (eq charset 'gnus-decoded)
+                            (eq mail-parse-charset 'gnus-decoded))
                       (save-restriction
                         (narrow-to-region (point) (point))
                         (mm-insert-part handle)
                         (goto-char (point-max)))
-                    (insert (mm-decode-string (mm-get-part handle)
-                                              charset))))
-                (message
-                 "Error while rendering html; showing as text/plain"))))))
+                      (insert (mm-decode-string (mm-get-part handle)
+                                                charset))))
+                  (message
+                   "Error while rendering html; showing as text/plain")))))))
        (mm-handle-set-undisplayer
         handle
         `(lambda ()