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 /doc | |
| 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 'doc')
| -rw-r--r-- | doc/lispref/text.texi | 5 |
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 | |||
| 4724 | string specifying the base URL for relative URLs occurring in links. | 4724 | string specifying the base URL for relative URLs occurring in links. |
| 4725 | 4725 | ||
| 4726 | If the optional argument @var{discard-comments} is non-@code{nil}, | 4726 | If the optional argument @var{discard-comments} is non-@code{nil}, |
| 4727 | then the parse tree is created without any comments. | 4727 | any top-level comment is discarded. (This argument is obsolete and |
| 4728 | will be removed in future Emacs versions. To remove comments, use the | ||
| 4729 | @code{xml-remove-comments} utility function on the data before you | ||
| 4730 | call the parsing function.) | ||
| 4728 | 4731 | ||
| 4729 | In the parse tree, each HTML node is represented by a list in which | 4732 | In the parse tree, each HTML node is represented by a list in which |
| 4730 | the first element is a symbol representing the node name, the second | 4733 | the first element is a symbol representing the node name, the second |