mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-03 11:33:37 +00:00
* lisp/net/newst-backend.el (newsticker--sentinel-work):
Replace obsolete form of libxml-parse-xml-region.
This commit is contained in:
parent
3e233dd1c9
commit
be96414a62
@ -874,11 +874,12 @@ Argument BUFFER is the buffer of the retrieval process."
|
||||
(decode-coding-region (point-min) (point-max)
|
||||
coding-system))
|
||||
(condition-case errordata
|
||||
;; The xml parser might fail or the xml might be
|
||||
;; bugged
|
||||
;; The xml parser might fail or the xml might be bugged.
|
||||
(if (fboundp 'libxml-parse-xml-region)
|
||||
(list (libxml-parse-xml-region (point-min) (point-max)
|
||||
nil t))
|
||||
(progn
|
||||
(xml-remove-comments (point-min) (point-max))
|
||||
(list (libxml-parse-xml-region (point-min) (point-max)
|
||||
nil)))
|
||||
(xml-parse-region (point-min) (point-max)))
|
||||
(error (message "Could not parse %s: %s"
|
||||
(buffer-name) (cadr errordata))
|
||||
|
Loading…
Reference in New Issue
Block a user