]> code.delx.au - gnu-emacs-elpa/commitdiff
reparse line in indentation
authormooz <stillpedant@gmail.com>
Sun, 2 Jan 2011 05:16:34 +0000 (14:16 +0900)
committermooz <stillpedant@gmail.com>
Sun, 2 Jan 2011 05:16:34 +0000 (14:16 +0900)
js2-mode.el

index 1c06b0eac273237b7fd89e932f47fcf116b7907d..e3a6ee5e270615eac3c054bf53dcb78ec0d89618 100644 (file)
@@ -10214,6 +10214,8 @@ If so, we don't ever want to use bounce-indent."
 (defun js2-indent-line ()
   "Indent the current line as JavaScript source text."
   (interactive)
+  ;; TODO: do not reparse
+  (js2-reparse)
   (let (parse-status
         current-indent
         offset