From 7d2b8a68b1578aa087140f6d708f1d91de307cab Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 30 Sep 2011 10:55:04 +0200 Subject: [PATCH] Fix data assignment --- google-weather.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/google-weather.el b/google-weather.el index c45ad88..4ecf3bc 100644 --- a/google-weather.el +++ b/google-weather.el @@ -108,9 +108,9 @@ to 0 force a cache renewal." (point) (point-max) (detect-coding-region (point) (point-max) t)) (set-buffer-multibyte t) - (setq data (xml-parse-region (point) (point-max))) - (kill-buffer (current-buffer)) - data)) + (let ((data (xml-parse-region (point) (point-max)))) + (kill-buffer (current-buffer)) + data))) (defun google-weather-build-url (location &optional language) "Build URL to retrieve weather for LOCATION in LANGUAGE." -- 2.11.4.GIT