]>
code.delx.au - gnu-emacs-elpa/log
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
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
Ed McCardell [Mon, 13 Feb 2012 03:28:52 +0000 (22:28 -0500)]
Play nice with global before-save-hook
Dmitry Gutov [Mon, 30 Jan 2012 14:16:58 +0000 (18:16 +0400)]
Link to js2-refactor
Dmitry Gutov [Wed, 25 Jan 2012 19:24:55 +0000 (23:24 +0400)]
Fix fill-paragraph behavior
Closes #34
Dmitry Gutov [Mon, 23 Jan 2012 23:55:56 +0000 (03:55 +0400)]
Update the README
Dmitry Gutov [Fri, 13 Jan 2012 20:04:38 +0000 (00:04 +0400)]
Skip 'this' nodes when building imenu index (regression)
Dmitry Gutov [Fri, 13 Jan 2012 19:43:40 +0000 (23:43 +0400)]
Merge commit 'b41a82' into imenu
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.
Dmitry Gutov [Sun, 8 Jan 2012 18:55:50 +0000 (22:55 +0400)]
Fix 'jumping cursor' problem
Regression from the previous commit.
Refs #31.
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
Dmitry Gutov [Sun, 25 Dec 2011 15:17:32 +0000 (19:17 +0400)]
Eliminate the nasty 'max-lisp-eval-depth' bug during byte-compilation
Dmitry Gutov [Sat, 24 Dec 2011 22:41:14 +0000 (02:41 +0400)]
Handle unlimited function nesting in imenu index
Refs #27
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
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`.
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
Dmitry Gutov [Tue, 8 Nov 2011 04:56:03 +0000 (08:56 +0400)]
Run `js2-mode-hook` before doing the first parse
Fixes #20
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!
Gun.io Whitespace Robot [Thu, 27 Oct 2011 18:05:42 +0000 (14:05 -0400)]
Remove whitespace [Gun.io WhitespaceBot]
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
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
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
mooz [Wed, 17 Aug 2011 14:37:11 +0000 (23:37 +0900)]
Add notation for byte-compilation. refs #13
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
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
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() {},
}
}
}
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
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
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.
Dmitry Gutov [Tue, 26 Apr 2011 21:20:40 +0000 (01:20 +0400)]
Fix indentation of empty array literals
Dmitry Gutov [Mon, 25 Apr 2011 23:57:36 +0000 (03:57 +0400)]
Typo
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
Dmitry Gutov [Mon, 25 Apr 2011 21:47:33 +0000 (01:47 +0400)]
Close #3 Indent function/array/object values in declarations better
Dmitry Gutov [Mon, 25 Apr 2011 21:35:26 +0000 (01:35 +0400)]
delq -> remq
Dmitry Gutov [Mon, 25 Apr 2011 14:49:58 +0000 (18:49 +0400)]
Don't call `js2-mode-edit' when inside `indent-region'
Dmitry Gutov [Mon, 25 Apr 2011 13:53:37 +0000 (17:53 +0400)]
`looking-back' is slow; don't use it when indenting
Dmitry Gutov [Mon, 25 Apr 2011 13:46:26 +0000 (17:46 +0400)]
Use `syntax-ppss' instead of `parse-partial-sexp' where appropriate
Dmitry Gutov [Sun, 24 Apr 2011 00:47:31 +0000 (04:47 +0400)]
Skip unary ops before both semicolon checks
Dmitry Gutov [Sat, 23 Apr 2011 18:20:54 +0000 (22:20 +0400)]
Update README
Dmitry Gutov [Sat, 23 Apr 2011 17:17:32 +0000 (21:17 +0400)]
Pretty-indent multiline declarations without AST
Dmitry Gutov [Thu, 21 Apr 2011 17:59:22 +0000 (21:59 +0400)]
Simplify `js-ctrl-statement-indentation'
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
mooz [Thu, 7 Apr 2011 02:53:29 +0000 (11:53 +0900)]
fix documentation
mooz [Wed, 6 Apr 2011 14:47:38 +0000 (23:47 +0900)]
allow bare CDATA section e.g. let xml = <![CDATA[ foo bar baz ]]>;
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.
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() {
}
})();
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
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 .
mooz [Mon, 28 Mar 2011 12:31:56 +0000 (21:31 +0900)]
don't use inner scope of `for` for iteration target.
mooz [Mon, 28 Mar 2011 10:03:46 +0000 (19:03 +0900)]
give correct scope for `for` statement
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
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.
Dmitry Gutov [Thu, 24 Mar 2011 15:26:55 +0000 (18:26 +0300)]
Sort all bounce positions by indent size
Dmitry Gutov [Wed, 23 Mar 2011 12:15:15 +0000 (15:15 +0300)]
Add js2-indent-bounce-backwards
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
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
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''
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'
mooz [Mon, 21 Feb 2011 03:44:47 +0000 (12:44 +0900)]
corrected documentation of multi-line variable declaration
mooz [Sun, 20 Feb 2011 05:56:36 +0000 (14:56 +0900)]
print catch clause correctly.
mooz [Sun, 20 Feb 2011 05:51:57 +0000 (14:51 +0900)]
Accept destructuring form in catch clause
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'
Dmitry Gutov [Sat, 19 Feb 2011 21:08:33 +0000 (00:08 +0300)]
Detect anonymous wrapper functions more reliably
Dmitry Gutov [Fri, 18 Feb 2011 21:05:37 +0000 (00:05 +0300)]
Declare exception symbol in the catch block
Dmitry Gutov [Fri, 18 Feb 2011 19:35:03 +0000 (22:35 +0300)]
Fix byte-compile warnings
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'.
Dmitry Gutov [Fri, 18 Feb 2011 13:39:06 +0000 (16:39 +0300)]
Remove unnecessary checks
Dmitry Gutov [Fri, 18 Feb 2011 13:23:08 +0000 (16:23 +0300)]
Fix js2-time
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
mooz [Thu, 17 Feb 2011 04:01:39 +0000 (13:01 +0900)]
window
mooz [Thu, 17 Feb 2011 03:40:45 +0000 (12:40 +0900)]
Array pattern of the destructuring assignment allows empty element.
Dmitry Gutov [Wed, 16 Feb 2011 20:00:41 +0000 (23:00 +0300)]
js2-define-destruct-symbols: report error position and length
Dmitry Gutov [Wed, 16 Feb 2011 19:07:20 +0000 (22:07 +0300)]
Update credits
Dmitry Gutov [Wed, 16 Feb 2011 18:56:09 +0000 (21:56 +0300)]
Update README
Dmitry Gutov [Wed, 16 Feb 2011 17:42:00 +0000 (20:42 +0300)]
Declare and fontify destructured identifiers inside array comp loops
Dmitry Gutov [Wed, 16 Feb 2011 16:50:59 +0000 (19:50 +0300)]
Rearrange expr and loop scopes in array comprehension
Dmitry Gutov [Wed, 16 Feb 2011 12:18:38 +0000 (15:18 +0300)]
Declare and fontify destructured identifiers inside function
parameters and variable declarations.
Dmitry Gutov [Tue, 15 Feb 2011 01:06:58 +0000 (04:06 +0300)]
"assign to" -> "use"
Dmitry Gutov [Tue, 15 Feb 2011 00:58:56 +0000 (03:58 +0300)]
No need for progn here
Dmitry Gutov [Tue, 15 Feb 2011 00:34:40 +0000 (03:34 +0300)]
Fix typo
Dmitry Gutov [Mon, 14 Feb 2011 20:36:18 +0000 (23:36 +0300)]
Highlight undeclared vars everywhere, not just in assignments
Dmitry Gutov [Sun, 13 Feb 2011 12:47:21 +0000 (15:47 +0300)]
Remove an extra comma
Dmitry Gutov [Sun, 13 Feb 2011 00:22:45 +0000 (03:22 +0300)]
Update README
Dmitry Gutov [Sun, 13 Feb 2011 00:11:01 +0000 (03:11 +0300)]
Update README
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
Dmitry Gutov [Sat, 12 Feb 2011 16:17:42 +0000 (19:17 +0300)]
Update README
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]
Dmitry Gutov [Fri, 11 Feb 2011 20:57:40 +0000 (23:57 +0300)]
Record proper positions for function nodes in nested object literals
Dmitry Gutov [Fri, 11 Feb 2011 19:30:06 +0000 (22:30 +0300)]
Recognize form foo['a'] = function() in imenu
mooz [Sun, 2 Jan 2011 05:51:24 +0000 (14:51 +0900)]
reparse only `js2-use-ast-for-indentation-p` is non-nil
mooz [Sun, 2 Jan 2011 05:16:34 +0000 (14:16 +0900)]
reparse line in indentation
mooz [Thu, 30 Dec 2010 09:39:19 +0000 (18:39 +0900)]
Merge branch 'master' of github.com:mooz/js2-mode
mooz [Thu, 30 Dec 2010 02:17:37 +0000 (11:17 +0900)]
fixed bugs indentation
mooz [Thu, 30 Dec 2010 02:17:37 +0000 (11:17 +0900)]
fixed bugs indentation
mooz [Wed, 29 Dec 2010 05:45:17 +0000 (14:45 +0900)]
oops
mooz [Wed, 29 Dec 2010 04:56:03 +0000 (13:56 +0900)]
use offset 4 for `var` and `let`, and 6 for `const`.
mooz [Tue, 28 Dec 2010 15:06:07 +0000 (00:06 +0900)]
updated README.md
mooz [Tue, 28 Dec 2010 14:35:50 +0000 (23:35 +0900)]
forgot `const{
mooz [Tue, 28 Dec 2010 14:25:02 +0000 (23:25 +0900)]
fixed ugly indentation with multiple variable declaration. closes #1.
mooz [Thu, 2 Dec 2010 16:02:23 +0000 (01:02 +0900)]
ouch