$ git clone git://github.com/mooz/js2-mode.git
$ cd js2-mode
- $ emacs --batch --eval '(byte-compile-file "js2-mode.el")'
+ $ emacs --batch -f batch-byte-compile js2-mode.el
Then, place js2-mode.elc into your site-lisp directory.
already indented to that predetermined column, indenting will choose
another likely column and indent to that spot. Repeated invocation of
the indent-line function will cycle among the computed alternatives.
-See the function `js2-bounce-indent' for details."
+See the function `js2-bounce-indent' for details. When it is non-nil,
+js2-mode also binds `js2-bounce-indent-backwards' to Shift-Tab."
:type 'boolean
:group 'js2-mode)
(js2-ast-root-p defining-scope))
(t t))))
-(defsubst js2-anonymous-wrapper-fn-p (node)
- "Returns t if NODE is an anonymous function that's invoked immediately.
+(defsubst js2-wrapper-function-p (node)
+ "Returns t if NODE is a function expression that's immediately invoked.
NODE must be `js2-function-node'."
(let ((parent (js2-node-parent node)))
(or
((setq parent-chain
(gethash fn js2-imenu-function-map))
'named)
- ((js2-anonymous-wrapper-fn-p fn) 'anon)
+ ((js2-wrapper-function-p fn) 'anon)
(t 'skip)))
(puthash fn fn-type js2-imenu-fn-type-map))
(case fn-type