diff options
| author | Lars Ingebrigtsen | 2018-04-14 17:14:01 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2018-04-14 17:14:01 +0200 |
| commit | e20d7381ee85611f9e1d1e6bef4fe2d7e2ae7780 (patch) | |
| tree | 9eb74901b854761d09426492e47de54f5e8e5ed4 /etc | |
| parent | db71b3182778b66fad3865825777b06cc20b89a8 (diff) | |
| download | emacs-e20d7381ee85611f9e1d1e6bef4fe2d7e2ae7780.tar.gz emacs-e20d7381ee85611f9e1d1e6bef4fe2d7e2ae7780.zip | |
Make DISCARD-COMMENTS in `libxml-parse-{html,xml}-region' obsolete
* doc/lispref/text.texi (Parsing HTML/XML): Mention that
discard-comments is obsolete.
* lisp/xml.el (xml-remove-comments): New function (bug#27178).
* src/xml.c (Flibxml_parse_html_region): Clarify what
DISCARD-COMMENTS actually does, and say that the parameter is
obsolete.
(Flibxml_parse_xml_region): Ditto.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -116,6 +116,14 @@ indirectly, e.g., by checking that functions like | |||
| 116 | 'libxml-parse-html-region' return nil. | 116 | 'libxml-parse-html-region' return nil. |
| 117 | 117 | ||
| 118 | +++ | 118 | +++ |
| 119 | ** `libxml-parse-xml-region' and `libxml-parse-html' region take | ||
| 120 | a parameter that's called DISCARD-COMMENTS, but it really only | ||
| 121 | discards the top-level comment. Therefore this parameter is now | ||
| 122 | obsolete, and the new utility function `xml-remove-comments' can be | ||
| 123 | used to remove comments before calling the libxml functions to parse | ||
| 124 | the data. | ||
| 125 | |||
| 126 | +++ | ||
| 119 | ** New function 'fill-polish-nobreak-p', to be used in 'fill-nobreak-predicate'. | 127 | ** New function 'fill-polish-nobreak-p', to be used in 'fill-nobreak-predicate'. |
| 120 | It blocks line breaking after a one-letter word, also in the case when | 128 | It blocks line breaking after a one-letter word, also in the case when |
| 121 | this word is preceded by a non-space, but non-alphanumeric character. | 129 | this word is preceded by a non-space, but non-alphanumeric character. |