diff options
| author | Stefan Monnier | 2013-11-07 14:30:43 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2013-11-07 14:30:43 -0500 |
| commit | 3220d5279d488e51afb3a49cda5c48fa9ca4e36c (patch) | |
| tree | 40b3ac741ea2e9699843feaed5f77de0161cdf4a | |
| parent | 1eb1f9e08272246c5ac5533622bf069249cc73b4 (diff) | |
| download | emacs-3220d5279d488e51afb3a49cda5c48fa9ca4e36c.tar.gz emacs-3220d5279d488e51afb3a49cda5c48fa9ca4e36c.zip | |
* lisp/emacs-lisp/cl-macs.el (cl-symbol-macrolet): Use macroexp-progn.
(cl--block-wrapper): Fix last accidental change.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/cl-macs.el | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e8bebb17c4f..43e48cacd06 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-11-07 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * emacs-lisp/cl-macs.el (cl-symbol-macrolet): Use macroexp-progn. | ||
| 4 | (cl--block-wrapper): Fix last accidental change. | ||
| 5 | |||
| 1 | 2013-11-07 Michael Albinus <michael.albinus@gmx.de> | 6 | 2013-11-07 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * net/tramp-sh.el (tramp-set-remote-path, tramp-get-ls-command): | 8 | * net/tramp-sh.el (tramp-set-remote-path, tramp-get-ls-command): |
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index bd97bcb585c..2209297d553 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el | |||
| @@ -1993,9 +1993,8 @@ by EXPANSION, and (setq NAME ...) will act like (setf EXPANSION ...). | |||
| 1993 | (progn | 1993 | (progn |
| 1994 | (fset 'macroexpand #'cl--sm-macroexpand) | 1994 | (fset 'macroexpand #'cl--sm-macroexpand) |
| 1995 | (let ((expansion | 1995 | (let ((expansion |
| 1996 | ;; FIXME: For N bindings, this will traverse `body' | 1996 | ;; FIXME: For N bindings, this will traverse `body' N times! |
| 1997 | ;; N times! | 1997 | (macroexpand-all (macroexp-progn body) |
| 1998 | (macroexpand-all (cons 'progn body) | ||
| 1999 | (cons (list (symbol-name (caar bindings)) | 1998 | (cons (list (symbol-name (caar bindings)) |
| 2000 | (cl-cadar bindings)) | 1999 | (cl-cadar bindings)) |
| 2001 | macroexpand-all-environment)))) | 2000 | macroexpand-all-environment)))) |
| @@ -2739,7 +2738,7 @@ macro that returns its `&whole' argument." | |||
| 2739 | ;; FIXME: To avoid re-applying macroexpand-all, we'd like to be able | 2738 | ;; FIXME: To avoid re-applying macroexpand-all, we'd like to be able |
| 2740 | ;; to indicate that this return value is already fully expanded. | 2739 | ;; to indicate that this return value is already fully expanded. |
| 2741 | (if (cdr cl-entry) | 2740 | (if (cdr cl-entry) |
| 2742 | `(catch ,(nth 1 cl-form) ,@(cdr cl-body)) | 2741 | `(catch ,(nth 1 cl-form) ,@(macroexp-unprogn cl-body)) |
| 2743 | cl-body))) | 2742 | cl-body))) |
| 2744 | 2743 | ||
| 2745 | (cl-define-compiler-macro cl--block-throw (cl-tag cl-value) | 2744 | (cl-define-compiler-macro cl--block-throw (cl-tag cl-value) |