-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
creating filter not working #23
Comments
Update..... removing all the byte-compiled .elc files from the tablist folder and filtering works okay |
I was also having this issue and removing the .elc files worked for me as well, thanks @super-tomcat |
I'm also affected by this. Removing .elc helps. |
I just started getting this error and I don't have any .elc files to delete. Any further suggestions? Oh. I see. Just in case anyone finds there way here. Using straight.el so I looked in ... repos/tablist but there is also a build/tablist with symlinks for the el files, but nothing for the elc files. The elc files were in the build/tablist directory not in the repos/tablist directory. |
I started getting this error a few days ago as well. Deleting the .elc files didn't help nor did recompiling them. Any other suggestions? |
Are you using straight.el? If so, there are subdirectories that straight manages that are at the same level of the hierarchy. One is "repo" the other is "build". You should look inside both of those for the .elc files to delete, and make sure that you have your packages for pdf-tools up to date. If you are not using "straight" then I don't know that this will help, and since I never really understood the source of the error, but was just following the instructions I won't be able to help further. Sorry. |
@brittAnderson yup, using doom emacs, which uses straight.el. I'll look there, thanks! |
I also ran into this issue (maybe even multiple times on different machines). Edit: The above did not work. Worth mentioning that straight does shows two "is a malformed function" warnings during byte-compilation.
|
I've repeatedly encountered this issue too (using guix + use-package) in my case, running (unload-feature 'tablist-filter t)
(load-file (find-library-name "tablist-filter")) did the trick (though it's clearly a workaround, I think the guix package definition needs to be fixed) I've set up an interactive function to do this since I frequently run into this issue: (defun my-fix-tablist ()
(interactive)
(unload-feature 'tablist-filter t)
(load-file (find-library-name "tablist-filter"))) |
`(require 'cl-lib)` was missing even though this file uses macros in cl-lib, such as `cl-labels`. This caused problems when it is byte-compiled (ref. politza#23).
Everytime i try to create a filter with.... Edit Filter (press / e)... in the Emacs Packages buffer i get this in the messages....
tablist-filter-eval: Invalid function: (feval (filter) (pcase filter ((` (not , (and operand (guard (not (cdr operand)))))) (not (feval (car operand)))) ((` (and , (and operands (guard (= 2 (length operands)))))) (and (feval (nth 0 operands)) (feval (nth 1 operands)))) ((` (or , (and operands (guard (= 2 (length operands)))))) (or (feval (nth 0 operands)) (feval (nth 1 operands)))) ((` ((, op) , (and operands (guard (= (length operands) 1))))) (let ((fn (assq op tablist-filter-unary-operator))) (unless fn (error "Undefined unary operator: %s" op)) (funcall fn id entry (car operands)))) ((` ((, op) , (and operands (guard (= (length operands) 2))))) (let ((fn (cdr (assq op tablist-filter-binary-operator)))) (unless fn (error "Undefined binary operator: %s" op)) (funcall fn id entry (car operands) (cadr operands)))) ((guard (stringp filter)) (let ((fn (cdr (assoc filter named-alist)))) (unless fn (error "Undefined named filter: %s" filter)) (if (functionp fn) (funcall fn id entry)) (feval (if (stringp fn) (tablist-filter-unparse fn) fn)))) ((` nil) t) (_ (error "Invalid filter: %s" filter))))
The text was updated successfully, but these errors were encountered: