]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
11 years agoyou -> your
Dmitry Gutov [Tue, 11 Sep 2012 02:03:10 +0000 (06:03 +0400)]
you -> your

11 years agoAdd section "Emacs 24"
Dmitry Gutov [Tue, 11 Sep 2012 01:54:25 +0000 (05:54 +0400)]
Add section "Emacs 24"

11 years agoFix #66
Dmitry Gutov [Sat, 8 Sep 2012 16:06:49 +0000 (20:06 +0400)]
Fix #66

11 years agoFix #63
Dmitry Gutov [Mon, 3 Sep 2012 22:42:57 +0000 (02:42 +0400)]
Fix #63

11 years agoFix infinite timers loop
Dmitry Gutov [Sun, 2 Sep 2012 22:29:44 +0000 (02:29 +0400)]
Fix infinite timers loop

Refs #49

11 years agojs2-mode-forward-sexp: When inside "parens", jump over closest child node
Dmitry Gutov [Sun, 2 Sep 2012 22:03:16 +0000 (02:03 +0400)]
js2-mode-forward-sexp: When inside "parens", jump over closest child node

11 years agojs2-mode-forward-sexp-parens: if/else and loop bodies are js2-scope nodes
Dmitry Gutov [Sun, 2 Sep 2012 18:22:32 +0000 (22:22 +0400)]
js2-mode-forward-sexp-parens: if/else and loop bodies are js2-scope nodes

11 years agojs2-mode-forward-sexp: Signal scan-error when start == rp
Dmitry Gutov [Fri, 31 Aug 2012 03:39:17 +0000 (07:39 +0400)]
js2-mode-forward-sexp: Signal scan-error when start == rp

11 years agojs2-mode-forward-sexp: backtrack before signaling scan-error
Dmitry Gutov [Wed, 29 Aug 2012 19:33:52 +0000 (23:33 +0400)]
js2-mode-forward-sexp: backtrack before signaling scan-error

* Jump past the semicolon when current node's parent is expr-stmt-node.

11 years agojs2-mode-forward-sexp: Behave more similarly to `forward-sexp'
Dmitry Gutov [Wed, 29 Aug 2012 17:24:47 +0000 (21:24 +0400)]
js2-mode-forward-sexp: Behave more similarly to `forward-sexp'

* Stop at node parens
* Signal scan-error upon reaching a parenthesized expression boundary
* If the buffer is dirty, reparse it synchronously

This increases compatibility with standard *-list commands, evil-mode paren
motions, and blink-matching-paren feature.

Close #56
Close #44

js2-node-rp: Fix for js2-elem-get-node.

11 years agoFix #58
Dmitry Gutov [Fri, 13 Jul 2012 03:43:38 +0000 (07:43 +0400)]
Fix #58

11 years agoFix #57
Dmitry Gutov [Fri, 6 Jul 2012 00:21:19 +0000 (04:21 +0400)]
Fix #57

11 years agoMake some lines tighter
Dmitry Gutov [Sun, 17 Jun 2012 08:33:25 +0000 (12:33 +0400)]
Make some lines tighter

11 years agoFix comment
Dmitry Gutov [Sun, 17 Jun 2012 08:13:48 +0000 (12:13 +0400)]
Fix comment

11 years agoParse rest parameter
Dmitry Gutov [Sun, 17 Jun 2012 07:42:41 +0000 (11:42 +0400)]
Parse rest parameter

Closes #51

11 years agoParse default parameters
Dmitry Gutov [Sun, 17 Jun 2012 06:16:14 +0000 (10:16 +0400)]
Parse default parameters

Closes #50

11 years agoSimplify `js2-test-ast-string'
Dmitry Gutov [Sun, 17 Jun 2012 04:19:43 +0000 (08:19 +0400)]
Simplify `js2-test-ast-string'

11 years agoSet js2-basic-offset in tests explicitly
Dmitry Gutov [Sun, 17 Jun 2012 04:10:54 +0000 (08:10 +0400)]
Set js2-basic-offset in tests explicitly

11 years agoPrint space after colon in prop nodes
Dmitry Gutov [Sun, 17 Jun 2012 04:00:30 +0000 (08:00 +0400)]
Print space after colon in prop nodes

11 years agoFix catch param with destructuring binding
Dmitry Gutov [Sun, 17 Jun 2012 03:59:02 +0000 (07:59 +0400)]
Fix catch param with destructuring binding

11 years agoRename js2-is-in-lhs -> js2-is-in-destructuring (like in Rhino)
Dmitry Gutov [Sun, 17 Jun 2012 03:54:39 +0000 (07:54 +0400)]
Rename js2-is-in-lhs -> js2-is-in-destructuring (like in Rhino)

* Edit comments.
* Add some tests.

11 years agoAdd test Makefile target
Dmitry Gutov [Fri, 15 Jun 2012 18:45:12 +0000 (22:45 +0400)]
Add test Makefile target

11 years agoMake 'of' contextual keyword
Dmitry Gutov [Thu, 14 Jun 2012 13:03:06 +0000 (17:03 +0400)]
Make 'of' contextual keyword

Refs #53

11 years agoFix parsing of keyword property names
Dmitry Gutov [Thu, 14 Jun 2012 11:43:49 +0000 (15:43 +0400)]
Fix parsing of keyword property names

Closes #54

Also prohibit keyword identifiers in array comp loops

11 years agoSupport for..of in loops and array comprehensions
Dmitry Gutov [Wed, 13 Jun 2012 04:37:45 +0000 (08:37 +0400)]
Support for..of in loops and array comprehensions

Refs #53

11 years agoAdd Makefile for byte compiling
Francois-Xavier Kowalski [Mon, 11 Jun 2012 08:07:01 +0000 (12:07 +0400)]
Add Makefile for byte compiling

11 years agoFix built-in properties highlighting
Dmitry Gutov [Mon, 11 Jun 2012 07:10:57 +0000 (11:10 +0400)]
Fix built-in properties highlighting

11 years agoAdd ECMA-262 JSON object
Matthew Noorenberghe [Sun, 10 Jun 2012 20:25:51 +0000 (13:25 -0700)]
Add ECMA-262 JSON object

11 years agoReduce the indentation variables count
Dmitry Gutov [Tue, 1 May 2012 23:49:10 +0000 (03:49 +0400)]
Reduce the indentation variables count

* Remove `js2-consistent-level-indent-inner-bracket-p` (assume it's always t).
* Merge `js2-pretty-multiline-decl-indentation-p` and
  `js2-always-indent-assigned-expr-in-decls-p` into one as
  `js2-pretty-multiline-declarations`.
* Make the description more clear.

Conflicts:

js2-mode.el: `js2-multiline-decl-indentation` docstring

11 years agoMake `js2-parse-primary-expr-lhs` a defun
Dmitry Gutov [Tue, 5 Jun 2012 23:13:42 +0000 (03:13 +0400)]
Make `js2-parse-primary-expr-lhs` a defun

Closes #43

11 years agoUse consistent package prefix for all vars
Dmitry Gutov [Tue, 5 Jun 2012 23:12:42 +0000 (03:12 +0400)]
Use consistent package prefix for all vars

11 years agoForgot a single quote
Dmitry Gutov [Sun, 3 Jun 2012 16:05:19 +0000 (20:05 +0400)]
Forgot a single quote

11 years agojs2-imenu-extras: Fix usage example
Dmitry Gutov [Sun, 3 Jun 2012 02:16:29 +0000 (06:16 +0400)]
js2-imenu-extras: Fix usage example

11 years agoMerge branch 'imenu'
Dmitry Gutov [Sun, 3 Jun 2012 02:11:27 +0000 (06:11 +0400)]
Merge branch 'imenu'

11 years agoFix recorded module function node position
Dmitry Gutov [Sun, 3 Jun 2012 02:09:14 +0000 (06:09 +0400)]
Fix recorded module function node position

11 years agoAdd comments
Dmitry Gutov [Sun, 3 Jun 2012 01:29:55 +0000 (05:29 +0400)]
Add comments

11 years agoMove module pattern support to `js2-imenu-extras`
Dmitry Gutov [Sun, 3 Jun 2012 00:48:12 +0000 (04:48 +0400)]
Move module pattern support to `js2-imenu-extras`

11 years agoMerge pull request #48 from lewang/master
Dmitry Gutov [Wed, 23 May 2012 17:03:15 +0000 (10:03 -0700)]
Merge pull request #48 from lewang/master

11 years agoremove duplicate js2-strict-cond-assign-warning
Le Wang [Wed, 23 May 2012 15:17:41 +0000 (23:17 +0800)]
remove duplicate js2-strict-cond-assign-warning

11 years agoRemove leftover accumulator; require js2-mode
Dmitry Gutov [Sat, 19 May 2012 12:18:27 +0000 (16:18 +0400)]
Remove leftover accumulator; require js2-mode

12 years ago(js2-imenu-record-hashes): Don't walk the node when `end-p`
Dmitry Gutov [Thu, 17 May 2012 20:20:45 +0000 (00:20 +0400)]
(js2-imenu-record-hashes): Don't walk the node when `end-p`

12 years agoImplement imenu support for some frameworks and orphan functions
Dmitry Gutov [Thu, 17 May 2012 19:48:43 +0000 (23:48 +0400)]
Implement imenu support for some frameworks and orphan functions

Refs #27
Refs #38

12 years agoSupport chains with string elements in `js2-imenu-recorder`
Dmitry Gutov [Thu, 17 May 2012 19:47:55 +0000 (23:47 +0400)]
Support chains with string elements in `js2-imenu-recorder`

12 years agoCustomize the position of '+' for concatenation
Dmitry Gutov [Mon, 14 May 2012 20:38:26 +0000 (00:38 +0400)]
Customize the position of '+' for concatenation

Refs #23

12 years agomake multiline string concatenation optional
katspaugh [Sun, 13 May 2012 10:08:26 +0000 (14:08 +0400)]
make multiline string concatenation optional

12 years agoFix typo
Dmitry Gutov [Sun, 13 May 2012 03:34:48 +0000 (07:34 +0400)]
Fix typo

12 years agoBasic support for module pattern
Dmitry Gutov [Sun, 13 May 2012 02:15:11 +0000 (06:15 +0400)]
Basic support for module pattern

12 years agoFix #46
Dmitry Gutov [Thu, 10 May 2012 01:17:33 +0000 (05:17 +0400)]
Fix #46

* Check if "for" is inside comment
* Don't indent array comprehensions when language version < 1.7

12 years agoMerge remote-tracking branch 'origin/master'
Dmitry Gutov [Thu, 19 Apr 2012 03:24:00 +0000 (07:24 +0400)]
Merge remote-tracking branch 'origin/master'

12 years agoOnly change window-configuration-change-hook's local value
Dmitry Gutov [Thu, 19 Apr 2012 03:15:33 +0000 (07:15 +0400)]
Only change window-configuration-change-hook's local value

12 years agoGuess more carefully when indenting array comprehension
Dmitry Gutov [Mon, 16 Apr 2012 01:13:37 +0000 (05:13 +0400)]
Guess more carefully when indenting array comprehension

Fixes #42

12 years agoMerge pull request #37 from eentzel/master
Masafumi Oyamada [Thu, 8 Mar 2012 04:35:14 +0000 (20:35 -0800)]
Merge pull request #37 from eentzel/master

Consider foo.bar to be a single parameter name in jsdoc comments

12 years agoConsider foo.bar to be a single parameter name in jsdoc comments
Eric Entzel [Thu, 8 Mar 2012 00:45:03 +0000 (11:45 +1100)]
Consider foo.bar to be a single parameter name in jsdoc comments

12 years agoMerge pull request #36 from edmccard/master
Dmitry Gutov [Mon, 13 Feb 2012 04:53:58 +0000 (20:53 -0800)]
Merge pull request #36 from edmccard/master

Don't make `before-save-hook` a local variable

12 years agoPlay nice with global before-save-hook
Ed McCardell [Mon, 13 Feb 2012 03:28:52 +0000 (22:28 -0500)]
Play nice with global before-save-hook

12 years agoRework js2-beginning/end-of-defun
Dmitry Gutov [Mon, 13 Feb 2012 02:12:02 +0000 (06:12 +0400)]
Rework js2-beginning/end-of-defun

js2-end-of-defun:
* Jump over all script-level elements one at a time, not only functions, for
  consistency with `js2-mark-defun` and `js2-beginning-of-defun`.
* Don't jump to after the next function when point is on "function" keyword.

js2-beginning-of-defun:
* Handle the optional argument like `beginning-of-defun` does.

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