unpackaged.el
unpackaged.el copied to clipboard
elfeed filter hydra error when press @ to complete-age
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))))
Please post a full backtrace.
Do you know how to get the full backtrace?
toggle-debug-on-error
can't be triggered by this error.
I don't understand how debug-on-error
would fail to provide a backtrace if an error is signaled.
Here's what I suggest:
- Reinstall this package and all of its dependency packages (i.e. delete the packages, restart Emacs, then reinstall them).
- If that doesn't fix it, try to reproduce with
emacs -q
oremacs-sandbox.sh
to ensure it isn't a problem with your config.
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
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.
Wait, did you not install pretty-hydra?
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!
You're welcome. Thanks for reporting the problem, and please let me know if you figure it out.