aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorMihir Rege2013-11-25 00:01:08 +0200
committerDmitry Gutov2013-11-25 00:01:08 +0200
commit64e415297c09d9c92a6b1460c19f97fb4446844d (patch)
tree9d67acb89480e9ba3093e9bb5c1e3c6d3210f9c5 /lisp/progmodes
parentee4f026188438f2531364fb042af91b427c0b944 (diff)
downloademacs-64e415297c09d9c92a6b1460c19f97fb4446844d.tar.gz
emacs-64e415297c09d9c92a6b1460c19f97fb4446844d.zip
* lisp/progmodes/js.el (js--ctrl-statement-indentation): Fix indent
when control-statement is the first statement in a buffer. Fixes: debbugs:15956
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/js.el2
1 files changed, 1 insertions, 1 deletions
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 " ")