aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-11-14 04:41:56 +0000
committerGerd Moellmann2000-11-14 04:41:56 +0000
commit936ae731f35a288ebd5fc875f4123eaa286c5f50 (patch)
treed8d1c9d84e115bd4a32c5542f6719890e0288aff
parentd7361edf01f3c7b4cc76d27e36b7e9dbad597147 (diff)
downloademacs-936ae731f35a288ebd5fc875f4123eaa286c5f50.tar.gz
emacs-936ae731f35a288ebd5fc875f4123eaa286c5f50.zip
(byte-compile-unfold-lambda): Don't
recursively optimize body because that can lead to infinite recursion; see comment there.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/emacs-lisp/byte-opt.el7
2 files changed, 12 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 843de781e06..50fd8376e45 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12000-11-14 Gerd Moellmann <gerd@gnu.org>
2
3 * emacs-lisp/byte-opt.el (byte-compile-unfold-lambda): Don't
4 recursively optimize body because that can lead to infinite
5 recursion; see comment there.
6
12000-11-13 Eli Zaretskii <eliz@is.elta.co.il> 72000-11-13 Eli Zaretskii <eliz@is.elta.co.il>
2 8
3 * faces.el (face-spec-set-match-display): Revert the change from 9 * faces.el (face-spec-set-match-display): Revert the change from
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el
index c3c8e677239..da695386604 100644
--- a/lisp/emacs-lisp/byte-opt.el
+++ b/lisp/emacs-lisp/byte-opt.el
@@ -340,7 +340,12 @@
340 (byte-compile-warn 340 (byte-compile-warn
341 "Attempt to open-code `%s' with too many arguments" name)) 341 "Attempt to open-code `%s' with too many arguments" name))
342 form) 342 form)
343 (setq body (mapcar 'byte-optimize-form body)) 343
344 ;; The following leads to infinite recursion when loading a
345 ;; file containing `(defsubst f () (f))', and then trying to
346 ;; byte-compile that file.
347 ;(setq body (mapcar 'byte-optimize-form body)))
348
344 (let ((newform 349 (let ((newform
345 (if bindings 350 (if bindings
346 (cons 'let (cons (nreverse bindings) body)) 351 (cons 'let (cons (nreverse bindings) body))