Mercurial > emacs
changeset 105076:8a45209e673f
(js-end-of-defun): Remove malformed and unneeded let.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Fri, 18 Sep 2009 07:16:49 +0000 |
parents | 9005ea5eb958 |
children | 927f49ae259a |
files | lisp/ChangeLog lisp/progmodes/js.el |
diffstat | 2 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- 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)