X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/c99904740ebcfde5533c29798618b968d56c0bf4..95a2cb24b0697558e6629460d8bc693b394f0138:/lisp/nxml/nxml-rap.el diff --git a/lisp/nxml/nxml-rap.el b/lisp/nxml/nxml-rap.el index ac4e9ac4cd..e6857a9faf 100644 --- a/lisp/nxml/nxml-rap.el +++ b/lisp/nxml/nxml-rap.el @@ -1,9 +1,9 @@ ;;; nxml-rap.el --- low-level support for random access parsing for nXML mode -;; Copyright (C) 2003-2004, 2007-2013 Free Software Foundation, Inc. +;; Copyright (C) 2003-2004, 2007-2015 Free Software Foundation, Inc. ;; Author: James Clark -;; Keywords: XML +;; Keywords: wp, hypermedia, languages, XML ;; This file is part of GNU Emacs. @@ -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)