Mercurial > emacs
comparison lisp/emacs-lisp/cl-macs.el @ 28178:91ebdd6d4e30
(cl-do-arglist): Don't add (setq :<key> ':<key>).
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 17 Mar 2000 19:32:42 +0000 |
parents | 3a803d09d619 |
children | add63b27c709 |
comparison
equal
deleted
inserted
replaced
28177:ff69c2cd80c1 | 28178:91ebdd6d4e30 |
---|---|
283 (if (eq (cl-const-expr-p def) t) | 283 (if (eq (cl-const-expr-p def) t) |
284 (list | 284 (list |
285 'quote | 285 'quote |
286 (list nil (cl-const-expr-val def))) | 286 (list nil (cl-const-expr-val def))) |
287 (list 'list nil def)))))))) | 287 (list 'list nil def)))))))) |
288 (cl-push karg keys) | 288 (cl-push karg keys))))) |
289 ;; In Emacs 20.3, keyword symbols are preinitialized, | |
290 ;; making this unnecessary. But let's keep it for | |
291 ;; compatibility's sake. | |
292 (if (= (aref (symbol-name karg) 0) ?:) | |
293 (progn (set karg karg) | |
294 (cl-push (list 'setq karg (list 'quote karg)) | |
295 bind-inits))))))) | |
296 (setq keys (nreverse keys)) | 289 (setq keys (nreverse keys)) |
297 (or (and (eq (car args) '&allow-other-keys) (cl-pop args)) | 290 (or (and (eq (car args) '&allow-other-keys) (cl-pop args)) |
298 (null keys) (= safety 0) | 291 (null keys) (= safety 0) |
299 (let* ((var (gensym "--keys--")) | 292 (let* ((var (gensym "--keys--")) |
300 (allow '(:allow-other-keys)) | 293 (allow '(:allow-other-keys)) |