diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2011-06-04 09:53:22 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2011-06-04 09:53:22 +0200 |
commit | 5993c059dbd7b671a056c1a722683975966b3c26 (patch) | |
tree | 6819113d8361e3ab9be60450275842a0eee994db /lisp/url/url-future.el | |
parent | fec2107c58835163dc3b08c0a833a5072aa1fca9 (diff) | |
download | emacs-5993c059dbd7b671a056c1a722683975966b3c26.tar.gz |
* lisp/url/url-future.el (url-future-test): Fix scope of `saver'.
Diffstat (limited to 'lisp/url/url-future.el')
-rw-r--r-- | lisp/url/url-future.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/url/url-future.el b/lisp/url/url-future.el index 334c4fa9126..ac85a3cec47 100644 --- a/lisp/url/url-future.el +++ b/lisp/url/url-future.el @@ -96,7 +96,8 @@ (url-future-finish url-future 'cancel))) (ert-deftest url-future-test () - (let* ((text "running future") + (let* (saver + (text "running future") (good (make-url-future :value (lambda () (format text)) :callback (lambda (f) (set 'saver f)))) (bad (make-url-future :value (lambda () (/ 1 0)) @@ -104,8 +105,7 @@ (tocancel (make-url-future :value (lambda () (/ 1 0)) :callback (lambda (f) (set 'saver f)) :errorback (lambda (&rest d) - (set 'saver d)))) - saver) + (set 'saver d))))) (should (equal good (url-future-call good))) (should (equal good saver)) (should (equal text (url-future-value good))) |