]> code.delx.au - gnu-emacs-elpa/commitdiff
Improve documentation
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 4 Apr 2011 18:09:12 +0000 (22:09 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 4 Apr 2011 18:17:07 +0000 (22:17 +0400)
Using `batch-byte-compile' function to make the command work under MS Windows.

README.md
js2-mode.el

index 3f863f1838c131430b7a5ad66d33c8a0d8f66376..d17a283a32e84ff98d833c3c08ea5ea441d75466 100644 (file)
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ Install
 
     $ 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.
 
index 8f30caf96f5ac46eb48a88b99769119c6106633d..50a76456a2cc9e3b53425c0075c8f91e678ff7c3 100644 (file)
@@ -223,7 +223,8 @@ based on heuristic guessing.  If non-nil, then if the current line is
 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)
 
@@ -6870,8 +6871,8 @@ that it's an external variable, which must also be in the top-level scope."
       (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
@@ -6916,7 +6917,7 @@ For instance, following a 'this' reference requires a parent function node."
                         ((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