diff options
Diffstat (limited to 'lisp/nxml/nxml-rap.el')
-rw-r--r-- | lisp/nxml/nxml-rap.el | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lisp/nxml/nxml-rap.el b/lisp/nxml/nxml-rap.el index ac4e9ac4cd9..398c107cf01 100644 --- a/lisp/nxml/nxml-rap.el +++ b/lisp/nxml/nxml-rap.el @@ -402,13 +402,8 @@ expected `%s'" (defun nxml-scan-error (&rest args) (signal 'nxml-scan-error args)) -(put 'nxml-scan-error - 'error-conditions - '(error nxml-error nxml-scan-error)) - -(put 'nxml-scan-error - 'error-message - "Scan over element that is not well-formed") +(define-error 'nxml-scan-error + "Scan over element that is not well-formed" 'nxml-error) (provide 'nxml-rap) |