[wingide-users] auto completed prompt from current file?
programmer.py at gmail.com
Fri Dec 7 13:40:38 MST 2007
I'm not worried so much about inference, but if I could get xemacs'
`dabbrev-expand` feature, that would be just as good imo.
Some documentation on this is below. But the gist of it is, I type a word
out partially, hit alt-/ and xemacs autocompletes based on the closest
match. For instance assume, you have these lines in your source file
_some_global_var = None
_some_other_global_var = None
Now, assume you're typing in xemacs and have typed:
If you press alt-/ (use dabbrev-expand), then it will autocomplete your
If you want _some_global_var, you press alt-/ again, and it finds the next
`word` that begins with _some which is _some_global_var.
I hope that makes sense. If not, then maybe the documentation below does.
Expand previous word "dynamically".
Expands to the most recent, preceding word for which this is a prefix.
If no suitable preceding word is found, words following point are
considered. If still no suitable word is found, then look in the
buffers accepted by the function pointed out by variable
A positive prefix argument, N, says to take the Nth backward *distinct*
possibility. A negative argument says search forward.
If the cursor has not moved from the end of the previous expansion and
no argument is given, replace the previously-made expansion
with the next possible expansion not yet tried.
The variable `dabbrev-backward-only' may be used to limit the
direction of search to backward if set non-nil.
See also `dabbrev-abbrev-char-regexp' and M-C-/.
On Dec 7, 2007 1:52 PM, Wingware Support <support at wingware.com> wrote:
> Pete wrote:
> > On Friday December 7 2007 12:47:58 pm Michael Foord wrote:
> >> Wingware Support wrote:
> >>> sunqiang wrote:
> >>>> for example foo = bar().
> >>>> foo(the return value of bar()) is a string. wingide can't figure it
> >>>> as a string, so it can't give auto complete prompt such as
> > I recognize inferring return-value types is non-trivial, but I really
> > wing did this. Maybe an @assert_return_isinstance decorator? Eww..
> Wing does infer some return types when it finds the source code for the
> function being called, including (probably) the cases where such an
> iterator would be used. As a trivial example, the following should be
> analyzed successfully:
> def bar():
> return ''
> The option I talked about adding would try to give you something like
> the simple completion option found in other editors.
> Wing IDE users list
"Government does not solve problems; it subsidizes them."
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the wingide-users