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: installed 22.1-0ubuntu4~feisty1, should i remove /etc/emacs21/site-start.d Date: Sat, 01 Sep 2007 14:55:06 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87myw7ast1.fsf@lion.rapttech.com.au> References: <1188524026.665001.286000@l22g2000prc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1188625262 26515 80.91.229.12 (1 Sep 2007 05:41:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 1 Sep 2007 05:41:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 01 07:41:02 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 1IRLj8-0007DN-5s for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Sep 2007 07:40:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRLj7-0002K0-Fk for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Sep 2007 01:40:57 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!sn-xt-sjc-03!sn-xt-sjc-10!sn-xt-sjc-01!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/22.1.50 (gnu/linux) Cancel-Lock: sha1:T75sQOLZCOFxj/siP5VWRrPHm78= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 72 Original-Xref: shelby.stanford.edu gnu.emacs.help:151532 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:47051 Archived-At: Peter Dyballa writes: > Am 31.08.2007 um 03:33 schrieb imputerate: > >> can i rely on emacs22 to: >> >> go to /etc/emacs22 and find 00debian-vars.elc, >> >> instead of: >> >> going to /etc/emacs21 and running 20gnus-init.el? > If emacs 22 is from a deb package, yes, you should be able to expect it will find the correct init files. Folow Pete's suggestions to verify. > Launch it and then check the variable load-path – it won't destroy your > system. If load-path contains /etc/emacs21 and the GNU Emacs 21 files are > different from those of version 22, then it's probably better to send a > message to the Ubuntu company and to debian, since one such file is named > 00debian-vars.elc. The other file is *not* a part of GNU Emacs. > > Using a statement like this one > > (defadvice load (before debug-log activate) > (message "(Tipp von Kai G) Lade jetzt: %s" (ad-get-arg 0))) > > in the system init file can make GNU Emacs to show all files it has loaded > afterwards. > > > Anyway, it seems that Ubuntu linux is buggy when it can't remove what it > has installed before. A bug report seems to be recommended. > This may not be a bug. I'm assuming that ubuntu follows the Debian policy (I run Debian and have never run ubuntu). One of the nice things about the Debian approach is that you can have multiple versions of emacs installed at the same time. I currently have deb packages for emacs 21 and emacs 22 and a recent emacs CVS snampshot of 22.1.50.1. Debian modifies the startup.el file that is part of Emacs and adds a defconstant called debian-emacs-flavor - all .deb emacs packages should set this to an appropriate value (i.e. emacs21 or emacs22 or even emacs20). The startup.el file is also modified to load the /etc/emacs/site-start.d and /etc//site-start.d directories (and I think similarly named ones of /usr/local) as well as setup the paths for the compiled versions (one of the nice things about the debian setup is that it keeps different trees of byte compiled elisp according to the version of emacs they were compiled with). so, the first thing I'd check is see what value debian-emacs-flavor is set to. If it is emacs22, then I think you will find things work fine. If you have built emacs 22 from sources, you need to modify the startup.el file to add the debian stuff and then re-build. Note also that generally, the debian package system will not remove a directory it has created if either additonal files have been added that were not added by a package or if the files have been modified. Generally, apt will give a warning about this, but it can easily be missed. Also, keep in mind that Debian has two levels of package removal. If you just remove a package, it will usually leave the config files in place (theory being you may add the package back in the future). To completely remove the package and all config files, you need to do a 'purge' in addition to a remove. HTH Tim -- tcross (at) rapttech dot com dot au