I work on my Django project with emacs. In my virtualenv "postactivate" script I have the following simple command:
find -L . -type f -name "*.py" | xargs etags -e > /dev/null 2>&1 &
The TAGS file generates just fine but the system seems rather dumb. When the cursor is a model filter call, e.g.
MyModel.objects.filter(...)
and I hit M-., sometimes emacs takes me place where MyModel is imported at the time of the file (the actual import statement). I only ever want to visit class, method, and function definitions.
Is there a way to make etags smarter?
Thanks, Ryan Kaskel