all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: installed 22.1-0ubuntu4~feisty1, should i remove /etc/emacs21/site-start.d
Date: Sat, 01 Sep 2007 14:55:06 +1000	[thread overview]
Message-ID: <87myw7ast1.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: mailman.93.1188548269.18990.help-gnu-emacs@gnu.org

Peter Dyballa <Peter_Dyballa@Web.DE> 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/<debian-emacs-flavor>/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

  parent reply	other threads:[~2007-09-01  4:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-31  1:33 installed 22.1-0ubuntu4~feisty1, should i remove /etc/emacs21/site-start.d imputerate
2007-08-31  8:17 ` Peter Dyballa
2007-09-01 21:39   ` imputerate
     [not found] ` <mailman.93.1188548269.18990.help-gnu-emacs@gnu.org>
2007-09-01  4:55   ` Tim X [this message]
2007-09-01 22:11     ` imputerate
     [not found] <mailman.80.1188523505.18990.help-gnu-emacs@gnu.org>
2007-08-31  9:51 ` Thien-Thi Nguyen
2007-09-01 23:03   ` imputerate
2007-09-01 23:13     ` imputerate
     [not found]     ` <mailman.144.1188688427.18990.help-gnu-emacs@gnu.org>
2007-09-01 23:43       ` Thien-Thi Nguyen
2007-09-02  2:07         ` imputerate
     [not found]         ` <mailman.154.1188698835.18990.help-gnu-emacs@gnu.org>
2007-09-02  2:43           ` Thien-Thi Nguyen
  -- strict thread matches above, loose matches on Subject: below --
2007-08-31  1:24 imputerate

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87myw7ast1.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.