pombreda / js2-mode

Automatically exported from code.google.com/p/js2-mode
0 stars 0 forks source link

Typing closing square bracket "]" results in a ")" instead #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install js2-20080401
2. try typing a reference to an array element a[i], it ends up as a[i)

What is the expected output? What do you see instead?
I expected a "]", I got a ")".  

What version of the product are you using? On what operating system?
js2-20080401 on Aquamacs 1.3a (based on emacs 22.1.91.2), OS X 10.5

Please provide any additional information below.
I had to manually set emacs22 to t in order for the mode to load. Not sure
if that was the right thing to do, but it seemed to work.

Original issue reported on code.google.com by barryf...@gmail.com on 1 Apr 2008 at 10:19

GoogleCodeExporter commented 9 years ago
I'm seeing this as well if I delete the right bracket that is autoinserted and 
try to
type it manually. js2-20080401a on EmacsW32 1.54 (GNU Emacs 22.0.94.1 patched).

Original comment by don.wom...@gmail.com on 3 Apr 2008 at 1:02

GoogleCodeExporter commented 9 years ago
Also happens when there's already a ")" following point on the line and you 
type "[".
The autoexpand doesn't take place, and typing "]" gives ")". Workaround: get 
rid of
the following ")", allowing autoinsert to type "[]" for "[".

Original comment by don.wom...@gmail.com on 3 Apr 2008 at 6:03

GoogleCodeExporter commented 9 years ago
js2-20080402 still has this issue

Original comment by barryf...@gmail.com on 3 Apr 2008 at 10:20

GoogleCodeExporter commented 9 years ago
It's fixed since js2-20080403.

Original comment by stef...@gmail.com on 9 Apr 2008 at 9:53

GoogleCodeExporter commented 9 years ago
Yep, fixed.

Original comment by steve.ye...@gmail.com on 14 Apr 2008 at 10:03