summaryrefslogtreecommitdiff
path: root/lisp/progmodes/js.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2009-09-18 07:16:49 +0000
committerGlenn Morris <rgm@gnu.org>2009-09-18 07:16:49 +0000
commit07eae5c5e0769d5ade88330dede40231c88f2f56 (patch)
treeb6ca6d4765c97904db7fd2660840270e8aa643b7 /lisp/progmodes/js.el
parent6726c25e2d185adcf10e0d95f70f3ab26528cadc (diff)
downloademacs-07eae5c5e0769d5ade88330dede40231c88f2f56.tar.gz
(js-end-of-defun): Remove malformed and unneeded let.
Diffstat (limited to 'lisp/progmodes/js.el')
-rw-r--r--lisp/progmodes/js.el11
1 files changed, 5 insertions, 6 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index db8a52330c1..d2264043cb5 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -1211,12 +1211,11 @@ LIMIT defaults to point."
"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)