Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194691 - Please update GNU Emacs support for dev-util/bzr
Summary: Please update GNU Emacs support for dev-util/bzr
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 184166
  Show dependency tree
 
Reported: 2007-10-04 11:03 UTC by Christian Faulhammer (RETIRED)
Modified: 2007-10-05 12:50 UTC (History)
2 users (show)

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


Attachments
Patch for ebuild (bzr_emacs.patch,1.24 KB, patch)
2007-10-04 11:06 UTC, Christian Faulhammer (RETIRED)
Details | Diff
sitefile to to go ${FILESDIR} (70bzr-gentoo.el,123 bytes, text/plain)
2007-10-04 11:07 UTC, Christian Faulhammer (RETIRED)
Details
patch with die statements for elisp install functions (bzr_emacs.patch,1.31 KB, patch)
2007-10-04 11:21 UTC, Christian Faulhammer (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 :)