alphapapa / unpackaged.el

A collection of useful Emacs Lisp code that isn't substantial enough to be packaged
GNU General Public License v3.0
397 stars 13 forks source link

elfeed filter hydra error when press @ to complete-age #17

Open lyjdwh opened 4 years ago

lyjdwh commented 4 years ago

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))))
alphapapa commented 4 years ago

Please post a full backtrace.

lyjdwh commented 4 years ago

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

alphapapa commented 4 years ago

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.
lyjdwh commented 4 years ago

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

alphapapa commented 4 years ago

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 commented 4 years ago

Wait, did you not install pretty-hydra?

lyjdwh commented 4 years ago

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

alphapapa commented 4 years ago

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