X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/2adaf05797dbf20e645f0357dcf22fe308ae7bbe..7e09ef09a479731d01b1ca46e94ddadd73ac98e3:/lisp/nxml/xsd-regexp.el diff --git a/lisp/nxml/xsd-regexp.el b/lisp/nxml/xsd-regexp.el index 64ed5f62cf..7b1e616558 100644 --- a/lisp/nxml/xsd-regexp.el +++ b/lisp/nxml/xsd-regexp.el @@ -1,9 +1,9 @@ ;;; xsd-regexp.el --- translate W3C XML Schema regexps to Emacs regexps -;; Copyright (C) 2003, 2007, 2008, 2009 Free Software Foundation, Inc. +;; Copyright (C) 2003, 2007-2015 Free Software Foundation, Inc. ;; Author: James Clark -;; Keywords: XML, regexp +;; Keywords: wp, hypermedia, languages, XML, regexp ;; This file is part of GNU Emacs. @@ -49,7 +49,7 @@ ;; Unicode character means a character in one of the Mule charsets ;; ascii, latin-iso8859-1, mule-unicode-0100-24ff, ;; mule-unicode-2500-33ff, mule-unicode-e000-ffff, eight-bit-control -;; or a character translateable to such a character (i.e a character +;; or a character translatable to such a character (i.e a character ;; for which `encode-char' will return non-nil). ;; ;; Using unify-8859-on-decoding-mode is probably a good idea here @@ -466,13 +466,8 @@ whose value is a range-list." (- (length str) (length xsdre-current-regexp)))))))) -(put 'xsdre-invalid-regexp - 'error-conditions - '(error xsdre-invalid-regexp)) - -(put 'xsdre-invalid-regexp - 'error-message - "Invalid W3C XML Schema Datatypes regular expression") +(define-error 'xsdre-invalid-regexp + "Invalid W3C XML Schema Datatypes regular expression") (defun xsdre-parse-regexp () (let ((branches nil)) @@ -686,13 +681,7 @@ whose value is a range-list." ;; This error condition is used only internally. -(put 'xsdre-parse-error - 'error-conditions - '(error xsdre-parse-error)) - -(put 'xsdre-parse-error - 'error-message - "Internal error in parsing XSD regexp") +(define-error 'xsdre-parse-error "Internal error in parsing XSD regexp") ;;; Character class data @@ -2117,5 +2106,4 @@ Code is inserted into the current buffer." (provide 'xsd-regexp) -;; arch-tag: bf990d61-a26c-4fd3-b578-56a5640729da ;;; xsd-regexp.el ends here