]> git.eshelyaron.com Git - emacs.git/commitdiff
(byte-optimize-form-code-walker): Print entire form.
authorChong Yidong <cyd@stupidchicken.com>
Thu, 5 Apr 2007 17:57:05 +0000 (17:57 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 5 Apr 2007 17:57:05 +0000 (17:57 +0000)
lisp/emacs-lisp/byte-opt.el

index dd7e042499c6315033d6d964eefe02f9a994f816..61f7268adff8300bfd72385bd7f06ec1fbae30e0 100644 (file)
                    (eq tmp 'error-free)
                    ;; Detect the expansion of (pop foo).
                    ;; There is no need to compile the call to `car' there.
+                   (progn (setq foo (list form fn)) nil)
                    (and (eq fn 'car)
                         (eq (car-safe (cadr form)) 'prog1)
                         (let ((var (cadr (cadr form)))
                                (eq (car-safe (nth 2 last)) 'cdr)
                                (eq (cadr (nth 2 last)) var))))
                    (progn
-                     (byte-compile-warn "value returned by `%s' is not used"
-                                        (prin1-to-string (car form)))
+                     (byte-compile-warn "value returned from %s is unused"
+                                        (prin1-to-string form))
                      nil)))
           (byte-compile-log "  %s called for effect; deleted" fn)
           ;; appending a nil here might not be necessary, but it can't hurt.