aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2007-04-05 17:57:05 +0000
committerChong Yidong2007-04-05 17:57:05 +0000
commit1fbb84daed4d143ecb8c4280d1398e8d358efb9b (patch)
tree7890b38ad5c2818f4932f023666d1b17c261d1de
parentc2d489d35a01c825bd9af2048a42a9247e09857d (diff)
downloademacs-1fbb84daed4d143ecb8c4280d1398e8d358efb9b.tar.gz
emacs-1fbb84daed4d143ecb8c4280d1398e8d358efb9b.zip
(byte-optimize-form-code-walker): Print entire form.
-rw-r--r--lisp/emacs-lisp/byte-opt.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el
index dd7e042499c..61f7268adff 100644
--- a/lisp/emacs-lisp/byte-opt.el
+++ b/lisp/emacs-lisp/byte-opt.el
@@ -534,6 +534,7 @@
534 (eq tmp 'error-free) 534 (eq tmp 'error-free)
535 ;; Detect the expansion of (pop foo). 535 ;; Detect the expansion of (pop foo).
536 ;; There is no need to compile the call to `car' there. 536 ;; There is no need to compile the call to `car' there.
537 (progn (setq foo (list form fn)) nil)
537 (and (eq fn 'car) 538 (and (eq fn 'car)
538 (eq (car-safe (cadr form)) 'prog1) 539 (eq (car-safe (cadr form)) 'prog1)
539 (let ((var (cadr (cadr form))) 540 (let ((var (cadr (cadr form)))
@@ -545,8 +546,8 @@
545 (eq (car-safe (nth 2 last)) 'cdr) 546 (eq (car-safe (nth 2 last)) 'cdr)
546 (eq (cadr (nth 2 last)) var)))) 547 (eq (cadr (nth 2 last)) var))))
547 (progn 548 (progn
548 (byte-compile-warn "value returned by `%s' is not used" 549 (byte-compile-warn "value returned from %s is unused"
549 (prin1-to-string (car form))) 550 (prin1-to-string form))
550 nil))) 551 nil)))
551 (byte-compile-log " %s called for effect; deleted" fn) 552 (byte-compile-log " %s called for effect; deleted" fn)
552 ;; appending a nil here might not be necessary, but it can't hurt. 553 ;; appending a nil here might not be necessary, but it can't hurt.