Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
07eae5c5
Commit
07eae5c5
authored
Sep 18, 2009
by
Glenn Morris
Browse files
(js-end-of-defun): Remove malformed and unneeded let.
parent
6726c25e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/progmodes/js.el
lisp/progmodes/js.el
+5
-6
No files found.
lisp/ChangeLog
View file @
07eae5c5
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.
...
...
lisp/progmodes/js.el
View file @
07eae5c5
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment