pashky/restclient.el

How do you set multiple variables?

Opened this issue · 0 comments

-> run-hook (restclient-set-var ":refresh_token" (cdr (assq 'refresh_token (json-read))))
-> run-hook (restclient-set-var ":access_token" (cdr (assq 'access_token (json-read))))

only runs the last one, similarly if i -> run-hook (progn (r…) (r…))

EDIT: Oh, progn actually works if I go to point-min in between the json-reads. I guess I'll use a helper function, but it'd be nice if there were support for several hooks (each starting from point-min)