]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
11 years agoLink to branch emacs23
Dmitry Gutov [Sun, 17 Feb 2013 03:47:08 +0000 (07:47 +0400)]
Link to branch emacs23

11 years agoRemove link to js2-highlight-vars-mode, add one to skewer-mode
Dmitry Gutov [Sun, 17 Feb 2013 03:41:17 +0000 (07:41 +0400)]
Remove link to js2-highlight-vars-mode, add one to skewer-mode

11 years agoChange the wiki link
Dmitry Gutov [Sun, 17 Feb 2013 03:28:03 +0000 (07:28 +0400)]
Change the wiki link

11 years agokeywords-as-property-names is also valid JS 5.1
Dmitry Gutov [Sun, 17 Feb 2013 03:14:38 +0000 (07:14 +0400)]
keywords-as-property-names is also valid JS 5.1

Refs #41

11 years agoTrailing comma is legal ecma-262-5.1
Dmitry Gutov [Sun, 17 Feb 2013 02:52:05 +0000 (06:52 +0400)]
Trailing comma is legal ecma-262-5.1

Fixes #85

11 years agoMake sure js2-mode-ast is available for callbacks
Dmitry Gutov [Sun, 10 Feb 2013 05:03:53 +0000 (09:03 +0400)]
Make sure js2-mode-ast is available for callbacks

11 years agoReturns -> Return
Dmitry Gutov [Wed, 26 Dec 2012 03:33:43 +0000 (07:33 +0400)]
Returns -> Return

11 years agoToggles -> Toggle
Dmitry Gutov [Wed, 26 Dec 2012 03:26:21 +0000 (07:26 +0400)]
Toggles -> Toggle

11 years ago2011, too
Dmitry Gutov [Tue, 25 Dec 2012 00:08:50 +0000 (04:08 +0400)]
2011, too

11 years agoTweak headers, remove extra variables, set the version to 1.1
Dmitry Gutov [Mon, 24 Dec 2012 23:20:16 +0000 (03:20 +0400)]
Tweak headers, remove extra variables, set the version to 1.1

11 years agoMerge branch 'master' into emacs24
Dmitry Gutov [Wed, 12 Dec 2012 21:27:53 +0000 (01:27 +0400)]
Merge branch 'master' into emacs24

Conflicts:
js2-mode.el

11 years agoFix #77, left over from #58
Dmitry Gutov [Wed, 12 Dec 2012 21:21:22 +0000 (01:21 +0400)]
Fix #77, left over from #58

Also, don't walk the tree unless js2-mode-show-overlay is t.

11 years agoPretend to merge branch 'master' into emacs24
Dmitry Gutov [Wed, 12 Dec 2012 21:17:07 +0000 (01:17 +0400)]
Pretend to merge branch 'master' into emacs24

Conflicts:
README.md
js2-mode.el

11 years agoShow keybindings in the mode description
Dmitry Gutov [Wed, 3 Oct 2012 01:31:10 +0000 (05:31 +0400)]
Show keybindings in the mode description

Close #71

11 years agoFix #68
Dmitry Gutov [Sat, 29 Sep 2012 02:34:07 +0000 (06:34 +0400)]
Fix #68

While we're at it, allow empty lines inside a continued expression.

11 years agoFix #68
Dmitry Gutov [Sat, 29 Sep 2012 02:34:07 +0000 (06:34 +0400)]
Fix #68

While we're at it, allow empty lines inside a continued expression.

11 years agojs2-mode-extend-comment: Move (js2-indent-line) outside the (cond)
Dmitry Gutov [Sat, 22 Sep 2012 19:06:47 +0000 (23:06 +0400)]
js2-mode-extend-comment: Move (js2-indent-line) outside the (cond)

11 years agoSimplify error list annotation and destructuring
Dmitry Gutov [Sat, 22 Sep 2012 18:51:52 +0000 (22:51 +0400)]
Simplify error list annotation and destructuring

11 years agoFix js2-display-error-list
Dmitry Gutov [Sat, 22 Sep 2012 13:31:20 +0000 (17:31 +0400)]
Fix js2-display-error-list

Regression from 14c6ea539b9ee7b98d0c6b870c23202798ba37b3

11 years agoDon't need `funcall` where FUNCTION is constant
Dmitry Gutov [Sat, 22 Sep 2012 04:00:18 +0000 (08:00 +0400)]
Don't need `funcall` where FUNCTION is constant

11 years agoRemove run-mode-hooks call, define-derived-mode already does that
Dmitry Gutov [Wed, 12 Sep 2012 01:33:59 +0000 (05:33 +0400)]
Remove run-mode-hooks call, define-derived-mode already does that

11 years agoyou -> your
Dmitry Gutov [Tue, 11 Sep 2012 02:03:10 +0000 (06:03 +0400)]
you -> your

11 years agoyou -> your
Dmitry Gutov [Tue, 11 Sep 2012 02:03:10 +0000 (06:03 +0400)]
you -> your

11 years agoMove "the" outside the link
Dmitry Gutov [Tue, 11 Sep 2012 01:59:45 +0000 (05:59 +0400)]
Move "the" outside the link

11 years agoAdd section "Emacs 22 and 23"
Dmitry Gutov [Tue, 11 Sep 2012 01:58:19 +0000 (05:58 +0400)]
Add section "Emacs 22 and 23"

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 agoTweak `js2-line-break` behavior, bind it to M-j
Dmitry Gutov [Tue, 11 Sep 2012 01:13:30 +0000 (05:13 +0400)]
Tweak `js2-line-break` behavior, bind it to M-j

js2-indent-on-enter-key, js2-enter-indents-newline: Remove.
js2-line-break: Always indent the line.
js2-mode-split-string: Use js2-indent-line. Remove the variable quote-string.
js2-mode-extend-comment: Support block comments at the end of the line.
Delete whitespace around the newline. Always indent the line.

11 years agoMerge branch 'master' into emacs24
Dmitry Gutov [Mon, 10 Sep 2012 03:40:44 +0000 (07:40 +0400)]
Merge branch 'master' into emacs24

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

11 years agoMerge branch 'master' into emacs24
Dmitry Gutov [Tue, 4 Sep 2012 01:15:54 +0000 (05:15 +0400)]
Merge branch 'master' into emacs24

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

11 years agoMerge branch 'master' into emacs24
Dmitry Gutov [Mon, 3 Sep 2012 03:15:54 +0000 (07:15 +0400)]
Merge branch 'master' into emacs24

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 agoMerge branch 'master' into emacs24
Dmitry Gutov [Fri, 31 Aug 2012 04:18:35 +0000 (08:18 +0400)]
Merge branch 'master' into emacs24

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 agoMerge branch 'master' into emacs24
Dmitry Gutov [Fri, 6 Jul 2012 00:22:25 +0000 (04:22 +0400)]
Merge branch 'master' into emacs24

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

11 years agoMerge branch 'master' into emacs24
Dmitry Gutov [Sun, 17 Jun 2012 08:39:19 +0000 (12:39 +0400)]
Merge branch 'master' into emacs24

Conflicts:
js2-mode.el

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 agoMerge branch 'master' into emacs24
Dmitry Gutov [Mon, 11 Jun 2012 08:18:25 +0000 (12:18 +0400)]
Merge branch 'master' into emacs24

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 agoBring back js2-external-variable face
Dmitry Gutov [Sun, 3 Jun 2012 23:54:01 +0000 (03:54 +0400)]
Bring back js2-external-variable face

Being able to distinguish this type of warning from others is kinda useful.

Might also use overriding for new types of warnings later, like unused vars.

11 years agoWrap all `js2-post-parse-callbacks` calls in (save-excursion)
Dmitry Gutov [Sun, 3 Jun 2012 23:35:57 +0000 (03:35 +0400)]
Wrap all `js2-post-parse-callbacks` calls in (save-excursion)

11 years agoMerge branch 'master' into emacs24
Dmitry Gutov [Sun, 3 Jun 2012 17:37:23 +0000 (21:37 +0400)]
Merge branch 'master' into emacs24

Conflicts:
js2-mode.el

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

11 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`

11 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

11 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 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.

12 years ago(js2-display-error-list): make the buffer navigable
Steve Yegge [Wed, 2 May 2012 00:12:16 +0000 (04:12 +0400)]
(js2-display-error-list): make the buffer navigable

12 years ago(js2-echo-error): ignore when help-echo property is not a string
Steve Yegge [Wed, 2 May 2012 00:06:33 +0000 (04:06 +0400)]
(js2-echo-error): ignore when help-echo property is not a string

12 years agoAdd message table entry for undeclared vars
Steve Yegge [Wed, 2 May 2012 00:04:41 +0000 (04:04 +0400)]
Add message table entry for undeclared vars

12 years agoDon't need to clear next-error-function in `js2-mode-exit`
Dmitry Gutov [Mon, 30 Apr 2012 06:32:17 +0000 (10:32 +0400)]
Don't need to clear next-error-function in `js2-mode-exit`

Major mode change kills all local variables anyway

12 years agoMake `js2-highlight-level` buffer-local in minor mode
Dmitry Gutov [Mon, 30 Apr 2012 06:22:12 +0000 (10:22 +0400)]
Make `js2-highlight-level` buffer-local in minor mode

12 years agoSet next-error-function in major mode, too
Dmitry Gutov [Mon, 30 Apr 2012 06:20:27 +0000 (10:20 +0400)]
Set next-error-function in major mode, too

12 years agoWarn about undeclared variables in the generic way
Dmitry Gutov [Mon, 30 Apr 2012 06:09:31 +0000 (10:09 +0400)]
Warn about undeclared variables in the generic way

This way they show up in the warnings list, so they can be jumped between with
`next-error', and are visible in `js2-minor-mode'.

Highlighting and underline together look gaudy. Do something more complex?

12 years agoAdd autoload cookie for js2-minor-mode
Dmitry Gutov [Mon, 30 Apr 2012 03:41:32 +0000 (07:41 +0400)]
Add autoload cookie for js2-minor-mode

12 years agojs2-print-array-comp-node: plus 'each', minus extra closing paren
Dmitry Gutov [Fri, 20 Apr 2012 04:51:49 +0000 (08:51 +0400)]
js2-print-array-comp-node: plus 'each', minus extra closing paren

12 years agojs2-print-var-decl: handle the 'let' case the same as others
Dmitry Gutov [Fri, 20 Apr 2012 04:44:11 +0000 (08:44 +0400)]
js2-print-var-decl: handle the 'let' case the same as others

12 years agojs2-print-list: accept that some elements may be nil
Dmitry Gutov [Fri, 20 Apr 2012 04:41:22 +0000 (08:41 +0400)]
js2-print-list: accept that some elements may be nil

let [a,,c] = [1, 2, 3];

12 years agoApply sensible changes from GNU ELPA repository
Dmitry Gutov [Fri, 20 Apr 2012 02:47:53 +0000 (06:47 +0400)]
Apply sensible changes from GNU ELPA repository

* Remove `js2-function-param-node-p', it was unused.
* Change mode title in the header.
* Remove '-face' suffix from faces, the manual says that's redundant.

12 years agoReapply the fix from 83ba85
Dmitry Gutov [Fri, 20 Apr 2012 01:54:44 +0000 (05:54 +0400)]
Reapply the fix from 83ba85

12 years agoMake the mode a better Emacs citizen
Steve Yegge [Fri, 20 Apr 2012 01:28:36 +0000 (05:28 +0400)]
Make the mode a better Emacs citizen

New features:
* Introduce `js2-minor-mode', to run parser with another major mode active.
* Add `js2-display-error-list'.

Breaking changes:
* Emacs 24 only.
* Don't set up mode association automatically for *.js files.
* Get rid of the mirror-mode (use electric-pair-mode).
* Get rid of the auto-indent code (use electric-indent-mode).
* Get rid of the js2-rebind-eol-bol-keys.
* Don't rebind RET. Use M-j to extend comments.
* Don't bind `js2-mark-defun' and `js2-narrow-to-defun'.

Other changes:
* Derive from `prog-mode'.
* Improve documentation style.
* Consistently use 'js2-' prefix.
* Replace `defsubst' with `defun' is many cases.
* Don't use `save-match-data' unless required (which is currently never).

Incorporates a patch by Stefan Monnier.

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