emacs python mode completion

Philip Swartzleonard starx at pacbell.net
Fri Apr 12 05:36:48 EDT 2002


Sean 'Shaleh' Perry || Fri 12 Apr 2002 12:08:08a:

> 
> On 11-Apr-2002 Mark McEahern wrote:
>> Python mode in emacs has the nice syntax coloring and all, but what
>> would be really great is if I could press tab or something and have
>> it complete statements.  I found this thread where Guido replied and
>> pointed out rlcompleter and the like for the interactive interpreter:
>> 
>> 
>> http://groups.google.com/groups?hl=en&selm=199801111855.NAA21082%40eri
>> c.CNRI .Reston.Va.US
>> 
>> Is there a tool for emacs that does Python command completion?
>> 
> 
> Doing that would require a python interpreter unless you limit it to
> language keywords and perhaps __builtins__.

We don't need a C interperter to use ETAGS. A modified version of this 
would do most of the work I think. (It would help to parse and keep track 
of the global namespace of the current module, too, so 'interesting' 
imports work properly. Use this to figure out what module/name we are 
talking about, and ETAGS to find that. Or something. I couldn't do this. 
Not now, not yet. =)

-- 
Philip Sw "Starweaver" [rasx] :: www.rubydragon.com



More information about the Python-list mailing list