diff options
| author | Richard M. Stallman | 1998-01-22 02:26:48 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-01-22 02:26:48 +0000 |
| commit | 16c9c10f0ffeabcd838ced945dbb9da819899345 (patch) | |
| tree | c55c70a9fb5ef2e2ef04fd3f30c807c6896e4826 | |
| parent | 5428ee0299d1a757ed2459342104354b1ab98708 (diff) | |
| download | emacs-16c9c10f0ffeabcd838ced945dbb9da819899345.tar.gz emacs-16c9c10f0ffeabcd838ced945dbb9da819899345.zip | |
(define-compiler-macro): Handle empty arglist.
| -rw-r--r-- | lisp/emacs-lisp/cl-macs.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index 37d02b564cb..e6656a168b1 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el | |||
| @@ -2440,9 +2440,9 @@ compiler macros are expanded repeatedly until no further expansions are | |||
| 2440 | possible. Unlike regular macros, BODY can decide to \"punt\" and leave the | 2440 | possible. Unlike regular macros, BODY can decide to \"punt\" and leave the |
| 2441 | original function call alone by declaring an initial `&whole foo' parameter | 2441 | original function call alone by declaring an initial `&whole foo' parameter |
| 2442 | and then returning foo." | 2442 | and then returning foo." |
| 2443 | (let ((p (if (listp args) args (list '&rest args))) (res nil)) | 2443 | (let ((p args) (res nil)) |
| 2444 | (while (consp p) (cl-push (cl-pop p) res)) | 2444 | (while (consp p) (cl-push (cl-pop p) res)) |
| 2445 | (setq args (nreverse res)) (setcdr res (and p (list '&rest p)))) | 2445 | (setq args (nconc (nreverse res) (and p (list '&rest p))))) |
| 2446 | (list 'eval-when '(compile load eval) | 2446 | (list 'eval-when '(compile load eval) |
| 2447 | (cl-transform-function-property | 2447 | (cl-transform-function-property |
| 2448 | func 'cl-compiler-macro | 2448 | func 'cl-compiler-macro |