Function: nxml-with-degradation-on-error

nxml-with-degradation-on-error is a macro defined in nxml-util.el.gz.

Signature

(nxml-with-degradation-on-error CONTEXT &rest BODY)

Source Code

;; Defined in /usr/src/emacs/lisp/nxml/nxml-util.el.gz
(defmacro nxml-with-degradation-on-error (context &rest body)
  (declare (indent 1) (debug t))
  (if (not nxml-debug)
      (let ((error-symbol (make-symbol "err")))
        `(condition-case ,error-symbol
             (progn ,@body)
           (error
            (nxml-degrade ,context ,error-symbol))))
    `(progn ,@body)))