Skip to content

Commit

Permalink
bug fix: avoid infinite loop of xml-parse-region
Browse files Browse the repository at this point in the history
* twittering-mode.el (twittering-get-response-body): bug fix: goto the
beginning of buffer before search-forward. 'xml-parse-region' doesn't
return when parsing unbalanced XML.
  • Loading branch information
hayamiz committed Dec 29, 2009
1 parent b7030c9 commit 7858e1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Expand Up @@ -2,6 +2,9 @@

* twittering-mode.el (twittering-start-http-session): check if
curl can use https or not.
(twittering-get-response-body): bug fix: goto the beginning of
buffer before search-forward. 'xml-parse-region' doesn't return
when parsing unbalanced XML.

2009-12-29 Satoshi Yatagawa <yata_github@y.hauN.org>

Expand Down
1 change: 1 addition & 0 deletions twittering-mode.el
Expand Up @@ -1143,6 +1143,7 @@ XML tree as list. Return nil when parse failed.
(if (stringp buffer) (setq buffer (get-buffer buffer)))
(save-excursion
(set-buffer buffer)
(goto-char (point-min))
(let ((start (if (search-forward-regexp "\r?\n\r?\n" nil t)
(match-end 0)
(point))))
Expand Down

0 comments on commit 7858e1b

Please sign in to comment.