branch: externals/pyim commit 2c44f46f61196e6cb6536783091bcad0f8a158ce Author: Feng Shu <tuma...@163.com> Commit: Feng Shu <tuma...@163.com>
pyim-cloudim: kill buffer after parse url buffer. * pyim-cloudim.el (pyim-cloudim-parse-baidu-buffer) (pyim-cloudim-parse-google-buffer): Kill buffer after parse. --- pyim-cloudim.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyim-cloudim.el b/pyim-cloudim.el index e643f8be55..fe3097f329 100644 --- a/pyim-cloudim.el +++ b/pyim-cloudim.el @@ -68,6 +68,7 @@ (search-forward "\n\n" nil t) (delete-region (point-min) (point)) (let ((data (funcall 'json-parse-buffer))) + (kill-buffer) (list (elt (elt (elt (gethash "0" data) 0) 0) 0)))) (defun pyim-cloudim:google (string scheme-name) @@ -85,6 +86,7 @@ (search-forward "\n\n" nil t) (delete-region (point-min) (point)) (let ((data (funcall 'json-parse-buffer))) + (kill-buffer) (list (elt (elt (elt (elt data 1) 0) 1) 0)))) ;; * Footer