summaryrefslogtreecommitdiff
path: root/test/lisp/url/url-future-tests.el
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2020-12-14 15:09:14 +0100
committerStefan Kangas <stefan@marxist.se>2020-12-14 15:11:05 +0100
commitf1dae2551c9b30f1f1333416df195b0907c54f4f (patch)
tree0238e1d6c2e7d4b9f5d5057f2aee71a319ab1d29 /test/lisp/url/url-future-tests.el
parentc9758ba48a805406ddd538aac33354fa400ac14a (diff)
downloademacs-f1dae2551c9b30f1f1333416df195b0907c54f4f.tar.gz
Prefer setq to set+quote
* lisp/cedet/semantic/senator.el (senator-lazy-highlight-update): * lisp/emulation/edt.el (edt-find, edt-restore-key) (edt-remember): * lisp/eshell/em-ls.el (eshell-ls--insert-directory): * lisp/net/tramp-sh.el (tramp-sh-handle-write-region): * lisp/progmodes/hideif.el (hide-ifdef-mode): * test/lisp/url/url-future-tests.el (url-future-tests): Prefer setq to set+quote.
Diffstat (limited to 'test/lisp/url/url-future-tests.el')
-rw-r--r--test/lisp/url/url-future-tests.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lisp/url/url-future-tests.el b/test/lisp/url/url-future-tests.el
index a07730a2be6..43668036b69 100644
--- a/test/lisp/url/url-future-tests.el
+++ b/test/lisp/url/url-future-tests.el
@@ -31,13 +31,13 @@
(let* (url-future-tests--saver
(text "running future")
(good (make-url-future :value (lambda () (format text))
- :callback (lambda (f) (set 'url-future-tests--saver f))))
+ :callback (lambda (f) (setq url-future-tests--saver f))))
(bad (make-url-future :value (lambda () (/ 1 0))
- :errorback (lambda (&rest d) (set 'url-future-tests--saver d))))
+ :errorback (lambda (&rest d) (setq url-future-tests--saver d))))
(tocancel (make-url-future :value (lambda () (/ 1 0))
- :callback (lambda (f) (set 'url-future-tests--saver f))
+ :callback (lambda (f) (setq url-future-tests--saver f))
:errorback (lambda (&rest d)
- (set 'url-future-tests--saver d)))))
+ (setq url-future-tests--saver d)))))
(should (equal good (url-future-call good)))
(should (equal good url-future-tests--saver))
(should (equal text (url-future-value good)))