Skip to content
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

Not compiling on emacs-26? #7

Open
jwiegley opened this issue Dec 9, 2017 · 8 comments
Open

Not compiling on emacs-26? #7

jwiegley opened this issue Dec 9, 2017 · 8 comments

Comments

@jwiegley
Copy link

jwiegley commented Dec 9, 2017

I get this when running make in src:

emacs -batch -l load-cl.el -f compile-cl
Loading /Users/johnw/emacs/site-lisp/emacs-cl/src/utils.el (source)...
Loading /Users/johnw/emacs/site-lisp/emacs-cl/src/func.el (source)...
Loading /Users/johnw/emacs/site-lisp/emacs-cl/src/cl-evaluation.el (source)...
Loading /Users/johnw/emacs/site-lisp/emacs-cl/src/cl-flow.el (source)...
Loading /Users/johnw/emacs/site-lisp/emacs-cl/src/cl-numbers.el (source)...
Eager macro-expansion failure: (error "Autoloading file /nix/store/g5fgi3ivqd05habgdkhh8nxykxyx88gn-emacs26/share/emacs/26.0.90/lisp/emacs-lisp/cl-extra.elc failed to define function cl-mapcar-many")
Debugger entered--Lisp error: (error "Autoloading file /nix/store/g5fgi3ivqd05habgdkhh8nxykxyx88gn-emacs26/share/emacs/26.0.90/lisp/emacs-lisp/cl-extra.elc failed to define function cl-mapcar-many")
  (cl-mapcar-many fn lists)
  (if (null (cdr lists)) (mapcar fn (car lists)) (cl-mapcar-many fn lists))
  (apply (function append) (if (null (cdr lists)) (mapcar fn (car lists)) (cl-mapcar-many fn lists)))
  mappend((lambda (var default) (list (list 'when (list 'eq var (list 'quote unbound)) (list 'setq var (if env (compile-form default env) default))))) (START END RADIX JUNK-ALLOWED) (0 (LENGTH string) 10 nil))
@larsbrinkhoff
Copy link
Owner

Thanks, I'll look into it. No, I haven't tested it with the latest Emacs versions.

@larsbrinkhoff
Copy link
Owner

The primary cause seems to be eager macro expansion, which didn't exist when I wrote this ages ago. I'm trying to rearrange code to resolve dependencies betwen macros and functions.

@larsbrinkhoff
Copy link
Owner

I'd like to fix this, but I have been busy with other tasks. @jwiegley, I'm guessing you don't have an urgent need for this to work?

@jwiegley
Copy link
Author

No, none at all. If the answer is "check back in 2020", I'm fine with that. :)

@priyadarshan
Copy link

"check back in 2020"

I also would be quite interested in using emacs-cl on Emacs 27.1.

Is there a chance for this to be fixed?

@larsbrinkhoff
Copy link
Owner

Thanks for the timely comment! I do want emacs-cl to work with the latest Emacs releases. I see a potential in the future for Emacs libraries to be able to use Common Lisp libraries, and I would be excited to see where that might lead. But unfortunatly, I'm more busy than ever, so I don't have time to work on this now.

Check back in 2030? ;-)

That said, I would be happy to work together with some contributors who are interested in resolving this. No code in emacs-cl is sacred, so I'm willing to see drastic changes and throw out support for older Emacs versions if need be.

@aindilis
Copy link

I don't have an urgent or serious need, nor the skill to help, but I am interested in seeing if I couldn't use Emacs-CL for improving Emacs interaction with CYC through SubL.

@larsbrinkhoff
Copy link
Owner

Hello @aindilis,
Thanks for your interest. I still would like to see emacs-cl move forward, but I'm busy doing other things.

Two things stand out in particular:

  • Use the new compiler/byte code support for lexical variables.
  • Use the new class instance support for CLOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants