From: Dave Love Date: Mon, 2 Oct 2000 17:44:51 +0000 (+0000) Subject: (byte-optimize-lapcode): Don't bind X-Git-Tag: emacs-pretest-21.0.90~1214 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=944425c0c3bbee783b07c4fb5dc69a92c2c5355e;p=emacs.git (byte-optimize-lapcode): Don't bind unused vars. Treat byte-constant2 like byte-constant. Fix bogus comparison of opcode with operand. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 017ff92aac2..5bc1ca906d5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2000-10-02 Dave Love + + * emacs-lisp/byte-opt.el (byte-optimize-lapcode): Don't bind + unused vars. Treat byte-constant2 like byte-constant. Fix bogus + comparison of opcode with operand. + 2000-10-03 Miles Bader * play/yow.el (yow): Don't display multi-line quotations in a *Help* diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el index e1cc0db3f36..c3c8e677239 100644 --- a/lisp/emacs-lisp/byte-opt.el +++ b/lisp/emacs-lisp/byte-opt.el @@ -1415,9 +1415,9 @@ (defun byte-optimize-lapcode (lap &optional for-effect) "Simple peephole optimizer. LAP is both modified and returned." - (let (lap0 off0 - lap1 off1 - lap2 off2 + (let (lap0 + lap1 + lap2 (keep-going 'first-time) (add-depth 0) rest tmp tmp2 tmp3