Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 194691

Summary: Please update GNU Emacs support for dev-util/bzr
Product: Gentoo Linux Reporter: Christian Faulhammer (RETIRED) <fauli>
Component: New packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: emacs, marienz
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 184166    
Attachments: Patch for ebuild
sitefile to to go ${FILESDIR}
patch with die statements for elisp install functions

Description Christian Faulhammer (RETIRED) gentoo-dev 2007-10-04 11:03:39 UTC
The currently available Emacs support installed by bzr has some drawbacks:
- no canonical way of installation of Elisp files
- the sitefile loads bzr-mode just like that and slows down start-up of Emacs, normally bzr-mode should be loaded when needed
- bzr-mode.el is very crude and not well made
- GNU Emacs 22.2 (not yet released) will bring native bzr support, making this one obsolete

Patches to follow
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2007-10-04 11:06:26 UTC
Created attachment 132542 [details, diff]
Patch for ebuild

- define variable SITEFILE for later use (this the way all packages with Emacs support do it)
- use functions from elisp-common.eclass  to install the Elisp files and use SITELISP variable for site-file installation
- add a file to a directory so Emacs does not automatically regard files located there
- add a note to pkg_postinst that Emacs 22.2 will bring native support and all others have to load it manually
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2007-10-04 11:07:58 UTC
Created attachment 132543 [details]
sitefile to to go ${FILESDIR}

This will add the directory where bzr-mode.el has been installed to the load-path (so Emacs can find it) if no built-in bzr support is found.  This is for people adding the (load "bzr-mode") line to their ~/.emacs file
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2007-10-04 11:21:09 UTC
Created attachment 132547 [details, diff]
patch with die statements for elisp install functions

Thanks to ulm for pointing out
Comment 4 Ali Polatel (RETIRED) gentoo-dev 2007-10-05 12:50:40 UTC
bzr-0.91-r1 fixes this. Thanks for reporting :)