]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
10 years agoReference #72 in the README
Dmitry Gutov [Sun, 9 Mar 2014 07:05:25 +0000 (09:05 +0200)]
Reference #72 in the README

10 years agoMerge pull request #133 from johnmastro/imenu-react
Dmitry Gutov [Tue, 21 Jan 2014 04:03:46 +0000 (20:03 -0800)]
Merge pull request #133 from johnmastro/imenu-react

Add support for React classes in js2-imenu-extras

10 years agoAdd support for React classes in js2-imenu-extras
John Mastro [Sun, 19 Jan 2014 20:29:17 +0000 (12:29 -0800)]
Add support for React classes in js2-imenu-extras

Reuse the recorder function already present for Backbone extends. Rename
that function to js2-imenu-record-backbone-or-react and define
js2-imenu-record-backbone-extend and js2-imenu-record-react-class as
aliases of it.

10 years agoAdd .gitignore
Dmitry Gutov [Tue, 14 Jan 2014 02:03:39 +0000 (04:03 +0200)]
Add .gitignore

10 years agoUpdate copyright years, bump the version
Dmitry Gutov [Tue, 14 Jan 2014 01:54:14 +0000 (03:54 +0200)]
Update copyright years, bump the version

10 years agoAlso highlight function names after new operator
Dmitry Gutov [Tue, 14 Jan 2014 01:52:27 +0000 (03:52 +0200)]
Also highlight function names after new operator

+ Only highlight name tokens, disregarding function objects accessed
via array-get, etc.

#128

10 years agoFontify function calls
Dmitry Gutov [Sat, 11 Jan 2014 23:45:38 +0000 (03:45 +0400)]
Fontify function calls

Closes #128

10 years agoFix #127
Dmitry Gutov [Sun, 22 Dec 2013 03:08:13 +0000 (05:08 +0200)]
Fix #127

10 years agoRename the new functions and rewrite the comments
Dmitry Gutov [Thu, 19 Dec 2013 14:58:38 +0000 (16:58 +0200)]
Rename the new functions and rewrite the comments

10 years agoimenu hint for orphan function
Chen Bin [Wed, 18 Dec 2013 10:04:50 +0000 (21:04 +1100)]
imenu hint for orphan function

10 years agoNew option: js2-imenu-split-string-identifiers
Dmitry Gutov [Mon, 18 Nov 2013 23:16:20 +0000 (01:16 +0200)]
New option: js2-imenu-split-string-identifiers

#123

10 years agojs2-re-search-forward-inner: Handle the case when string ends right after match
Dmitry Gutov [Mon, 18 Nov 2013 16:42:15 +0000 (18:42 +0200)]
js2-re-search-forward-inner: Handle the case when string ends right after match

Follow-up to #123

10 years agoSupport Enyo in IMenu
Dmitry Gutov [Mon, 18 Nov 2013 10:30:51 +0000 (12:30 +0200)]
Support Enyo in IMenu

Closes #123

10 years ago* js2-mode/tests: Add copyright headers
Stefan Monnier [Fri, 8 Nov 2013 00:24:27 +0000 (02:24 +0200)]
* js2-mode/tests: Add copyright headers

10 years agoBump the version
Dmitry Gutov [Wed, 6 Nov 2013 01:33:50 +0000 (03:33 +0200)]
Bump the version

10 years agoSupport Harmony spread operator, in arrays and calls
Dmitry Gutov [Wed, 6 Nov 2013 01:27:02 +0000 (03:27 +0200)]
Support Harmony spread operator, in arrays and calls

Closes #121

10 years agoSupport Harmony generators (closes #119)
Dmitry Gutov [Sun, 3 Nov 2013 03:09:51 +0000 (07:09 +0400)]
Support Harmony generators (closes #119)

10 years agoFix parsing labeled statements (and #120)
Dmitry Gutov [Fri, 18 Oct 2013 04:58:30 +0000 (08:58 +0400)]
Fix parsing labeled statements (and #120)

+ change labeled-stmt printer not to indent statements additionally

10 years agoFix #116
Dmitry Gutov [Sun, 13 Oct 2013 03:09:10 +0000 (06:09 +0300)]
Fix #116

10 years agoAdd small clarification
Dmitry Gutov [Sun, 13 Oct 2013 02:53:34 +0000 (05:53 +0300)]
Add small clarification

10 years agoInclude function's AST node in parent scope's symbol table entry
Dmitry Gutov [Sun, 13 Oct 2013 02:46:53 +0000 (05:46 +0300)]
Include function's AST node in parent scope's symbol table entry

Reported by Sergey Mogzovoy

10 years ago(Hopefully) fix #117 and capitaomorte/autopair#21
Dmitry Gutov [Sun, 13 Oct 2013 01:21:51 +0000 (04:21 +0300)]
(Hopefully) fix #117 and capitaomorte/autopair#21

10 years agopn was indeed unused
Dmitry Gutov [Tue, 8 Oct 2013 12:47:25 +0000 (15:47 +0300)]
pn was indeed unused

10 years agoMerge branch 'arrow-functions'
Dmitry Gutov [Tue, 8 Oct 2013 12:46:16 +0000 (15:46 +0300)]
Merge branch 'arrow-functions'

Conflicts:
js2-mode.el

10 years agoCheck in .dir-locals.el
Dmitry Gutov [Tue, 8 Oct 2013 01:50:48 +0000 (04:50 +0300)]
Check in .dir-locals.el

10 years agojs2-parse-switch: Fix the docstring
Dmitry Gutov [Tue, 24 Sep 2013 10:41:21 +0000 (13:41 +0300)]
js2-parse-switch: Fix the docstring

10 years agoFix #114
Dmitry Gutov [Fri, 20 Sep 2013 01:29:17 +0000 (04:29 +0300)]
Fix #114

10 years agoNew option: js2-indent-switch-body
Dmitry Gutov [Fri, 13 Sep 2013 03:26:35 +0000 (06:26 +0300)]
New option: js2-indent-switch-body

Closes #111

10 years ago* packages/js2-mode/js2-mode.el: Remove unused variables. Use posix
Stefan Monnier [Fri, 6 Sep 2013 02:47:32 +0000 (05:47 +0300)]
* packages/js2-mode/js2-mode.el: Remove unused variables.  Use posix
character classes.  Do a bit of CSE simplification.
(js2-parse-highlight-member-expr-node): Flip test order to simplify code.
(js2-re-search-forward, js2-re-search-backward): Don't quote code.
(js2-echo-help): Defalias applies to symbol, not functions.

10 years agoFix (and rename) the ts-set-state test
Dmitry Gutov [Mon, 2 Sep 2013 13:59:13 +0000 (16:59 +0300)]
Fix (and rename) the ts-set-state test

10 years agoSupport arrow functions (#108)
Dmitry Gutov [Mon, 2 Sep 2013 13:51:27 +0000 (16:51 +0300)]
Support arrow functions (#108)

Roughly along the lines of
https://hg.mozilla.org/mozilla-central/rev/bf3ce88c6ea3

10 years agoExtract js2-parse-function-stmt and js2-parse-function-expr
Dmitry Gutov [Sun, 1 Sep 2013 22:28:02 +0000 (01:28 +0300)]
Extract js2-parse-function-stmt and js2-parse-function-expr

* Fix printing of js2-function-nodes with member-expr.
* Prohibit unnamed function expressions where statement is expected.
* Omit the case of "random-member-expr", whatever that is.
  Anyone who misses it is welcome to file an issue.

10 years agoImplement "save & restore" for token stream
Dmitry Gutov [Sun, 1 Sep 2013 04:20:10 +0000 (07:20 +0300)]
Implement "save & restore" for token stream

10 years ago* js2-get-string-from-buffer: Rename, make it take token argument
Dmitry Gutov [Sun, 1 Sep 2013 03:33:24 +0000 (06:33 +0300)]
* js2-get-string-from-buffer: Rename, make it take token argument

* js2-collect-string: Simplify

* Having the global `js2-ts-string-buffer' var is still necessary,
  until `js2-add-to-string' is replaced with simple `push'.

10 years agojs2-record-face: Accept optional, second parameter
Dmitry Gutov [Sun, 1 Sep 2013 02:21:45 +0000 (05:21 +0300)]
js2-record-face: Accept optional, second parameter

No significant improvement in performance.

10 years agoImplement two-token lookahead
Dmitry Gutov [Thu, 29 Aug 2013 22:58:33 +0000 (01:58 +0300)]
Implement two-token lookahead

* Use `js2-token' defstruct to store token info.
* Cache tokens in a vector buffer `js2-ti-tokens'.
* Obviously, a deoptimization, gives us performance hit:
  - ~60% slower in interpreted mode (Emacs 24.3.50.1).
  - ~50% slower in compiled mode.
* `mod' is actually slightly faster than `logand' for our usage.
* Optimizations tried:
  - Cache the current token.
  - Cache the current token type.
  - Reuse the token structs, instead of creating new one each time.
  - Set the js2-token struct's type to `vector' or `list', disabling
    the usage of the tag symbol, and thus getting rid of type checking.
    Gives us ~15% improvement in interpreted mode, but no significant
    change in compiled mode.

10 years agoRemove the "mentioned here" bit, to make text more universal
Dmitry Gutov [Sat, 31 Aug 2013 21:31:17 +0000 (00:31 +0300)]
Remove the "mentioned here" bit, to make text more universal

10 years agoMake comment vars buffer-local
Dmitry Gutov [Wed, 24 Jul 2013 22:25:06 +0000 (01:25 +0300)]
Make comment vars buffer-local

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

10 years agoUpdate `js2-concat-multiline-strings' docstring
Dmitry Gutov [Wed, 24 Jul 2013 20:19:49 +0000 (23:19 +0300)]
Update `js2-concat-multiline-strings' docstring

#107

10 years agoBump the version
Dmitry Gutov [Wed, 19 Jun 2013 07:23:57 +0000 (11:23 +0400)]
Bump the version

10 years agojs2-next-error: Always echo error text
Dmitry Gutov [Wed, 19 Jun 2013 07:08:13 +0000 (11:08 +0400)]
js2-next-error: Always echo error text

10 years agoFix #106
Dmitry Gutov [Tue, 18 Jun 2013 21:19:25 +0000 (01:19 +0400)]
Fix #106

* Check for an active minibuffer.

* Don't compare with "Quit", we're only called on `point-entered', so
  that message should already be cleared anyway.

10 years agoIntroduce js2-init-hook
Dmitry Gutov [Sat, 8 Jun 2013 09:19:36 +0000 (13:19 +0400)]
Introduce js2-init-hook

Fixing #20 (again) in a different way

11 years agoSet up Travis CI
Dmitry Gutov [Sat, 11 May 2013 08:02:02 +0000 (12:02 +0400)]
Set up Travis CI

11 years agoDescription -> About
Dmitry Gutov [Fri, 10 May 2013 16:00:04 +0000 (20:00 +0400)]
Description -> About

11 years agoAlternat{->iv}ely
Dmitry Gutov [Fri, 10 May 2013 15:55:41 +0000 (19:55 +0400)]
Alternat{->iv}ely

11 years agoFix #102
Dmitry Gutov [Fri, 10 May 2013 15:54:45 +0000 (19:54 +0400)]
Fix #102

11 years agoPrefix all tests with "js2-"
Dmitry Gutov [Fri, 10 May 2013 15:32:09 +0000 (19:32 +0400)]
Prefix all tests with "js2-"

11 years agoInclude tests/externs.el in the test target
Dmitry Gutov [Fri, 10 May 2013 15:28:53 +0000 (19:28 +0400)]
Include tests/externs.el in the test target

11 years agoBump the version date
Dmitry Gutov [Fri, 10 May 2013 15:20:11 +0000 (19:20 +0400)]
Bump the version date

11 years agoFix #104
Dmitry Gutov [Fri, 10 May 2013 13:42:01 +0000 (17:42 +0400)]
Fix #104

11 years agojs2-auto-insert-catch-block: Unused, remove
Dmitry Gutov [Fri, 10 May 2013 12:30:40 +0000 (16:30 +0400)]
js2-auto-insert-catch-block: Unused, remove

11 years agojs2-imenu-extras: Define a minor mode
Dmitry Gutov [Fri, 10 May 2013 12:16:48 +0000 (16:16 +0400)]
js2-imenu-extras: Define a minor mode

js2-do-parse: Use `run-hooks' on `js2-post-parse-callbacks'.
js2-post-parse-callbacks: Use `add-hook'.

The old way to set up this should still work, too.

11 years agoMerge pull request #103 from johan/interpreter-mode-alist
Dmitry Gutov [Fri, 3 May 2013 07:04:33 +0000 (00:04 -0700)]
Merge pull request #103 from johan/interpreter-mode-alist

Also aid  "#! /usr/bin/env node" type auto major mode selection

11 years agoAlso aid "#! /usr/bin/env node" type auto major mode selection
Johan Sundström [Fri, 3 May 2013 06:59:27 +0000 (23:59 -0700)]
Also aid "#! /usr/bin/env node" type auto major mode selection

11 years agoMerge pull request #101 from pd/node-typed-arrays
Dmitry Gutov [Wed, 1 May 2013 04:47:28 +0000 (21:47 -0700)]
Merge pull request #101 from pd/node-typed-arrays

Add typed array externs

11 years agoAdd js2-typed-array-externs, js2-set-default-externs
Kyle Hargraves [Wed, 1 May 2013 03:37:59 +0000 (20:37 -0700)]
Add js2-typed-array-externs, js2-set-default-externs

11 years agoAdd typed array types to js2-node-externs
Kyle Hargraves [Tue, 30 Apr 2013 21:33:28 +0000 (14:33 -0700)]
Add typed array types to js2-node-externs

node.js has supported typed arrays since 0.6:

https://github.com/joyent/node/wiki/API-changes-between-v0.4-and-v0.6
https://github.com/joyent/node/issues/1322
https://github.com/joyent/node/commit/97b0000

11 years agoMerge pull request #95 from ruediger/typed-array-externs
Dmitry Gutov [Tue, 9 Apr 2013 16:23:01 +0000 (09:23 -0700)]
Merge pull request #95 from ruediger/typed-array-externs

Typed array externs and console object

11 years agoTyped Array: remove TypedArray and ArrayBufferView.
Rüdiger Sonderfeld [Tue, 9 Apr 2013 16:20:02 +0000 (18:20 +0200)]
Typed Array: remove TypedArray and ArrayBufferView.

They are just interfaces.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
11 years agoAdd console Object to browser externs.
Rüdiger Sonderfeld [Tue, 9 Apr 2013 14:51:59 +0000 (16:51 +0200)]
Add console Object to browser externs.

console is provided by at least Firefox and Chrome.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
11 years agoAdd Typed Array Spec Externs.
Rüdiger Sonderfeld [Tue, 9 Apr 2013 14:51:19 +0000 (16:51 +0200)]
Add Typed Array Spec Externs.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
11 years agoMerge pull request #93 from ruediger/use-asm
Dmitry Gutov [Thu, 4 Apr 2013 15:34:19 +0000 (08:34 -0700)]
Merge pull request #93 from ruediger/use-asm

Treat "use asm" as having side effects.

11 years agoTreat "use asm" as having side effects.
Rüdiger Sonderfeld [Thu, 4 Apr 2013 13:16:27 +0000 (15:16 +0200)]
Treat "use asm" as having side effects.

Support for asm.js.  Change in `js2-node-has-side-effects'.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
11 years ago* js2-multiline-decl-indentation: Simplify a logical condition
Dmitry Gutov [Thu, 7 Mar 2013 16:12:12 +0000 (20:12 +0400)]
* js2-multiline-decl-indentation: Simplify a logical condition

11 years agoemacs -l doesn't handle wilcards
Dmitry Gutov [Thu, 7 Mar 2013 02:22:39 +0000 (06:22 +0400)]
emacs -l doesn't handle wilcards

11 years agoUpdate Makefile
Dmitry Gutov [Thu, 7 Mar 2013 02:19:16 +0000 (06:19 +0400)]
Update Makefile

11 years agoFix #89
Dmitry Gutov [Thu, 7 Mar 2013 02:15:18 +0000 (06:15 +0400)]
Fix #89

11 years agoAdd some indentation tests
Dmitry Gutov [Thu, 7 Mar 2013 02:09:18 +0000 (06:09 +0400)]
Add some indentation tests

11 years agotests{ast -> parser}.el
Dmitry Gutov [Thu, 7 Mar 2013 01:33:33 +0000 (05:33 +0400)]
tests{ast -> parser}.el

11 years ago* js2-mode-forward-sexp: never jump over an unbalanced paren
Dmitry Gutov [Thu, 28 Feb 2013 07:38:33 +0000 (11:38 +0400)]
* js2-mode-forward-sexp: never jump over an unbalanced paren

Fixes #78

11 years agoFix js2-node-[lr]p for js2-paren-node
Dmitry Gutov [Wed, 27 Feb 2013 21:02:16 +0000 (01:02 +0400)]
Fix js2-node-[lr]p for js2-paren-node

11 years agoRemove some of the unused definitions
Dmitry Gutov [Tue, 26 Feb 2013 23:19:58 +0000 (03:19 +0400)]
Remove some of the unused definitions

11 years agoFix #87
Dmitry Gutov [Tue, 26 Feb 2013 21:36:30 +0000 (01:36 +0400)]
Fix #87

11 years agojs2-insert-and-indent was unused
Dmitry Gutov [Tue, 26 Feb 2013 20:00:03 +0000 (00:00 +0400)]
js2-insert-and-indent was unused

11 years agoUse \\' instead of $
Dmitry Gutov [Tue, 19 Feb 2013 15:16:33 +0000 (19:16 +0400)]
Use \\' instead of $

11 years agoBump the date
Dmitry Gutov [Tue, 19 Feb 2013 02:18:07 +0000 (06:18 +0400)]
Bump the date

11 years agoDon't include Rhino externs by default, too
Dmitry Gutov [Tue, 19 Feb 2013 02:12:58 +0000 (06:12 +0400)]
Don't include Rhino externs by default, too

11 years agoSupport Node.js externs
Dmitry Gutov [Tue, 19 Feb 2013 02:12:06 +0000 (06:12 +0400)]
Support Node.js externs

Close #86

11 years agojs2-add-browser-externs is not defined
Dmitry Gutov [Tue, 19 Feb 2013 01:51:03 +0000 (05:51 +0400)]
js2-add-browser-externs is not defined

11 years agoGoogle Gears has been dead for a while now
Dmitry Gutov [Tue, 19 Feb 2013 01:46:21 +0000 (05:46 +0400)]
Google Gears has been dead for a while now

11 years agoAdd URL header and some explanation
Dmitry Gutov [Tue, 19 Feb 2013 01:44:48 +0000 (05:44 +0400)]
Add URL header and some explanation

11 years agoRemove leftover make-obsolete-variable statement
Dmitry Gutov [Sun, 17 Feb 2013 04:21:45 +0000 (08:21 +0400)]
Remove leftover make-obsolete-variable statement

11 years agoUpdate copyright notice; switch back to date-based versioning
Dmitry Gutov [Sun, 17 Feb 2013 04:18:50 +0000 (08:18 +0400)]
Update copyright notice; switch back to date-based versioning

The latter, by popular demand. Apparently, 2009xxxx > 1.1, so this change will
make the users of the old js2-mode who installed it through package.el (and who
don't use Melpa) definitely notice the new version.

11 years agoMerge branch 'emacs24'
Dmitry Gutov [Sun, 17 Feb 2013 04:05:13 +0000 (08:05 +0400)]
Merge branch 'emacs24'

Emacs 24-only code is now master, for legacy check out emacs23.

The commit log is going to have a lot of duplicates, sorry about that.
Still, this way, many users can do a fast-forward merge.

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 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 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 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 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 agoMark the obsolete variables as such
Dmitry Gutov [Sun, 10 Feb 2013 06:02:06 +0000 (10:02 +0400)]
Mark the obsolete variables as such

Close #80

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