]> git.eshelyaron.com Git - emacs.git/commitdiff
(cl-do-arglist): Undo previous change.
authorRichard M. Stallman <rms@gnu.org>
Mon, 20 Apr 1998 22:06:27 +0000 (22:06 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 20 Apr 1998 22:06:27 +0000 (22:06 +0000)
lisp/emacs-lisp/cl-macs.el

index 7467b2bb5ed817e4aa88398a7418b66ec07e70fb..ed47ef4a4a660c9f05d9502a8b70085403797923 100644 (file)
@@ -302,7 +302,14 @@ ARGLIST allows full Common Lisp conventions."
                                          'quote
                                          (list nil (cl-const-expr-val def)))
                                       (list 'list nil def))))))))
-             (cl-push karg keys)))))
+             (cl-push karg keys)
+             ;; In Emacs 20.3, keyword symbols are preinitialized,
+             ;; making this unnecessary.  But let's keep it for
+             ;; compatibility's sake.
+             (if (= (aref (symbol-name karg) 0) ?:)
+                 (progn (set karg karg)
+                        (cl-push (list 'setq karg (list 'quote karg))
+                                 bind-inits)))))))
       (setq keys (nreverse keys))
       (or (and (eq (car args) '&allow-other-keys) (cl-pop args))
          (null keys) (= safety 0)