I've seen many examples where the (set-interval "my-method" n)
function is used to call a function every n seconds in the browser, but I cannot get the set-interval
function to run.
If I use:
(ql:quickload :parenscript)
(use-package :parenscript)
(use-package: ps-window-wd-symbols)
I get a lot of namespace collisions and set-interval
is still an undefined function.
I've also tried (ps:unobfuscate-package "ps-window-wd-symbols")
which returns NIL and does nothing.
What is the correct way of doing this?
Update: using (apropos "set-interval")
provides:
(apropos "set-interval")
SET-INTERVAL
SMACKJACK::SET-INTERVAL
PS-WINDOW-WD-SYMBOLS:SET-INTERVAL
So it's being provided in two places. Trying (smackjack::set-interval NIL NIL)
also causes an Undefined function error.
Using M-.
returns "No known Symbol" in my main project namespace.
The best way to use this functions is using it inside de defmacro ps.
As showing in the doc comments in code you can find this:
and the set-interval function is exported by ps-window-wd-symbols package and not with parenscript package
the defmacro ps:
take a look at the following gist: