]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/net/newst-backend.el (newsticker--sentinel-work):
authorGlenn Morris <rgm@gnu.org>
Fri, 20 Apr 2018 17:46:45 +0000 (13:46 -0400)
committerGlenn Morris <rgm@gnu.org>
Fri, 20 Apr 2018 17:46:45 +0000 (13:46 -0400)
Replace obsolete form of libxml-parse-xml-region.

lisp/net/newst-backend.el

index 520a9e19b42b7d4f4bff1af9eda05f8ba1d0541f..32893d2eea54a7cc9d09733516684f8869a91eaa 100644 (file)
@@ -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))