Created attachment 335572 [details] modified ebuild With app-emacs/python-mode-6.1.0, or with a few older versions, when I open a python script on emacs, I see a warning message about lack of autopair. To stop it, please install autopair included in the python-mode distribution. The attachment is a modified ebuild to install autopair under site-lisp/python-mode.
Comment on attachment 335572 [details] modified ebuild --- python-mode-6.1.0.ebuild 2013-01-04 11:50:38.000000000 +0100 +++ - 2013-01-15 13:33:32.050153076 +0100 @@ -19,6 +19,24 @@ SITEFILE="50${PN}-gentoo.el" DOCS="NEWS README" +src_compile() { + elisp-compile autopair/*.el || die + + elisp_src_compile +} + +src_install() { + # install subdirs + ebegin "Installing Elisp files in subdirs for GNU Emacs support" + ( # subshell to avoid pollution of calling environment + insinto "${SITELISP}/${PN}/autopair" + doins autopair/*.el autopair/*.elc + ) + eend $? "elisp-install: doins failed" + + elisp_src_install +} + pkg_postinst() { elisp-site-regen elog "Note that doctest and pymacs are in their own packages,"
Newer python-mode versions no longer bundle autopair, therefore closing.