Kungsgeten / ryo-modal

Roll your own modal mode
MIT License
224 stars 16 forks source link

Error when using :then or :first #52

Closed kahironimashte closed 2 months ago

kahironimashte commented 2 years ago

I would like to store the current location before jumping to a bookmark:

("b" bookmark-jump :first '(org-mark-ring-push))

But I get an error: apply: Wrong number of arguments: #<subr quote>, 0

The simpler version ("b" bookmark-jump) works perfectly. What am I doing wrong?

Kungsgeten commented 2 years ago

Not sure. Try to remove the quote. I'm not at my computer at the moment, but may be able to debug later.

kahironimashte commented 2 years ago

Excellent! ("b" bookmark-jump :first (org-mark-ring-push)) works. Thanks for the quick reply!

The :first and :then functionality is very handy. From the readme I thought that we are supposed to use quoted lists. Are quotes still required in general?

Kungsgeten commented 2 years ago

I think quoting is required when using ryo-modal-key, but not when using ryo-modal-keys