restclient-jq.el calls restclient-remove-var which uses assoc-delete-all which wasn't introduced until Emacs 26.2.
I haven't been paying attention to releases and am still on 26.1. I should probably just upgrade, but it might be worth a note in the Known Issues that the jq hook won't work on Emacs < 26.2. I would be happy to submit a pull request for this.
Before I got to the bottom of this, I ended up defining assoc-delete-all myself instead of modifying the source of restclient.el. It doesn't actually delete all, but I think it works for this.
If you want to support older versions, it shouldn't be too hard to avoid assoc-delete-all, but it doesn't really matter to me. I'm happy to just upgrade.
After I got it all working, using jq-set-var really streamlined my OAuth authentication. Very slick!
restclient-jq.el
callsrestclient-remove-var
which usesassoc-delete-all
which wasn't introduced until Emacs 26.2.I haven't been paying attention to releases and am still on 26.1. I should probably just upgrade, but it might be worth a note in the Known Issues that the jq hook won't work on Emacs < 26.2. I would be happy to submit a pull request for this.
Before I got to the bottom of this, I ended up defining
assoc-delete-all
myself instead of modifying the source ofrestclient.el
. It doesn't actually delete all, but I think it works for this.If you want to support older versions, it shouldn't be too hard to avoid
assoc-delete-all
, but it doesn't really matter to me. I'm happy to just upgrade.After I got it all working, using
jq-set-var
really streamlined my OAuth authentication. Very slick!