summaryrefslogtreecommitdiff
path: root/lisp/xml.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2012-07-03 23:31:34 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2012-07-03 23:31:34 -0400
commit30eabd7ad8328c1b6dfb6514685044e246bf0f04 (patch)
treed28957b0f1b54297339fc82335b00d948705282d /lisp/xml.el
parentb3264a61ffdef42ae9c26c707f8671f53970d851 (diff)
downloademacs-30eabd7ad8328c1b6dfb6514685044e246bf0f04.tar.gz
* lisp/xml.el (xml-name-regexp): Remove, redundant. Use xml-name-re.
Diffstat (limited to 'lisp/xml.el')
-rw-r--r--lisp/xml.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/lisp/xml.el b/lisp/xml.el
index 2595fd572f4..f2c1a703f88 100644
--- a/lisp/xml.el
+++ b/lisp/xml.el
@@ -294,9 +294,6 @@ If PARSE-NS is non-nil, then QNAMES are expanded."
"Syntax table used by `xml-parse-region'.")
;; XML [5]
-;; Note that [:alpha:] matches all multibyte chars with word syntax.
-(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*
@@ -588,7 +585,7 @@ Leave point at the first non-blank character after the tag."
end-pos name)
(skip-syntax-forward " ")
(while (looking-at (eval-when-compile
- (concat "\\(" xml-name-regexp "\\)\\s-*=\\s-*")))
+ (concat "\\(" xml-name-re "\\)\\s-*=\\s-*")))
(setq end-pos (match-end 0))
(setq name (xml-maybe-do-ns (match-string-no-properties 1) nil xml-ns))
(goto-char end-pos)
@@ -643,7 +640,7 @@ This follows the rule [28] in the XML specifications."
(error "XML: (Validity) Invalid DTD (expecting name of the document)"))
;; Get the name of the document
- (looking-at xml-name-regexp)
+ (looking-at xml-name-re)
(let ((dtd (list (match-string-no-properties 0) 'dtd))
(xml-parameter-entity-alist xml-parameter-entity-alist)
(parameter-entity-re (eval-when-compile