unpackaged.el icon indicating copy to clipboard operation
unpackaged.el copied to clipboard

elfeed filter hydra error when press @ to complete-age

Open lyjdwh opened this issue 4 years ago • 8 comments

When using my/elfeed-search-view-hydra @ keybinding to complete-age, the error occurs that

Wrong type argument: stringp, (lambda nil (interactive) (let ((save-match-data-internal (match-data))) (unwind-protect (progn (let* ((date-regexp "\\(\\(?:\\‘\\|[[:blank:]]\\)@[[:digit:]]+[^[:blank:]]+\\)") (date-tag (if (string-match date-regexp elfeed-search-filter) (progn (match-string 1 elfeed-search-filter))))) (elfeed-search-set-filter (replace-regexp-in-string date-regexp (read-string "Date: " date-tag) elfeed-search-filter t t)))) (set-match-data save-match-data-internal ’evaporate))))

lyjdwh avatar Oct 24 '20 01:10 lyjdwh

Please post a full backtrace.

alphapapa avatar Oct 24 '20 07:10 alphapapa

Do you know how to get the full backtrace? toggle-debug-on-error can't be triggered by this error.

lyjdwh avatar Oct 24 '20 13:10 lyjdwh

I don't understand how debug-on-error would fail to provide a backtrace if an error is signaled.

Here's what I suggest:

  1. Reinstall this package and all of its dependency packages (i.e. delete the packages, restart Emacs, then reinstall them).
  2. If that doesn't fix it, try to reproduce with emacs -q or emacs-sandbox.sh to ensure it isn't a problem with your config.

alphapapa avatar Oct 24 '20 18:10 alphapapa

I tried emacs -q, the same error occurred and toggle-debug-on-error still didn't be triggered.

my emacs test init file is https://gist.github.com/lyjdwh/051bfef652612b6c02632f608af26011

lyjdwh avatar Oct 25 '20 06:10 lyjdwh

The code works for me, so I don't know why it doesn't work for you. Maybe something changed in Hydra or pretty-hydra or some other package, but I don't have time to dig into that for you. I'm afraid you'll have to debug it yourself. Maybe you can use Edebug to step through the code. You could also try expanding all of the macros and stepping through the resulting code.

alphapapa avatar Oct 25 '20 11:10 alphapapa

Wait, did you not install pretty-hydra?

alphapapa avatar Oct 25 '20 11:10 alphapapa

Sorry, I mistook the install of requires.

After I install pretty-hydra, it still doesn't work. I will debug it myself. Thanks for your help!

image

lyjdwh avatar Oct 25 '20 12:10 lyjdwh

You're welcome. Thanks for reporting the problem, and please let me know if you figure it out.

alphapapa avatar Oct 25 '20 13:10 alphapapa