(xml-name-regexp): Wrap in `eval-and-compile'.
authorJohn Paul Wallington <jpw@pobox.com>
Mon, 19 May 2003 17:45:27 +0000 (17:45 +0000)
committerJohn Paul Wallington <jpw@pobox.com>
Mon, 19 May 2003 17:45:27 +0000 (17:45 +0000)
lisp/ChangeLog
lisp/xml.el

index 9fadee1..277d495 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-19  John Paul Wallington  <jpw@gnu.org>
+
+       * xml.el (xml-name-regexp): Wrap in `eval-and-compile'.
+
 2003-05-19  Dave Love  <fx@gnu.org>
 
        * xml.el: Doc fixes.
index ca59359..01d1afa 100644 (file)
@@ -176,7 +176,8 @@ If PARSE-DTD is non-nil, the DTD is parsed rather than skipped."
 
 ;; XML [5]
 ;; Note that [:alpha:] matches all multibyte chars with word syntax.
-(defconst xml-name-regexp "[[:alpha:]_:][[:alnum:]._:-]*")
+(eval-and-compile
+  (defconst xml-name-regexp "[[:alpha:]_:][[:alnum:]._:-]*"))
 
 ;; Fixme:  This needs re-writing to deal with the XML grammar properly, i.e.
 ;;   document    ::=    prolog element Misc*