summaryrefslogtreecommitdiff
path: root/src/xml.c
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2018-04-14 19:06:51 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2018-04-14 19:06:51 +0200
commit369cb30d8cc9b2c1eee8ed21cca89e0277f8d61d (patch)
tree9cc1899526409407fa167b03d266ead2cd7f818c /src/xml.c
parent0b0d3815da99f575b74e82234bfb963d89362152 (diff)
downloademacs-369cb30d8cc9b2c1eee8ed21cca89e0277f8d61d.tar.gz
(libxml-parse-html-region): Make DISCARD-COMMENTS obsolete
* lisp/subr.el (libxml-parse-xml-region) (libxml-parse-html-region): Make DISCARD-COMMENTS obsolete. * src/xml.c (Flibxml_parse_html_region) (Flibxml_parse_xml_region): Don't mention DISCARD-COMMENTS, since it's now no longer part of the advertised signature (bug#27178).
Diffstat (limited to 'src/xml.c')
-rw-r--r--src/xml.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/xml.c b/src/xml.c
index fa88040597d..3674e320ef6 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -272,11 +272,8 @@ DEFUN ("libxml-parse-html-region", Flibxml_parse_html_region,
doc: /* Parse the region as an HTML document and return the parse tree.
If BASE-URL is non-nil, it is used to expand relative URLs.
-If DISCARD-COMMENTS is non-nil, the top-level HTML comment is discarded.
-
-This parameter is obsolete as of 27.1, and you should use the
-`xml-remove-comments' function to strip comments before calling
-this function if you don't want comments. */)
+If you want comments to be stripped, use the `xml-remove-comments'
+function to strip comments before calling this function. */)
(Lisp_Object start, Lisp_Object end, Lisp_Object base_url, Lisp_Object discard_comments)
{
if (init_libxml2_functions ())
@@ -290,11 +287,8 @@ DEFUN ("libxml-parse-xml-region", Flibxml_parse_xml_region,
doc: /* Parse the region as an XML document and return the parse tree.
If BASE-URL is non-nil, it is used to expand relative URLs.
-If DISCARD-COMMENTS is non-nil, the top-level XML comment is discarded.
-
-This parameter is obsolete as of 27.1, and you should use the
-`xml-remove-comments' function to strip comments before calling
-this function if you don't want comments. */)
+If you want comments to be stripped, use the `xml-remove-comments'
+function to strip comments before calling this function. */)
(Lisp_Object start, Lisp_Object end, Lisp_Object base_url, Lisp_Object discard_comments)
{
if (init_libxml2_functions ())