Commit 64e41529 authored by Mihir Rege's avatar Mihir Rege Committed by Dmitry Gutov
Browse files

* lisp/progmodes/js.el (js--ctrl-statement-indentation): Fix indent

when control-statement is the first statement in a buffer.

Fixes: debbugs:15956
parent ee4f0261
2013-11-22 Mihir Rege <mihirrege@gmail.com> (tiny change)
* progmodes/js.el (js--ctrl-statement-indentation): Fix indent
when control-statement is the first statement in a buffer (Bug#15956).
2013-11-24 Dmitry Gutov <dgutov@yandex.ru>
* imenu.el (imenu-generic-skip-comments-and-strings):
......
......@@ -1749,8 +1749,8 @@ nil."
(when (save-excursion
(and (not (eq (point-at-bol) (point-min)))
(not (looking-at "[{]"))
(js--re-search-backward "[[:graph:]]" nil t)
(progn
(js--re-search-backward "[[:graph:]]" nil t)
(or (eobp) (forward-char))
(when (= (char-before) ?\)) (backward-list))
(skip-syntax-backward " ")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment