diff options
| author | Chong Yidong | 2012-07-05 00:14:05 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-07-05 00:14:05 +0800 |
| commit | 566df3fcac8010303c1d8b8558cb07f3a057b346 (patch) | |
| tree | c03584ee0936855ce95cb9e84c241cc016c095f5 /lisp/ChangeLog | |
| parent | 0781098af7c8da77b1d044dce151e6a130eb1e77 (diff) | |
| download | emacs-566df3fcac8010303c1d8b8558cb07f3a057b346.tar.gz emacs-566df3fcac8010303c1d8b8558cb07f3a057b346.zip | |
Clean up syntax-table usage in xml.el
* xml.el (xml--parse-buffer): Use xml-syntax-table.
(xml-parse-tag): Likewise, and avoid changing entity tables.
(xml-syntax-table): Define from scratch, making sure not to give
x2000 and other Unicode spaces whitespace syntax, since those are
not spaces in XML.
(xml-parse-fragment): Delete unused function.
(xml-name-start-char-re, xml-name-char-re, xml-name-re)
(xml-names-re, xml-nmtoken-re, xml-nmtokens-re, xml-char-ref-re)
(xml-entity-ref, xml-pe-reference-re)
(xml-reference-re,xml-att-value-re, xml-tokenized-type-re)
(xml-notation-type-re, xml-enumeration-re, xml-enumerated-type-re)
(xml-att-type-re, xml-default-decl-re, xml-att-def-re)
(xml-entity-value-re): Use syntax references in regexps where
possible; no need to define inside a let-binding.
(xml-parse-dtd): Use xml-pe-reference-re.
(xml-entity-or-char-ref-re): New defconst.
(xml-parse-string, xml-substitute-special): Use it.
Diffstat (limited to 'lisp/ChangeLog')
| -rw-r--r-- | lisp/ChangeLog | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0a486daa809..8cef65cb10c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,23 @@ | |||
| 1 | 2012-07-04 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * xml.el (xml--parse-buffer): Use xml-syntax-table. | ||
| 4 | (xml-parse-tag): Likewise, and avoid changing entity tables. | ||
| 5 | (xml-syntax-table): Define from scratch, making sure not to give | ||
| 6 | x2000 and other Unicode spaces whitespace syntax, since those are | ||
| 7 | not spaces in XML. | ||
| 8 | (xml-parse-fragment): Delete unused function. | ||
| 9 | (xml-name-start-char-re, xml-name-char-re, xml-name-re) | ||
| 10 | (xml-names-re, xml-nmtoken-re, xml-nmtokens-re, xml-char-ref-re) | ||
| 11 | (xml-entity-ref, xml-pe-reference-re) | ||
| 12 | (xml-reference-re,xml-att-value-re, xml-tokenized-type-re) | ||
| 13 | (xml-notation-type-re, xml-enumeration-re, xml-enumerated-type-re) | ||
| 14 | (xml-att-type-re, xml-default-decl-re, xml-att-def-re) | ||
| 15 | (xml-entity-value-re): Use syntax references in regexps where | ||
| 16 | possible; no need to define inside a let-binding. | ||
| 17 | (xml-parse-dtd): Use xml-pe-reference-re. | ||
| 18 | (xml-entity-or-char-ref-re): New defconst. | ||
| 19 | (xml-parse-string, xml-substitute-special): Use it. | ||
| 20 | |||
| 1 | 2012-07-04 Stefan Monnier <monnier@iro.umontreal.ca> | 21 | 2012-07-04 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 22 | ||
| 3 | * files.el (locate-dominating-file): Allow `name' to be a predicate. | 23 | * files.el (locate-dominating-file): Allow `name' to be a predicate. |