Function elisp-site-file-install should not be used to install general elisp files. Please use elisp-install instead (this is well-documented in elisp-common.eclass, btw): - elisp-site-file-install "${DISTDIR}"/gle-emacs.el gle-mode.el + elisp-install "${DISTDIR}"/gle-emacs.el gle-mode.el || die Also, files/64gle-gentoo.el should include the following as its first line: (add-to-list 'load-path "@SITELISP@")
After looking into gle-emacs.el I come to the conclusion that this requires more work. Patch will follow.
Created attachment 168254 [details, diff] Proposed changes for gle-4.1.2b.ebuild This will byte compile gle-mode.el and use the proper functions to install files.
Created attachment 168256 [details, diff] Proposed changes for files/64gle-gentoo.el Set load-path for Emacs (and some comment changes).
Created attachment 168260 [details, diff] files/gle-4.1.2b-gle-emacs.patch This patch removes some invasive things from gle-mode.el, like setting of global keybindings and setting the major mode at load time. In general, setting of keybindings (or menu entries) should never be done at load time.
(In reply to comment #4) > This patch removes some invasive things from gle-mode.el, like setting of > global keybindings and setting the major mode at load time. > > In general, setting of keybindings (or menu entries) should never be done at > load time. I suspect I'm the only real user of gle-mode out here (I use gle very often, and prefer to work from emacs). And I don't quite like these changes. Why remove the GLE menu and the keybindings C-c C-p (create postscript) and C-c C-v (view postscript)? I use them all the time: change a line in a gle file and view the result. If this functionality is in a wrong place, let's move it to the right place, not just delete it.
Created attachment 168384 [details, diff] files/gle-4.1.2b-gle-emacs.patch You are right of course. Probably I overreacted when I saw that horrible way of doing things. ;-) Please try if attached new patch works for you. (Note that the keybindings and menu bar entries only appear when you are in gle-mode.)
Many thanks, a fixed ebuild is in cvs. I've checked that, when I have some LaTeX files and some gle files in emacs (a typical situation), the menu GLE appears only when I'm in a gle file, and gle keybindings like C-c C-p only work in gle files. I'll send your patch upstream.