aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/js.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 36c4c6ae4e8..7365e8c274e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12013-11-22 Mihir Rege <mihirrege@gmail.com> (tiny change)
2
3 * progmodes/js.el (js--ctrl-statement-indentation): Fix indent
4 when control-statement is the first statement in a buffer (Bug#15956).
5
12013-11-24 Dmitry Gutov <dgutov@yandex.ru> 62013-11-24 Dmitry Gutov <dgutov@yandex.ru>
2 7
3 * imenu.el (imenu-generic-skip-comments-and-strings): 8 * imenu.el (imenu-generic-skip-comments-and-strings):
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 49a21933133..17c13607d71 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -1749,8 +1749,8 @@ nil."
1749 (when (save-excursion 1749 (when (save-excursion
1750 (and (not (eq (point-at-bol) (point-min))) 1750 (and (not (eq (point-at-bol) (point-min)))
1751 (not (looking-at "[{]")) 1751 (not (looking-at "[{]"))
1752 (js--re-search-backward "[[:graph:]]" nil t)
1752 (progn 1753 (progn
1753 (js--re-search-backward "[[:graph:]]" nil t)
1754 (or (eobp) (forward-char)) 1754 (or (eobp) (forward-char))
1755 (when (= (char-before) ?\)) (backward-list)) 1755 (when (= (char-before) ?\)) (backward-list))
1756 (skip-syntax-backward " ") 1756 (skip-syntax-backward " ")