From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Load path and custom compiling cvs on Debian Date: Wed, 19 Dec 2007 18:26:21 +1100 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87wsrb402q.fsf@lion.rapttech.com.au> References: <8763yx668f.fsf@lion.rapttech.com.au> <874peh74yq.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1198050047 5000 80.91.229.12 (19 Dec 2007 07:40:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Dec 2007 07:40:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 19 08:40:55 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J4tXt-0007jy-EK for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Dec 2007 08:40:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4tXa-0006b6-6C for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Dec 2007 02:40:30 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!tethys.csu.net!nntp.csufresno.edu!sn-xt-sjc-02!sn-xt-sjc-09!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:IEB8Tbc/svOTZ3mMcd6t/4cDZI8= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 72 Original-Xref: shelby.stanford.edu gnu.emacs.help:154773 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50199 Archived-At: Sven Joachim writes: > On 2007-12-17 10:05 +0100, Tim X wrote: > >> There are a number of things you need to do to get a CVS build of emacs >> work with debian managed elisp packages. The debian version of emacs 22 is >> modified to handle this and you will need to do the same sort of >> modifications to make this work with your CVS version. >> >> The best way to do this is grep the files in the lisp directory of the >> debian version of emacs 22 for the string 'debian' (make it case >> insensitive). > > Not really. The best way to do this is to download and unpack the > Debian emacs22 source package, e.g. with "apt-get source emacs22". > There you can find all the patches in the debian/patches subdirectory. True. however, that will give you all the patches and not just the stuff relating to paths and loading debianised el packages. To what extent that is an issue depends on what you want to do (and maybe how easily you can grok the patches). > >> I can't remember all the files that are modified, but it does include >> startup.el and I think paths.el and possibly some others. >> >> You will also need to make the site-lisp of the installed CVS version >> (i.e. probably /usr/local/share/emacs/23.x/site-lisp a symbolic link to >> /usr/share/emacs22/site-lisp. > > Could you elaborate on that? The Debian packaged Emacsen look for site-lisp > directories both under /usr/share and under /usr/local/share. > When you install emacs, it puts some files/dirs under /emacs/, such as a site-lisp dir. The debian emacs 22 puts this under /usr/share/emacs/22.1 and CVS will put this uner /usr/local/share/emacs/23.x. The debian emacs22 site-lisp is a symbolic link to /usr/share/emacs22/site-lisp. To ensure you get this directory, you can remove the site-lisp created in the CVS install and replace it with a symbolic link to /usr/share/emacs22/site-lisp or /usr/share/emacs/22.1/site-lisp. >> Note also that when emacs is built, aI think it dumps an image of itself to >> speedup startup. This means you cannot just modify startup.el and have it >> work. You need to modify it and then build emacs. > > Correct. > >> At one stage there were some emacs22 snapshot packages being done - maybe >> google to see if you can find someone else who has done all the hard work > > Snapshots of the Emacs trunk are still built weekly by Romain Francoise, > see http://emacs.orebokech.com/. That's probably the best starting > point for building a debianized unicode-2 Emacs. > Agreed. These are the packages I used at one stage. However, I did run into some problems with these packages and others I have installed from sources.Romain and I tried to work out what the problem was, but never did. The problem did not exist with my own CVS build and the type of mods I've outlined above. However, Romain does an excellent job and my comment is not a criticism - for those starting out wanting the latest CVS snapshot and full Debian integration, I recommend his packages. The problem I encountered is something weird relating to the large specialised package I need to use, which for some reason triggers some bug when I use his package, but not when I use the official Debian emacs 22 or my own CVS version. Tim -- tcross (at) rapttech dot com dot au