aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2018-04-14 17:14:01 +0200
committerLars Ingebrigtsen2018-04-14 17:14:01 +0200
commite20d7381ee85611f9e1d1e6bef4fe2d7e2ae7780 (patch)
tree9eb74901b854761d09426492e47de54f5e8e5ed4 /doc
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 'doc')
-rw-r--r--doc/lispref/text.texi5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index 9769043b729..e89bd0b7ef7 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -4724,7 +4724,10 @@ The optional argument @var{base-url}, if non-@code{nil}, should be a
4724string specifying the base URL for relative URLs occurring in links. 4724string specifying the base URL for relative URLs occurring in links.
4725 4725
4726If the optional argument @var{discard-comments} is non-@code{nil}, 4726If the optional argument @var{discard-comments} is non-@code{nil},
4727then the parse tree is created without any comments. 4727any top-level comment is discarded. (This argument is obsolete and
4728will be removed in future Emacs versions. To remove comments, use the
4729@code{xml-remove-comments} utility function on the data before you
4730call the parsing function.)
4728 4731
4729In the parse tree, each HTML node is represented by a list in which 4732In the parse tree, each HTML node is represented by a list in which
4730the first element is a symbol representing the node name, the second 4733the first element is a symbol representing the node name, the second