diff options
Diffstat (limited to 'lisp/nxml')
| -rw-r--r-- | lisp/nxml/nxml-maint.el | 4 | ||||
| -rw-r--r-- | lisp/nxml/rng-uri.el | 2 | ||||
| -rw-r--r-- | lisp/nxml/rng-xsd.el | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lisp/nxml/nxml-maint.el b/lisp/nxml/nxml-maint.el index 2570e51af51..2956efb736e 100644 --- a/lisp/nxml/nxml-maint.el +++ b/lisp/nxml/nxml-maint.el | |||
| @@ -34,10 +34,10 @@ | |||
| 34 | (let (lst head) | 34 | (let (lst head) |
| 35 | (with-current-buffer (find-file-noselect file) | 35 | (with-current-buffer (find-file-noselect file) |
| 36 | (goto-char (point-min)) | 36 | (goto-char (point-min)) |
| 37 | (while (re-search-forward "^ *\\([a-FA-F0-9]\\{2\\}\\)[ \t]+" nil t) | 37 | (while (re-search-forward "^ *\\([a-fA-F0-9]\\{2\\}\\)[ \t]+" nil t) |
| 38 | (let ((row (match-string 1)) | 38 | (let ((row (match-string 1)) |
| 39 | (eol (line-end-position))) | 39 | (eol (line-end-position))) |
| 40 | (while (re-search-forward "\\([a-FA-F0-9]\\{2\\}\\)-\\([a-FA-F0-9]\\{2\\}\\)\\|\\([a-FA-F0-9]\\{2\\}\\)" eol t) | 40 | (while (re-search-forward "\\([a-fA-F0-9]\\{2\\}\\)-\\([a-fA-F0-9]\\{2\\}\\)\\|\\([a-fA-F0-9]\\{2\\}\\)" eol t) |
| 41 | (setq lst | 41 | (setq lst |
| 42 | (cons (if (match-beginning 3) | 42 | (cons (if (match-beginning 3) |
| 43 | (concat "#x" row (match-string 3)) | 43 | (concat "#x" row (match-string 3)) |
diff --git a/lisp/nxml/rng-uri.el b/lisp/nxml/rng-uri.el index 0e458cfd2f4..d8f2884f5e6 100644 --- a/lisp/nxml/rng-uri.el +++ b/lisp/nxml/rng-uri.el | |||
| @@ -42,7 +42,7 @@ escape them using %HH." | |||
| 42 | 42 | ||
| 43 | (defun rng-uri-escape-multibyte (uri) | 43 | (defun rng-uri-escape-multibyte (uri) |
| 44 | "Escape multibyte characters in URI." | 44 | "Escape multibyte characters in URI." |
| 45 | (replace-regexp-in-string "[:nonascii:]" | 45 | (replace-regexp-in-string "[[:nonascii:]]" |
| 46 | 'rng-percent-encode | 46 | 'rng-percent-encode |
| 47 | (encode-coding-string uri 'utf-8))) | 47 | (encode-coding-string uri 'utf-8))) |
| 48 | 48 | ||
diff --git a/lisp/nxml/rng-xsd.el b/lisp/nxml/rng-xsd.el index 6cd1688fe46..f308b049f3b 100644 --- a/lisp/nxml/rng-xsd.el +++ b/lisp/nxml/rng-xsd.el | |||
| @@ -360,7 +360,7 @@ trailing digits. For example, -0021.0430 would be represented by [-1 | |||
| 360 | n))) | 360 | n))) |
| 361 | 361 | ||
| 362 | (defun rng-xsd-convert-any-uri (string) | 362 | (defun rng-xsd-convert-any-uri (string) |
| 363 | (and (string-match "\\`\\(?:[^%]\\|%[0-9a-fA-F][0-9a-fA-F]\\)?*\\'" string) | 363 | (and (string-match "\\`\\(?:[^%]\\|%[0-9a-fA-F][0-9a-fA-F]\\)*\\'" string) |
| 364 | (string-match "\\`[^#]*\\(?:#[^#]*\\)?\\'" string) | 364 | (string-match "\\`[^#]*\\(?:#[^#]*\\)?\\'" string) |
| 365 | (string-match "\\`\\(?:[a-zA-Z][-+.A-Za-z0-9]*:.+\\|[^:]*\\(?:[#/?].*\\)?\\)\\'" string) | 365 | (string-match "\\`\\(?:[a-zA-Z][-+.A-Za-z0-9]*:.+\\|[^:]*\\(?:[#/?].*\\)?\\)\\'" string) |
| 366 | string)) | 366 | string)) |