aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2003-06-16 16:31:29 +0000
committerStefan Monnier2003-06-16 16:31:29 +0000
commitcc1084a841fafad5adc3604ed9476fd2cab9f36a (patch)
treeee51afc01038835e777a8c6374e36302ba32f36e
parentb86170f9b766d7a0aca070572bbc0a080f8eb178 (diff)
downloademacs-cc1084a841fafad5adc3604ed9476fd2cab9f36a.tar.gz
emacs-cc1084a841fafad5adc3604ed9476fd2cab9f36a.zip
(cl-parse-loop-clause): Use map-keymap.
(defsubst*): Don't put a `cl-whole argument if it's not used.
-rw-r--r--lisp/emacs-lisp/cl-macs.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index f861aa546e3..a6e081fd0d1 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -912,7 +912,7 @@ Valid clauses are:
912 (setq var (prog1 other (setq other var)))) 912 (setq var (prog1 other (setq other var))))
913 (setq loop-map-form 913 (setq loop-map-form
914 (list (if (memq word '(key-seq key-seqs)) 914 (list (if (memq word '(key-seq key-seqs))
915 'cl-map-keymap-recursively 'cl-map-keymap) 915 'cl-map-keymap-recursively 'map-keymap)
916 (list 'function (list* 'lambda (list var other) 916 (list 'function (list* 'lambda (list var other)
917 '--cl-map)) map)))) 917 '--cl-map)) map))))
918 918
@@ -2497,7 +2497,9 @@ surrounded by (block NAME ...).
2497 (list 'progn 2497 (list 'progn
2498 (if p nil ; give up if defaults refer to earlier args 2498 (if p nil ; give up if defaults refer to earlier args
2499 (list 'define-compiler-macro name 2499 (list 'define-compiler-macro name
2500 (list* '&whole 'cl-whole '&cl-quote args) 2500 (if (memq '&key args)
2501 (list* '&whole 'cl-whole '&cl-quote args)
2502 (cons '&cl-quote args))
2501 (list* 'cl-defsubst-expand (list 'quote argns) 2503 (list* 'cl-defsubst-expand (list 'quote argns)
2502 (list 'quote (list* 'block name body)) 2504 (list 'quote (list* 'block name body))
2503 (not (or unsafe (cl-expr-access-order pbody argns))) 2505 (not (or unsafe (cl-expr-access-order pbody argns)))