Closed seylerius closed 1 week ago
OK. Do you think the cl-versions will work elsewhere or break some other versions? I am not familiar enough with elisp to know what the implications would be, but since cl-lib is already required and some cl-functions are used I guess it would not be likely to make anything worse?
running a vanilla 28.2 in Debian 12 & adding the prefix 'cl-' at remove-if-not
& remove-if
worked for me too!
Also broken running 30.0.91 on Fedora 40. I added
(require 'cl-lib)
(defalias 'remove-if-not 'cl-remove-if-not)
(defalias 'remove-if 'cl-remove-if)
to my init.el, restarted Emacs, and then M-x decide-table-load-file
worked fine.
Unfortunately I have not seen this in any of the versions of Emacs I use, and I am not familiar enough with elisp or cl-lib to know what the best solution would be. Would happily accept some kind of fix for this. Would it be better to avoid cl-lib?
The problem is cl-lib deprecating and renaming functions. I can see a few solutions:
remove-if
to cl-remove-if
I don't know which of these is "best." I've dealt with a number of these cl-lib problems over a few years.
I'm willing to create a pull request to fix the parts that broke for me. I don't know if that will cover all of the cl-lib problems.
I'm getting the error
Symbol's function definition is void: remove-if-not
when I try to load a table file, and the same forremove-if
when I try to use one. Switching to thecl-
versions of those functions fixes it.