Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71554 - dev-python/docutils should install emacs modes
Summary: dev-python/docutils should install emacs modes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-17 09:00 UTC by Steingrim Dovland
Modified: 2006-01-22 18:02 UTC (History)
1 user (show)

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


Attachments
modified docutils ebuild (docutils-0.3.5-r1.ebuild,2.28 KB, text/plain)
2004-11-17 09:01 UTC, Steingrim Dovland
Details
emacs site-lisp file (50docutils-gentoo.el,250 bytes, text/plain)
2004-11-17 09:03 UTC, Steingrim Dovland
Details
patch that shows the changes made to the docutils ebuild (docutils-0.3.5-r1.patch,1.32 KB, patch)
2004-11-17 09:04 UTC, Steingrim Dovland
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steingrim Dovland 2004-11-17 09:00:16 UTC
dev-python/docutils provides an emacs major-mode for editing rst-files called rst-mode.el in ${S}/tools/editors/emacs/. 

I put together an ebuild based on docutils-0.3.5.ebuild that installs rst-mode.el as well as rst-html.el and restructuredtext.el (and 50docutils-gentoo.el) /usr/share/emacs/site-lisp/rst-mode using the emacs-common eclass.

I will attach the complete modified ebuild (and a patch for those of you who like that) and $FILESDIR/50docutils-gentoo.el.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Steingrim Dovland 2004-11-17 09:01:34 UTC
Created attachment 44165 [details]
modified docutils ebuild
Comment 2 Steingrim Dovland 2004-11-17 09:03:03 UTC
Created attachment 44166 [details]
emacs site-lisp file
Comment 3 Steingrim Dovland 2004-11-17 09:04:46 UTC
Created attachment 44167 [details, diff]
patch that shows the changes made to the docutils ebuild
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2004-11-19 02:03:28 UTC
does elisp-common require emacs? if it does, then i'm not keen on this idea. i'd rather it be in a seperate ebuild simply because i don't want people merging docutils and having to merge the emacs beast.
Comment 5 Steingrim Dovland 2004-11-19 02:12:16 UTC
The eclass itself does not DEPEND/RDEPEND on emacs, but it invokes emacs in elisp_compile() and elisp_comp(). However, none of these are called directly or indirectly in my patch. 

I definitely see your point.  Unfortunately I don't have access to a gentoo without emacs, but I'll see what I can do and test it further on a non-emacs box. 
Comment 6 Steingrim Dovland 2005-01-12 05:56:32 UTC
I could find a non-emacs box for me to test this on, however I have tested it with and without "emacs" in USE and with the emacs binary renamed to emacs.old without any problems. The modified ebuild does not call any functions from the emacs/elisp-eclass if the emacs-flag is not set, so it shouldn't cause any problems.

Anyway, I would really like to see rst-mode in portage, be it in this package or somewhere else, but it's no problem to keep on using my own docutils ebuild if necessary.
Comment 7 Homme Zwaagstra 2005-07-12 04:33:01 UTC
I second this request and recommend that it's merged with bug #95875 requesting
an ebuild for docutils 0.3.9
Comment 8 Marien Zwart (RETIRED) gentoo-dev 2006-01-22 18:02:59 UTC
This seems to be in 0.3.7 and up, which is the latest stable on everything with a stable version except for ppc-macos. Closing.