Python emacs mode (newbie)

Syver Enstad syver at NOSPAMcyberwatcher.com
Fri Feb 16 21:05:17 EST 2001


"Kai Großjohann" <Kai.Grossjohann at CS.Uni-Dortmund.DE> wrote in message
news:vafwvaqltd4.fsf at lucy.cs.uni-dortmund.de...
> On Fri, 16 Feb 2001, Syver Enstad wrote:
> You mean you want something like `C-x C-f', but with module names, not
> file names?

Yes!
>
> There is a library, ffap.el, which provides a framework for this.  But
> I couldn't see any Python-specific support in it.  However, this could
> presumably fairly easily be added.  See the variable ffap-alist for
> details.  After adding Python support, you can hit `M-x
> find-file-at-point RET' in the *.py buffer and you can open the right
> file.
You mean to open modules by parsing import statements in a file?
Ex.
module.py

import sys
import MyClass

......
And then you could place the cursor over let's say MyClass and press some
key combination to load the py file for the module. Is that what you mean?

This would be cool as an added bonus, but it's the find-file like
functionality that is crucial.





More information about the Python-list mailing list