Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completion includes extraneous text #2

Open
dstu opened this issue Jan 6, 2013 · 0 comments
Open

Completion includes extraneous text #2

dstu opened this issue Jan 6, 2013 · 0 comments
Labels

Comments

@dstu
Copy link
Owner

dstu commented Jan 6, 2013

Inserting text via completion with C-c C-v . or C-c C-v C-. (semantic-ia-complete-symbol and semantic-ia-complete-symbol-menu, respectively) is a little wonky. For example, in the following snippet, with the point represented by |:

public static void main(final String[] args) {
  System.out.|
}

issuing C-c C-v C-. yields:

Possible completions are:
public java.io.PrintStream append(java.lang.CharSequence arg0, int arg1, int arg2)
public boolean checkError()     public void close()
public boolean equals(java.lang.Object arg0)
public void flush()
public transient java.io.PrintStream format(java.util.Locale arg0, java.lang.String arg1, java.lang.Object[] arg2)
public final native java.lang.Class<?> getClass()
public native int hashCode()    public final native void notify()
public final native void notifyAll()    public void print(double arg0)
public transient java.io.PrintStream printf(java.util.Locale arg0, java.lang.String arg1, java.lang.Object[] arg2)
public void println(long arg0)  public java.lang.String toString()
public final void wait(long arg0, int arg1)
public void write(byte[] arg0, int arg1, int arg2)

When one of these completions is selected, the whole method signature is inserted, with the point at the end (e.g., public void println(long arg0)|).

It would be preferable if just the method name were inserted, with its parameters filled in more usefully. (Filling them in with template fields that can be tabbed between as is done with Yasnippet would be nice.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant