aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2018-04-14 17:14:01 +0200
committerLars Ingebrigtsen2018-04-14 17:14:01 +0200
commite20d7381ee85611f9e1d1e6bef4fe2d7e2ae7780 (patch)
tree9eb74901b854761d09426492e47de54f5e8e5ed4 /etc
parentdb71b3182778b66fad3865825777b06cc20b89a8 (diff)
downloademacs-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/NEWS8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 980a5b453a2..0bf5ba80b38 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
120a parameter that's called DISCARD-COMMENTS, but it really only
121discards the top-level comment. Therefore this parameter is now
122obsolete, and the new utility function `xml-remove-comments' can be
123used to remove comments before calling the libxml functions to parse
124the 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'.
120It blocks line breaking after a one-letter word, also in the case when 128It blocks line breaking after a one-letter word, also in the case when
121this word is preceded by a non-space, but non-alphanumeric character. 129this word is preceded by a non-space, but non-alphanumeric character.