summaryrefslogtreecommitdiff
path: root/lisp/nxml/nxml-util.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/nxml/nxml-util.el')
-rw-r--r--lisp/nxml/nxml-util.el9
1 files changed, 2 insertions, 7 deletions
diff --git a/lisp/nxml/nxml-util.el b/lisp/nxml/nxml-util.el
index 6ba6d21f7ed..75479160cbb 100644
--- a/lisp/nxml/nxml-util.el
+++ b/lisp/nxml/nxml-util.el
@@ -101,13 +101,8 @@ This is the inverse of `nxml-make-namespace'."
(signal (or error-symbol 'nxml-file-parse-error)
(list file pos message)))
-(put 'nxml-file-parse-error
- 'error-conditions
- '(error nxml-file-parse-error))
-
-(put 'nxml-parse-file-error
- 'error-message
- "Error parsing file")
+(define-error 'nxml-error nil)
+(define-error 'nxml-file-parse-error "Error parsing file" 'nxml-error)
(provide 'nxml-util)