yoya / js2-mode

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

Unexpected behavior with js2-mode-find-tag #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Switch to buffer test-tags.js, and insert the following sans <POINT>
markers:

function tags() {
    funcallA<POINT>();
}

function tags2(a, b) {
    funcallB<POINT>
}

2. Invoke find-tag interactively with point at each marker.
3. Notice the default completion suggestions. In the first <POINT>, the
suggestion is "function", and the second is funcallB\n}\n.

What is the expected output? What do you see instead?

With find-tag-default, you would get funcallA and funcallB, respectively.
This behavior is quite useful when you want to do a tag lookup for a quick
arg check before entering them.

What version of the product are you using? On what operating system?

js2-version is a variable defined in `js2-mode.el'.
Its value is "1.7.0"
js2-mode-version is a variable defined in `js2-mode.el'.
Its value is 20080413
GNU Emacs 22.2.50.1 (i386-mingw-nt6.0.6001)
 of 2008-04-07 on SLAG

Original issue reported on code.google.com by dereksla...@gmail.com on 15 Apr 2008 at 6:25

GoogleCodeExporter commented 8 years ago

Original comment by steve.ye...@gmail.com on 16 Apr 2008 at 9:53

GoogleCodeExporter commented 8 years ago

Original comment by steve.ye...@gmail.com on 19 Apr 2008 at 10:54