Followed the install instructions on both websites, but still cannot get a supposedly standard (it comes with it) mode to work. This mode works out of box on all other versions of emacs compiled by source, but not the gentoo one, ergo, it is a gentoo specific bug. I don't know what else it could be.. maybe a configure file or something gone awry. I see python-mode.el in /usr/share/emacs/site-lisp. Emacs sees it there. Emacs can byte compile it. But emacs won't use it, whereas in redhat,debian, and Freebsd it has no issues.
just quickly, do you know which package provides python-mode.el? qpkg -f /usr/share/emacs/site-lisp/python-mode.el will show it Matt
It's not listed in a package. Odd..According to emacs/xemacs, it comes with it.
okay... xemacs doesn't incluce python-mode.el. the xemacs builds only include a base system. you add modules to xemacs using the internet download sites and list and update packages menu items (sorry, forget which elisp function). as for emacs, python-mode.el is not included there either afaik. python-mode.el seems to be in python package itself.
Created attachment 1619 [details] emacs-21.2.ebuild (Update) This attached ebuild fixes half of the problem for emacs by installing python-mode.el to /usr/share/emacs/site-lisp. A full fix requires setting up file associations and autoloading as follows: (setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist)) (setq interpreter-mode-alist (cons '("python" . python-mode) interpreter-mode-alist)) (autoload 'python-mode "python-mode" "Python editing mode." t) which should go into your ~/.emacs file or, better, in the site-wide startup file (which we don't have?). Ben
i'm closing this as won't fix. python-mode is included in app-emacs (http://www.gentoo.org/~mkennedy/emacs-packages.html) and will be included in portage proper soon.