# HG changeset patch
# User Glenn Morris <rgm@gnu.org>
# Date 1253258209 0
# Node ID 8a45209e673fb231a599b4cdf86771ee32842561
# Parent  9005ea5eb958c8f53073e1f6d5d6fe3236990ac0
(js-end-of-defun): Remove malformed and unneeded let.

diff -r 9005ea5eb958 -r 8a45209e673f lisp/ChangeLog
--- a/lisp/ChangeLog	Fri Sep 18 07:14:43 2009 +0000
+++ b/lisp/ChangeLog	Fri Sep 18 07:16:49 2009 +0000
@@ -1,5 +1,7 @@
 2009-09-18  Glenn Morris  <rgm@gnu.org>
 
+	* progmodes/js.el (js-end-of-defun): Remove malformed and unneeded let.
+
 	* emacs-lisp/derived.el (define-derived-mode): Fix paren typo in
 	definition of abbrev table.
 
diff -r 9005ea5eb958 -r 8a45209e673f lisp/progmodes/js.el
--- a/lisp/progmodes/js.el	Fri Sep 18 07:14:43 2009 +0000
+++ b/lisp/progmodes/js.el	Fri Sep 18 07:16:49 2009 +0000
@@ -1211,12 +1211,11 @@
   "Value of `end-of-defun-function' for `js-mode'."
   (setq arg (or arg 1))
   (while (and (not (bobp)) (< arg 0))
-    (let (orig-pos (point))
-      (incf arg)
-      (js-beginning-of-defun)
-      (js-beginning-of-defun)
-      (unless (bobp)
-        (js-end-of-defun))))
+    (incf arg)
+    (js-beginning-of-defun)
+    (js-beginning-of-defun)
+    (unless (bobp)
+      (js-end-of-defun)))
 
   (while (> arg 0)
     (decf arg)