1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-10 08:10:21 -08:00

Fix cl-defun keyword arg parsing. Please bootstrap.

This commit is contained in:
Daniel Colascione 2014-03-22 22:50:24 -07:00
parent 3768a86998
commit c6b0fbe7db
4 changed files with 20 additions and 1 deletions

View file

@ -503,7 +503,8 @@ its argument list allows full Common Lisp conventions."
(varg (if (consp (car arg)) (cl-cadar arg) (car arg)))
(def (if (cdr arg) (cadr arg)
(or (car cl--bind-defs) (cadr (assq varg cl--bind-defs)))))
(look `(memq ',karg ,restarg)))
(look `(cl-loop for cl--arg on ,restarg by #'cddr
when (eq (car cl--arg) ',karg) return cl--arg)))
(and def cl--bind-enquote (setq def `',def))
(if (cddr arg)
(let* ((temp (or (nth 2 arg) (make-symbol "--cl-var--")))