]> git.eshelyaron.com Git - emacs.git/commitdiff
(cl-parse-loop-clause): Use map-keymap.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 16 Jun 2003 16:31:29 +0000 (16:31 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 16 Jun 2003 16:31:29 +0000 (16:31 +0000)
(defsubst*): Don't put a `cl-whole argument if it's not used.

lisp/emacs-lisp/cl-macs.el

index f861aa546e3d98c5672952dda1bcc3621720ef1d..a6e081fd0d11002fade861458a7097c5b20d2eeb 100644 (file)
@@ -912,7 +912,7 @@ Valid clauses are:
                      (setq var (prog1 other (setq other var))))
                  (setq loop-map-form
                        (list (if (memq word '(key-seq key-seqs))
-                                 'cl-map-keymap-recursively 'cl-map-keymap)
+                                 'cl-map-keymap-recursively 'map-keymap)
                              (list 'function (list* 'lambda (list var other)
                                                     '--cl-map)) map))))
 
@@ -2497,7 +2497,9 @@ surrounded by (block NAME ...).
     (list 'progn
          (if p nil   ; give up if defaults refer to earlier args
            (list 'define-compiler-macro name
-                 (list* '&whole 'cl-whole '&cl-quote args)
+                 (if (memq '&key args)
+                     (list* '&whole 'cl-whole '&cl-quote args)
+                   (cons '&cl-quote args))
                  (list* 'cl-defsubst-expand (list 'quote argns)
                         (list 'quote (list* 'block name body))
                         (not (or unsafe (cl-expr-access-order pbody argns)))