diff options
| author | Stefan Monnier | 2010-06-16 17:11:06 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-06-16 17:11:06 -0400 |
| commit | 49b2e83db4e53168cfdef4caf0c9ea975397e044 (patch) | |
| tree | 3a4a007e156fd42f4d466d1c10bd374687d3fb2c | |
| parent | 2a64315a111fb4da67e9c40c9b69045c4f63d619 (diff) | |
| download | emacs-49b2e83db4e53168cfdef4caf0c9ea975397e044.tar.gz emacs-49b2e83db4e53168cfdef4caf0c9ea975397e044.zip | |
* lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Don't handle `lambda'
specially, since it's a macro. Fix up wrong hint passed to maybe-cons.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/cl-loaddefs.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/macroexp.el | 7 |
3 files changed, 5 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a70c564b1ef..18c99d4ebf0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * emacs-lisp/macroexp.el (macroexpand-all-1): Don't handle `lambda' | ||
| 4 | specially, since it's a macro. Fix up wrong hint passed to maybe-cons. | ||
| 5 | |||
| 3 | * font-lock.el (font-lock-major-mode): Rename from | 6 | * font-lock.el (font-lock-major-mode): Rename from |
| 4 | font-lock-mode-major-mode to distinguish it from | 7 | font-lock-mode-major-mode to distinguish it from |
| 5 | global-font-lock-mode's own font-lock-mode-major-mode (bug#6135). | 8 | global-font-lock-mode's own font-lock-mode-major-mode (bug#6135). |
diff --git a/lisp/emacs-lisp/cl-loaddefs.el b/lisp/emacs-lisp/cl-loaddefs.el index 325c7b1479f..b14c879fcf7 100644 --- a/lisp/emacs-lisp/cl-loaddefs.el +++ b/lisp/emacs-lisp/cl-loaddefs.el | |||
| @@ -282,7 +282,7 @@ Not documented | |||
| 282 | ;;;;;; flet progv psetq do-all-symbols do-symbols dotimes dolist | 282 | ;;;;;; flet progv psetq do-all-symbols do-symbols dotimes dolist |
| 283 | ;;;;;; do* do loop return-from return block etypecase typecase ecase | 283 | ;;;;;; do* do loop return-from return block etypecase typecase ecase |
| 284 | ;;;;;; case load-time-value eval-when destructuring-bind function* | 284 | ;;;;;; case load-time-value eval-when destructuring-bind function* |
| 285 | ;;;;;; defmacro* defun* gentemp gensym) "cl-macs" "cl-macs.el" "fbeedbf769c72fee9b4e0671957c1077") | 285 | ;;;;;; defmacro* defun* gentemp gensym) "cl-macs" "cl-macs.el" "36cafd5054969b5bb0b1ce6a21605fed") |
| 286 | ;;; Generated autoloads from cl-macs.el | 286 | ;;; Generated autoloads from cl-macs.el |
| 287 | 287 | ||
| 288 | (autoload 'gensym "cl-macs" "\ | 288 | (autoload 'gensym "cl-macs" "\ |
diff --git a/lisp/emacs-lisp/macroexp.el b/lisp/emacs-lisp/macroexp.el index 364e3540703..aabf940964b 100644 --- a/lisp/emacs-lisp/macroexp.el +++ b/lisp/emacs-lisp/macroexp.el | |||
| @@ -134,7 +134,7 @@ Assumes the caller has bound `macroexpand-all-environment'." | |||
| 134 | (maybe-cons fun | 134 | (maybe-cons fun |
| 135 | (maybe-cons (macroexpand-all-forms (cadr form) 2) | 135 | (maybe-cons (macroexpand-all-forms (cadr form) 2) |
| 136 | nil | 136 | nil |
| 137 | (cadr form)) | 137 | (cdr form)) |
| 138 | form) | 138 | form) |
| 139 | form)) | 139 | form)) |
| 140 | ((memq fun '(let let*)) | 140 | ((memq fun '(let let*)) |
| @@ -145,11 +145,6 @@ Assumes the caller has bound `macroexpand-all-environment'." | |||
| 145 | form)) | 145 | form)) |
| 146 | ((eq fun 'quote) | 146 | ((eq fun 'quote) |
| 147 | form) | 147 | form) |
| 148 | ((and (consp fun) (eq (car fun) 'lambda)) | ||
| 149 | ;; embedded lambda | ||
| 150 | (maybe-cons (macroexpand-all-forms fun 2) | ||
| 151 | (macroexpand-all-forms (cdr form)) | ||
| 152 | form)) | ||
| 153 | ;; The following few cases are for normal function calls that | 148 | ;; The following few cases are for normal function calls that |
| 154 | ;; are known to funcall one of their arguments. The byte | 149 | ;; are known to funcall one of their arguments. The byte |
| 155 | ;; compiler has traditionally handled these functions specially | 150 | ;; compiler has traditionally handled these functions specially |