diff options
| author | Glenn Morris | 2011-05-11 19:36:05 -0700 |
|---|---|---|
| committer | Glenn Morris | 2011-05-11 19:36:05 -0700 |
| commit | d45885f7e0025fb5bd0756ba78c511a981d64533 (patch) | |
| tree | 536f1c2f0090603be5e828577038eb4beb78494b | |
| parent | 488086f4dd22b95c37cf23bd4d1d9cc190aaf6b8 (diff) | |
| download | emacs-d45885f7e0025fb5bd0756ba78c511a981d64533.tar.gz emacs-d45885f7e0025fb5bd0756ba78c511a981d64533.zip | |
bytecomp.el fix for bug#8647
* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defmumble):
Let byte-compile-initial-macro-environment always take precedence.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 40e9b00cd33..b223382b271 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-05-12 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/bytecomp.el (byte-compile-file-form-defmumble): | ||
| 4 | Let byte-compile-initial-macro-environment always take precedence. | ||
| 5 | |||
| 1 | 2011-05-12 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2011-05-12 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * net/rcirc.el: Add support for SSL/TLS connections. | 8 | * net/rcirc.el: Add support for SSL/TLS connections. |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 02b886cdda0..e7f2115a848 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -2421,7 +2421,11 @@ by side-effects." | |||
| 2421 | 2421 | ||
| 2422 | (let* ((code (byte-compile-lambda (nthcdr 2 form) t))) | 2422 | (let* ((code (byte-compile-lambda (nthcdr 2 form) t))) |
| 2423 | (if this-one | 2423 | (if this-one |
| 2424 | (setcdr this-one code) | 2424 | ;; A definition in b-c-initial-m-e should always take precedence |
| 2425 | ;; during compilation, so don't let it be redefined. (Bug#8647) | ||
| 2426 | (or (and macrop | ||
| 2427 | (assq name byte-compile-initial-macro-environment)) | ||
| 2428 | (setcdr this-one code)) | ||
| 2425 | (set this-kind | 2429 | (set this-kind |
| 2426 | (cons (cons name code) | 2430 | (cons (cons name code) |
| 2427 | (symbol-value this-kind)))) | 2431 | (symbol-value this-kind)))) |