]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
12 years agoLink to js2-refactor
Dmitry Gutov [Mon, 30 Jan 2012 14:16:58 +0000 (18:16 +0400)]
Link to js2-refactor

12 years agoFix fill-paragraph behavior
Dmitry Gutov [Wed, 25 Jan 2012 19:24:55 +0000 (23:24 +0400)]
Fix fill-paragraph behavior

Closes #34

12 years agoUpdate the README
Dmitry Gutov [Mon, 23 Jan 2012 23:55:56 +0000 (03:55 +0400)]
Update the README

12 years agoSkip 'this' nodes when building imenu index (regression)
Dmitry Gutov [Fri, 13 Jan 2012 20:04:38 +0000 (00:04 +0400)]
Skip 'this' nodes when building imenu index (regression)

12 years agoMerge commit 'b41a82' into imenu
Dmitry Gutov [Fri, 13 Jan 2012 19:43:40 +0000 (23:43 +0400)]
Merge commit 'b41a82' into imenu

12 years agoPlay nicer with font-lock
Dmitry Gutov [Wed, 11 Jan 2012 17:47:58 +0000 (21:47 +0400)]
Play nicer with font-lock

Since this makes the switch to using 'font-lock-face instead of 'face text
property (so that font-lock doesn't touch it when refontifying), the
highlighting now depends on font-lock being enabled.

I suppose we could check whether font-lock is enabled at runtime and use the one
or the other property, but really, who would disable font-lock and expect the
syntax highlighting to work?

Refs #32.

12 years agoFix 'jumping cursor' problem
Dmitry Gutov [Sun, 8 Jan 2012 18:55:50 +0000 (22:55 +0400)]
Fix 'jumping cursor' problem

Regression from the previous commit.
Refs #31.

12 years agoUse `with-current-buffer` instead of `save-excursion` + `set-buffer`
daimrod [Fri, 23 Dec 2011 17:07:23 +0000 (18:07 +0100)]
Use `with-current-buffer` instead of `save-excursion` + `set-buffer`

to fix the deprecation warnings

Closes #28

12 years agoEliminate the nasty 'max-lisp-eval-depth' bug during byte-compilation
Dmitry Gutov [Sun, 25 Dec 2011 15:17:32 +0000 (19:17 +0400)]
Eliminate the nasty 'max-lisp-eval-depth' bug during byte-compilation

12 years agoHandle unlimited function nesting in imenu index
Dmitry Gutov [Sat, 24 Dec 2011 22:41:14 +0000 (02:41 +0400)]
Handle unlimited function nesting in imenu index

Refs #27

12 years agoFix indentation of the 2nd line when the 1st line is blank
Dmitry Gutov [Sun, 13 Nov 2011 15:01:54 +0000 (19:01 +0400)]
Fix indentation of the 2nd line when the 1st line is blank

12 years agoDon't clobber minibuffer contents with warnings
Dmitry Gutov [Tue, 8 Nov 2011 07:53:46 +0000 (11:53 +0400)]
Don't clobber minibuffer contents with warnings

http://code.google.com/p/js2-mode/issues/detail?id=89

The fix stolen from `help-at-pt-maybe-display`.

12 years agoDon't mark strict mode decl as having no side effects
Dmitry Gutov [Tue, 8 Nov 2011 06:12:39 +0000 (10:12 +0400)]
Don't mark strict mode decl as having no side effects

Fixes #21

12 years agoRun `js2-mode-hook` before doing the first parse
Dmitry Gutov [Tue, 8 Nov 2011 04:56:03 +0000 (08:56 +0400)]
Run `js2-mode-hook` before doing the first parse

Fixes #20

12 years agoMerge pull request #19 from GunioRobot/clean
Dmitry Gutov [Thu, 27 Oct 2011 18:49:11 +0000 (11:49 -0700)]
Merge pull request #19 from GunioRobot/clean

Hi! I cleaned up your code for you!

12 years agoRemove whitespace [Gun.io WhitespaceBot]
Gun.io Whitespace Robot [Thu, 27 Oct 2011 18:05:42 +0000 (14:05 -0400)]
Remove whitespace [Gun.io WhitespaceBot]

12 years agoMerge pull request #17 from db48x/master
Masafumi Oyamada [Fri, 16 Sep 2011 06:28:48 +0000 (23:28 -0700)]
Merge pull request #17 from db48x/master

better syntax highlighting on jsdoc comments

12 years agomake the jsdoc highlighting recoginze optional parameters, which have names inside...
Daniel Brooks [Wed, 14 Sep 2011 23:17:01 +0000 (16:17 -0700)]
make the jsdoc highlighting recoginze optional parameters, which have names inside square brackets

12 years agoWhen don't need to extend the comment, just indent the line
Dmitry Gutov [Thu, 25 Aug 2011 20:23:41 +0000 (00:23 +0400)]
When don't need to extend the comment, just indent the line

Fixes #14

12 years agoAdd notation for byte-compilation. refs #13
mooz [Wed, 17 Aug 2011 14:37:11 +0000 (23:37 +0900)]
Add notation for byte-compilation. refs #13

12 years agoDo not warn about trailing commas in destructuring assignment arrays
Dmitry Gutov [Tue, 16 Aug 2011 13:29:44 +0000 (17:29 +0400)]
Do not warn about trailing commas in destructuring assignment arrays

Fixes http://code.google.com/p/js2-mode/issues/detail?id=110

13 years agoMark indentation vars as safe file-local variables
Dmitry Gutov [Thu, 5 May 2011 15:16:49 +0000 (19:16 +0400)]
Mark indentation vars as safe file-local variables

Fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=607110

13 years agoProperly record function qnames in object literals
Dmitry Gutov [Wed, 4 May 2011 23:01:36 +0000 (03:01 +0400)]
Properly record function qnames in object literals

This fixes imenu index for quux and baz:

let foo = {
  bar: function() {
    function quux() {
      // ...
    }

    let oot = {
      baz: function() {},
    }
  }
}

13 years agoHandle the case when the reparse is scheduled in an inactive buffer
Dmitry Gutov [Mon, 2 May 2011 20:25:06 +0000 (00:25 +0400)]
Handle the case when the reparse is scheduled in an inactive buffer

Fixes http://code.google.com/p/js2-mode/issues/detail?id=69

13 years agoClose #11 indent-for-tab-command: jump to indentation when inside it
Dmitry Gutov [Fri, 29 Apr 2011 00:35:43 +0000 (04:35 +0400)]
Close #11 indent-for-tab-command: jump to indentation when inside it

13 years agoIndent continued expressions in multiline declarations better
Dmitry Gutov [Wed, 27 Apr 2011 19:09:19 +0000 (23:09 +0400)]
Indent continued expressions in multiline declarations better

let a = 5 + 3,
    b = "booo" + "bar"
      + "toot" + "tar";

This change also makes `js2-auto-indent-p' less useful: each new line
in a declaration is automatically indented.

13 years agoFix indentation of empty array literals
Dmitry Gutov [Tue, 26 Apr 2011 21:20:40 +0000 (01:20 +0400)]
Fix indentation of empty array literals

13 years agoTypo
Dmitry Gutov [Mon, 25 Apr 2011 23:57:36 +0000 (03:57 +0400)]
Typo

13 years agoImprove `js-multiline-decl-indentation'
Dmitry Gutov [Mon, 25 Apr 2011 22:29:44 +0000 (02:29 +0400)]
Improve `js-multiline-decl-indentation'

* Top-level let/var/const form could be indented to infinity
* Support declarations without assignment

13 years agoClose #3 Indent function/array/object values in declarations better
Dmitry Gutov [Mon, 25 Apr 2011 21:47:33 +0000 (01:47 +0400)]
Close #3 Indent function/array/object values in declarations better

13 years agodelq -> remq
Dmitry Gutov [Mon, 25 Apr 2011 21:35:26 +0000 (01:35 +0400)]
delq -> remq

13 years agoDon't call `js2-mode-edit' when inside `indent-region'
Dmitry Gutov [Mon, 25 Apr 2011 14:49:58 +0000 (18:49 +0400)]
Don't call `js2-mode-edit' when inside `indent-region'

13 years ago`looking-back' is slow; don't use it when indenting
Dmitry Gutov [Mon, 25 Apr 2011 13:53:37 +0000 (17:53 +0400)]
`looking-back' is slow; don't use it when indenting

13 years agoUse `syntax-ppss' instead of `parse-partial-sexp' where appropriate
Dmitry Gutov [Mon, 25 Apr 2011 13:46:26 +0000 (17:46 +0400)]
Use `syntax-ppss' instead of `parse-partial-sexp' where appropriate

13 years agoSkip unary ops before both semicolon checks
Dmitry Gutov [Sun, 24 Apr 2011 00:47:31 +0000 (04:47 +0400)]
Skip unary ops before both semicolon checks

13 years agoUpdate README
Dmitry Gutov [Sat, 23 Apr 2011 18:20:54 +0000 (22:20 +0400)]
Update README

13 years agoPretty-indent multiline declarations without AST
Dmitry Gutov [Sat, 23 Apr 2011 17:17:32 +0000 (21:17 +0400)]
Pretty-indent multiline declarations without AST

13 years agoSimplify `js-ctrl-statement-indentation'
Dmitry Gutov [Thu, 21 Apr 2011 17:59:22 +0000 (21:59 +0400)]
Simplify `js-ctrl-statement-indentation'

13 years agoDon't discard the value of `js2-additional-externs'
Dmitry Gutov [Wed, 20 Apr 2011 22:53:14 +0000 (02:53 +0400)]
Don't discard the value of `js2-additional-externs'

The doc says it can be set in `js2-mode-hook', but `js2-reparse' discarded
the resulting value.

http://code.google.com/p/js2-mode/issues/detail?id=117

13 years agofix documentation
mooz [Thu, 7 Apr 2011 02:53:29 +0000 (11:53 +0900)]
fix documentation

13 years agoallow bare CDATA section e.g. let xml = <![CDATA[ foo bar baz ]]>;
mooz [Wed, 6 Apr 2011 14:47:38 +0000 (23:47 +0900)]
allow bare CDATA section e.g. let xml = <![CDATA[ foo bar baz ]]>;

13 years agoImprove documentation
Dmitry Gutov [Mon, 4 Apr 2011 18:09:12 +0000 (22:09 +0400)]
Improve documentation

Using `batch-byte-compile' function to make the command work under MS Windows.

13 years agoimenu: accept paren-free direct function call in `js2-anonymous-wrapper-fn-p'
mooz [Sat, 2 Apr 2011 03:49:37 +0000 (12:49 +0900)]
imenu: accept paren-free direct function call in `js2-anonymous-wrapper-fn-p'

// not supported before this commit
var a = function () {
    function bar() {
    }
}();

// supported
var b = (function () {
    function foo() {
    }
})();

13 years agoRefined code (Thanks dgutov)
mooz [Mon, 28 Mar 2011 15:03:51 +0000 (00:03 +0900)]
Refined code (Thanks dgutov)

https://github.com/mooz/js2-mode/commit/09a9e5e94c7175535e525d9f0645b1e4fc7bd404#commitcomment-318882

13 years agoRevert "don't use inner scope of `for` for iteration target."
mooz [Mon, 28 Mar 2011 15:00:25 +0000 (00:00 +0900)]
Revert "don't use inner scope of `for` for iteration target."

This reverts commit 09a9e5e94c7175535e525d9f0645b1e4fc7bd404.

13 years agodon't use inner scope of `for` for iteration target.
mooz [Mon, 28 Mar 2011 12:31:56 +0000 (21:31 +0900)]
don't use inner scope of `for` for iteration target.

13 years agogive correct scope for `for` statement
mooz [Mon, 28 Mar 2011 10:03:46 +0000 (19:03 +0900)]
give correct scope for `for` statement

13 years agoMerge branch 'bounce-indent' of https://github.com/dgutov/js2-mode into dgutov-bounce...
mooz [Mon, 28 Mar 2011 09:07:17 +0000 (18:07 +0900)]
Merge branch 'bounce-indent' of https://github.com/dgutov/js2-mode into dgutov-bounce-indent

13 years agobounce-indent: properly find the fourth likely point
Dmitry Gutov [Thu, 24 Mar 2011 15:28:28 +0000 (18:28 +0300)]
bounce-indent: properly find the fourth likely point

Properly find the fourth likely point even when the cursor is
not inside indentation.

13 years agoSort all bounce positions by indent size
Dmitry Gutov [Thu, 24 Mar 2011 15:26:55 +0000 (18:26 +0300)]
Sort all bounce positions by indent size

13 years agoAdd js2-indent-bounce-backwards
Dmitry Gutov [Wed, 23 Mar 2011 12:15:15 +0000 (15:15 +0300)]
Add js2-indent-bounce-backwards

13 years agoMake comment-* vars buffer-local
Dmitry Gutov [Tue, 22 Mar 2011 15:56:36 +0000 (18:56 +0300)]
Make comment-* vars buffer-local

http://code.google.com/p/js2-mode/issues/detail?id=86

13 years agoDeclare non-let symbols in current function or script, not block scope
Dmitry Gutov [Tue, 22 Mar 2011 13:21:54 +0000 (16:21 +0300)]
Declare non-let symbols in current function or script, not block scope

if (true) {
  function boo() {}
}

boo(); // declared

for (var i = 0; i < 4; ++i) { var j = i + 2; }

alert(i + ", " + j) // 4, 5

13 years agoFix 'Warning: Bug in js2-mode: it forgets to call 'run-mode-hooks''
Szymon Nowak [Mon, 14 Mar 2011 20:48:29 +0000 (21:48 +0100)]
Fix 'Warning: Bug in js2-mode: it forgets to call 'run-mode-hooks''

13 years ago`js2-imenu-fn-type-map' should be local to `js2-browse-postprocess-chains'
Dmitry Gutov [Sat, 26 Feb 2011 18:00:01 +0000 (21:00 +0300)]
`js2-imenu-fn-type-map' should be local to `js2-browse-postprocess-chains'

13 years agocorrected documentation of multi-line variable declaration
mooz [Mon, 21 Feb 2011 03:44:47 +0000 (12:44 +0900)]
corrected documentation of multi-line variable declaration

13 years agoprint catch clause correctly.
mooz [Sun, 20 Feb 2011 05:56:36 +0000 (14:56 +0900)]
print catch clause correctly.

13 years agoAccept destructuring form in catch clause
mooz [Sun, 20 Feb 2011 05:51:57 +0000 (14:51 +0900)]
Accept destructuring form in catch clause

13 years agoFix js2-nested-function-p for when node is `js2-ast-root'
Dmitry Gutov [Sun, 20 Feb 2011 00:30:40 +0000 (03:30 +0300)]
Fix js2-nested-function-p for when node is `js2-ast-root'

13 years agoDetect anonymous wrapper functions more reliably
Dmitry Gutov [Sat, 19 Feb 2011 21:08:33 +0000 (00:08 +0300)]
Detect anonymous wrapper functions more reliably

13 years agoDeclare exception symbol in the catch block
Dmitry Gutov [Fri, 18 Feb 2011 21:05:37 +0000 (00:05 +0300)]
Declare exception symbol in the catch block

13 years agoFix byte-compile warnings
Dmitry Gutov [Fri, 18 Feb 2011 19:35:03 +0000 (22:35 +0300)]
Fix byte-compile warnings

13 years agoDefer removing syntax-table text property until parsing is done
Dmitry Gutov [Fri, 18 Feb 2011 18:46:22 +0000 (21:46 +0300)]
Defer removing syntax-table text property until parsing is done

Resolves problem with large files that have a regex literal that
confuses the syntax table (like jquery.js).
Previously, if parsing was interrupted by user input, such regex
in a not-yet-parsed part of file broke `parse-partial-sexp' and,
consequently, `js2-enter-key'.

13 years agoRemove unnecessary checks
Dmitry Gutov [Fri, 18 Feb 2011 13:39:06 +0000 (16:39 +0300)]
Remove unnecessary checks

13 years agoFix js2-time
Dmitry Gutov [Fri, 18 Feb 2011 13:23:08 +0000 (16:23 +0300)]
Fix js2-time

13 years agoDon't visit empty nodes
Dmitry Gutov [Thu, 17 Feb 2011 20:41:30 +0000 (23:41 +0300)]
Don't visit empty nodes

That fixes js2-mode-forward-sexp when the buffer has parsing errors

13 years agowindow
mooz [Thu, 17 Feb 2011 04:01:39 +0000 (13:01 +0900)]
window

13 years agoArray pattern of the destructuring assignment allows empty element.
mooz [Thu, 17 Feb 2011 03:40:45 +0000 (12:40 +0900)]
Array pattern of the destructuring assignment allows empty element.

13 years agojs2-define-destruct-symbols: report error position and length
Dmitry Gutov [Wed, 16 Feb 2011 20:00:41 +0000 (23:00 +0300)]
js2-define-destruct-symbols: report error position and length

13 years agoUpdate credits
Dmitry Gutov [Wed, 16 Feb 2011 19:07:20 +0000 (22:07 +0300)]
Update credits

13 years agoUpdate README
Dmitry Gutov [Wed, 16 Feb 2011 18:56:09 +0000 (21:56 +0300)]
Update README

13 years agoDeclare and fontify destructured identifiers inside array comp loops
Dmitry Gutov [Wed, 16 Feb 2011 17:42:00 +0000 (20:42 +0300)]
Declare and fontify destructured identifiers inside array comp loops

13 years agoRearrange expr and loop scopes in array comprehension
Dmitry Gutov [Wed, 16 Feb 2011 16:50:59 +0000 (19:50 +0300)]
Rearrange expr and loop scopes in array comprehension

13 years agoDeclare and fontify destructured identifiers inside function
Dmitry Gutov [Wed, 16 Feb 2011 12:18:38 +0000 (15:18 +0300)]
Declare and fontify destructured identifiers inside function
parameters and variable declarations.

13 years ago"assign to" -> "use"
Dmitry Gutov [Tue, 15 Feb 2011 01:06:58 +0000 (04:06 +0300)]
"assign to" -> "use"

13 years agoNo need for progn here
Dmitry Gutov [Tue, 15 Feb 2011 00:58:56 +0000 (03:58 +0300)]
No need for progn here

13 years agoFix typo
Dmitry Gutov [Tue, 15 Feb 2011 00:34:40 +0000 (03:34 +0300)]
Fix typo

13 years agoHighlight undeclared vars everywhere, not just in assignments
Dmitry Gutov [Mon, 14 Feb 2011 20:36:18 +0000 (23:36 +0300)]
Highlight undeclared vars everywhere, not just in assignments

13 years agoRemove an extra comma
Dmitry Gutov [Sun, 13 Feb 2011 12:47:21 +0000 (15:47 +0300)]
Remove an extra comma

13 years agoUpdate README
Dmitry Gutov [Sun, 13 Feb 2011 00:22:45 +0000 (03:22 +0300)]
Update README

13 years agoUpdate README
Dmitry Gutov [Sun, 13 Feb 2011 00:11:01 +0000 (03:11 +0300)]
Update README

13 years agoAdd imenu support for function nesting
Dmitry Gutov [Sat, 12 Feb 2011 23:55:25 +0000 (02:55 +0300)]
Add imenu support for function nesting

* Nesting is limited to 1 level
* Assignments to 'this' inside nested functions are discarded
* Top-level function can be anonymous, then it doesn't contribute to qname

13 years agoUpdate README
Dmitry Gutov [Sat, 12 Feb 2011 16:17:42 +0000 (19:17 +0300)]
Update README

13 years agoFix js2-compute-nested-prop-get to not recognize form foo[bar]
Dmitry Gutov [Sat, 12 Feb 2011 15:53:46 +0000 (18:53 +0300)]
Fix js2-compute-nested-prop-get to not recognize form foo[bar]

13 years agoRecord proper positions for function nodes in nested object literals
Dmitry Gutov [Fri, 11 Feb 2011 20:57:40 +0000 (23:57 +0300)]
Record proper positions for function nodes in nested object literals

13 years agoRecognize form foo['a'] = function() in imenu
Dmitry Gutov [Fri, 11 Feb 2011 19:30:06 +0000 (22:30 +0300)]
Recognize form foo['a'] = function() in imenu

13 years agoreparse only `js2-use-ast-for-indentation-p` is non-nil
mooz [Sun, 2 Jan 2011 05:51:24 +0000 (14:51 +0900)]
reparse only `js2-use-ast-for-indentation-p` is non-nil

13 years agoreparse line in indentation
mooz [Sun, 2 Jan 2011 05:16:34 +0000 (14:16 +0900)]
reparse line in indentation

13 years agoMerge branch 'master' of github.com:mooz/js2-mode
mooz [Thu, 30 Dec 2010 09:39:19 +0000 (18:39 +0900)]
Merge branch 'master' of github.com:mooz/js2-mode

13 years agofixed bugs indentation
mooz [Thu, 30 Dec 2010 02:17:37 +0000 (11:17 +0900)]
fixed bugs indentation

13 years agofixed bugs indentation
mooz [Thu, 30 Dec 2010 02:17:37 +0000 (11:17 +0900)]
fixed bugs indentation

13 years agooops
mooz [Wed, 29 Dec 2010 05:45:17 +0000 (14:45 +0900)]
oops

13 years agouse offset 4 for `var` and `let`, and 6 for `const`.
mooz [Wed, 29 Dec 2010 04:56:03 +0000 (13:56 +0900)]
use offset 4 for `var` and `let`, and 6 for `const`.

13 years agoupdated README.md
mooz [Tue, 28 Dec 2010 15:06:07 +0000 (00:06 +0900)]
updated README.md

13 years agoforgot `const{
mooz [Tue, 28 Dec 2010 14:35:50 +0000 (23:35 +0900)]
forgot `const{

13 years agofixed ugly indentation with multiple variable declaration. closes #1.
mooz [Tue, 28 Dec 2010 14:25:02 +0000 (23:25 +0900)]
fixed ugly indentation with multiple variable declaration. closes #1.

13 years agoouch
mooz [Thu, 2 Dec 2010 16:02:23 +0000 (01:02 +0900)]
ouch

13 years agooops
mooz [Thu, 2 Dec 2010 14:33:20 +0000 (23:33 +0900)]
oops

13 years agosupport patterns like [{a}]
mooz [Thu, 2 Dec 2010 14:31:34 +0000 (23:31 +0900)]
support patterns like [{a}]

13 years agoAllow abbreviated destructuring assignment in array comprehension
mooz [Wed, 1 Dec 2010 03:10:04 +0000 (12:10 +0900)]
Allow abbreviated destructuring assignment in array comprehension