newsticker: Fix bug#18787: Tell libxml-parse-xml-region to discard comments.
* lisp/net/newst-backend.el (newsticker--sentinel-work): Tell `libxml-parse-xml-region' to discard comments. Fixes bug#18787.
This commit is contained in:
parent
b559a60382
commit
46035c64e6
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-11-22 Ulf Jasper <ulf.jasper@web.de>
|
||||
|
||||
* net/newst-backend.el (newsticker--sentinel-work): Tell
|
||||
`libxml-parse-xml-region' to discard comments. Fixes bug#18787.
|
||||
|
||||
2014-11-22 Michael Albinus <michael.albinus@gmx.de>
|
||||
|
||||
* net/tramp-sh.el (tramp-sh-handle-start-file-process)
|
||||
|
|
|
@ -879,10 +879,11 @@ 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)))
|
||||
(list (libxml-parse-xml-region (point-min) (point-max)
|
||||
nil t))
|
||||
(xml-parse-region (point-min) (point-max)))
|
||||
(error (message "Could not parse %s: %s"
|
||||
(buffer-name) (cadr errordata))
|
||||
|
|
Loading…
Add table
Reference in a new issue