Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72712 - app-emacs/python-mode-4.63 -- wrong installation of pycomplete.py
Summary: app-emacs/python-mode-4.63 -- wrong installation of pycomplete.py
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-28 05:29 UTC by Nick Savchenko
Modified: 2004-12-02 20:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for the ebuild (python-mode.diff,947 bytes, patch)
2004-11-28 05:31 UTC, Nick Savchenko
Details | Diff
patch for the site-file of python-mode (site-file.diff,706 bytes, patch)
2004-11-28 05:35 UTC, Nick Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Savchenko 2004-11-28 05:29:28 UTC
pycomplete is a part of python-mode, that provides some completiotion functionality for python code. It's implementation consists of 2 files -- elisp file and python file. Python file (pycomplete.py) must be loaded by pymacs, and in order to be loaded by pymacs it must be installed somewhere in $PYTHONPATH (if it's installed somewhere else python will be unable to find it). The current ebuild installs pycomplete.py in /usr/share/emacs/site-lisp. Also, the site-file of python-mode must have lower priority than pymacs' one, because pymacs is needed to load pycomplete.
Comment 1 Nick Savchenko 2004-11-28 05:31:28 UTC
Created attachment 44861 [details, diff]
Patch for the ebuild

The patch for python-mode.ebuild.
Comment 2 Nick Savchenko 2004-11-28 05:35:48 UTC
Created attachment 44862 [details, diff]
patch for the site-file of python-mode

I've added the configuration for doctest-mode and pycomplete to python-mode's
site-file.
Comment 3 Nick Savchenko 2004-11-28 05:43:18 UTC
If you want to try the completition functionality do the following:
1. Open some python file. Change mode to python-mode.
2. Enter such code
import string
sting.stri
3. Press M-TAB (or M-x py-complete) and see what happens.

Unfortunaly, pycomplete cannot show the list of possible completitions so far. If more than one variant of completition exist pycomplete does nothing.
Comment 4 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-11-28 05:54:01 UTC
Thanks. I hadn't tested completion part when I committed it.
I'll test and commit it tomorrow.
Comment 5 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-12-02 20:34:33 UTC
Thanks, veryfied and added to CVS. The instruction to 
perform py-completion helped me test your patch. 
I really appreciate it :)