zotxt-emacs icon indicating copy to clipboard operation
zotxt-emacs copied to clipboard

deferred error with 'title'

Open notuntoward opened this issue 1 year ago • 6 comments

When I customize org-zotxt-link-description-style to 'title', and then run org-zotxt-insert-reference-link, select a Zotero entry and then hit return, I get this error message:

Caught error: (wrong-number-of-arguments (lambda (item) (deferred:error item #'zotxt--deferred-handle-error)) 0) deferred error : (wrong-number-of-arguments # 3)

This is when org-zotxt-mode is toggled on.

emacs version: 28.2

notuntoward avatar Aug 07 '23 17:08 notuntoward

I can't reproduce this in 29. I can try to confirm in 28 but can you confirm that you have the latest versions running? Thanks!

egh avatar Aug 10 '23 02:08 egh

I think I'm running the latest. With use-package set up to pull master using straight, here's my zotxt config:

(use-package zotxt
  :after org
  :bind ("C-c z" . org-zotxt-insert-reference-link)
  :hook (org-mode . org-zotxt-mode))

If I go to

~/.emacs.d/straight/repos/zotxt-emacs/.git/refs/heads/master

I see:

96a132d6b39f6bc19a58913b761d42efc198f8a4

Does that help?

notuntoward avatar Aug 10 '23 16:08 notuntoward

That sounds right. You configured org-zotxt-link-description-style using the customize functionality?

egh avatar Aug 10 '23 19:08 egh

Exactly.

notuntoward avatar Aug 10 '23 21:08 notuntoward

Strange. I can't reproduce on emacs 28.2. I wonder if there is an underlying error? Does (zotxt--check-server) return an error?

egh avatar Aug 11 '23 01:08 egh

Running (zotxt--check-server) didn't cause any errors, but now I notice that when I restart emacs, I do see a warning from another package (ekg). I'll look into that.

notuntoward avatar Aug 13 '23 16:08 notuntoward