Giter Site home page Giter Site logo

larsbrinkhoff / emacs-cl Goto Github PK

View Code? Open in Web Editor NEW
164.0 15.0 13.0 622 KB

Common Lisp implemented in Emacs Lisp.

Home Page: http://www.lisp.se/emacs-cl/

License: GNU General Public License v2.0

Emacs Lisp 61.26% Common Lisp 38.57% Shell 0.02% Makefile 0.15%
lisp emacs-lisp common-lisp interpreter compiler programming-language emacs

emacs-cl's Introduction

emacs-cl

Emacs Common Lisp is an implementation of Common Lisp, written in Emacs Lisp.

emacs-cl's People

Contributors

larsbrinkhoff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

emacs-cl's Issues

Not compiling on emacs-26?

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))

Emacs `cl:lambda` macro handles &KEY arguments incorrectly.

In Common Lisp, if you write something like this and then don't use the keyword arguments, then the variables should be bound to NIL:

(cl:defun MAKE-PACKAGE (name &KEY NICKNAMES USE)
  (let ((package (make-vector 8 'PACKAGE))
        (use-packages (mapcar #'FIND-PACKAGE USE)))
    (aset package 1 (STRING name))                      ;name                                                                                            

Instead, cl:lambda initializes the NICKNAMES and USE variables to unbound, which results in a type error when (mapcar #'FIND-PACKAGE USE) is evaluated.

As a result of that, I can't load load-cl.el in Emacs 26.1. It looks like some post-processing is supposed to happen to transform unbound to nil, but for some reason the unbound value makes it through.

It looks like something is going wrong when parsing the lambda list. I couldn't understand what the code generated by the keyword-assignments macro is supposed to do, but functions like lambda-list-keys and lambda-list-keyword-defaults seem to return the correct values.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.