aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/nxml
diff options
context:
space:
mode:
authorStefan Monnier2019-06-26 10:24:59 -0400
committerStefan Monnier2019-06-26 10:24:59 -0400
commit0b4e003766f15225dede9bdba4ead33e493856e2 (patch)
tree99de57fe8feeca540f398acb232b75e9c802418c /lisp/nxml
parent699fce296b13d7db386b1cb5cecf2710e5196691 (diff)
downloademacs-0b4e003766f15225dede9bdba4ead33e493856e2.tar.gz
emacs-0b4e003766f15225dede9bdba4ead33e493856e2.zip
Revert "* lisp/calc/calc-ext.el (math-scalarp): Fix typo"
This reverts commit 698ff554ac2699ec48fefc85a1307cbc4a183b0d.
Diffstat (limited to 'lisp/nxml')
-rw-r--r--lisp/nxml/rng-uri.el9
-rw-r--r--lisp/nxml/xmltok.el10
2 files changed, 7 insertions, 12 deletions
diff --git a/lisp/nxml/rng-uri.el b/lisp/nxml/rng-uri.el
index e2bb8adfef5..798475bbc3d 100644
--- a/lisp/nxml/rng-uri.el
+++ b/lisp/nxml/rng-uri.el
@@ -83,11 +83,10 @@ Signal an error if URI is not a valid file URL."
83 (cond ((not scheme) 83 (cond ((not scheme)
84 (unless pattern 84 (unless pattern
85 (rng-uri-error "URI `%s' does not have a scheme" uri))) 85 (rng-uri-error "URI `%s' does not have a scheme" uri)))
86 ((not (member (downcase scheme) '("file" "http"))) 86 ((not (string= (downcase scheme) "file"))
87 (rng-uri-error "URI `%s' does not use the `file:' or `http:' scheme" uri))) 87 (rng-uri-error "URI `%s' does not use the `file:' scheme" uri)))
88 (when (and (equal (downcase scheme) "file") 88 (when (not (member authority
89 (not (member authority 89 (cons (system-name) '(nil "" "localhost"))))
90 (cons (system-name) '(nil "" "localhost")))))
91 (rng-uri-error "URI `%s' does not start with `file:///' or `file://localhost/'" 90 (rng-uri-error "URI `%s' does not start with `file:///' or `file://localhost/'"
92 uri)) 91 uri))
93 (when query 92 (when query
diff --git a/lisp/nxml/xmltok.el b/lisp/nxml/xmltok.el
index c0bf29a3988..afa33e064f3 100644
--- a/lisp/nxml/xmltok.el
+++ b/lisp/nxml/xmltok.el
@@ -439,8 +439,7 @@ and VALUE-END, otherwise a STRING giving the value."
439 (comment 439 (comment
440 (xmltok+ (xmltok-g markup-declaration "!") 440 (xmltok+ (xmltok-g markup-declaration "!")
441 (xmltok-g comment-first-dash "-" 441 (xmltok-g comment-first-dash "-"
442 (xmltok-g comment-open "-") opt) 442 (xmltok-g comment-open "-") opt) opt))
443 opt))
444 (cdata-section 443 (cdata-section
445 (xmltok+ "!" 444 (xmltok+ "!"
446 (xmltok-g marked-section-open "\\[") 445 (xmltok-g marked-section-open "\\[")
@@ -541,9 +540,7 @@ and VALUE-END, otherwise a STRING giving the value."
541 "%" (xmltok-g param-entity-ref 540 "%" (xmltok-g param-entity-ref
542 ncname 541 ncname
543 (xmltok-g param-entity-ref-close 542 (xmltok-g param-entity-ref-close
544 ";") 543 ";") opt) opt))
545 opt)
546 opt))
547 (starts-with-nmtoken-not-name 544 (starts-with-nmtoken-not-name
548 (xmltok-g nmtoken 545 (xmltok-g nmtoken
549 (xmltok-p name-continue-not-start-char or ":") 546 (xmltok-p name-continue-not-start-char or ":")
@@ -574,8 +571,7 @@ and VALUE-END, otherwise a STRING giving the value."
574 "!" (xmltok-p (xmltok-g comment-first-dash "-" 571 "!" (xmltok-p (xmltok-g comment-first-dash "-"
575 (xmltok-g comment-open "-") opt) 572 (xmltok-g comment-open "-") opt)
576 or (xmltok-g named-markup-declaration 573 or (xmltok-g named-markup-declaration
577 ncname)) 574 ncname)) opt))
578 opt))
579 (after-lt 575 (after-lt
580 (xmltok+ markup-declaration 576 (xmltok+ markup-declaration
581 or (xmltok-g processing-instruction-question 577 or (xmltok-g processing-instruction-question