emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debian's idiosyncratic complexification of Emacs


From: Manoj Srivastava
Subject: Re: Debian's idiosyncratic complexification of Emacs
Date: Tue, 22 Jul 2008 09:21:09 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) (x86_64-unknown-linux-gnu)

On Tue, 22 Jul 2008 13:27:23 +0900, Miles Bader <address@hidden> said: 

> Incidentally, while on the issue of debian emacs startup, I have the
> following snippet in my .emacs file for hooking my non-debian emacs
> into the debian emacs package system:

>    ;; Debian stuff
>    (unless (boundp 'debian-emacs-flavor)
>      (load "/usr/share/emacs/site-lisp/debian-startup")
>      (debian-startup 'emacs22) (debian-startup 'emacs22))

> ["emacs22" because there is no emacs23 in debian yet]

> It does appear to work (I can even use complicated packages like ecb
> installed via aptitude), but is obviously slightly odd; is there a
> better way than this?

> AFAICT, the multiple calls to `debian-startup' are necessary -- it
> doesn't work with just one -- which is one of the weird things nobody
> seemed to understand when I asked about it a few years about on
> debian-emacsen....

        Strange. Here is my variant:
(if (emacs-type-eq 'fsf)
    (if (emacs-version=  23 )
        (progn
          (add-to-list 'load-path "/usr/share/emacs/site-lisp/")
          (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/")
          (defconst debian-emacs-flavor 'emacs22)
          (load "debian-startup")
          (debian-startup 'emacs-snapshot))))

        This seems to work fine, with just a single invocation.

        manoj
-- 
Only God can make random selections.
Manoj Srivastava <address@hidden> <http://www.golden-gryphon.com/>  
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C





reply via email to

[Prev in Thread] Current Thread [Next in Thread]