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