From: Miguel Ping
Subject: Problem with emacs-gtk and asdf on sbcl
Date: 
Message-ID: <e614ef9b-3f4c-4772-bafc-3d01cb9eb595@f3g2000hsg.googlegroups.com>
Hi all,

This is my first post, so be gentle with me :)

I'm trying to configure emacs-gtk and sbcl to work with sbc. This is
my .emacs file:

(add-to-list 'load-path "/usr/lib/sbcl/asdf/")
(add-to-list 'load-path "/usr/lib/sbcl/asdf-install/")
(add-to-list 'load-path "/opt/slime-2.0/")
(require 'slime)
(setq inferior-lisp-program "/usr/bin/sbcl")
(slime)
(require 'asdf)
(require 'asdf-install)

But when I start emacs-gtk, it gives me a 2 sec warning with something
like "cannot open load file: asdf". But the strange thing is that if I
do (require 'asdf) or (require 'asdf-install) from slime or from the
sbcl shell, it all works.

The full 'stack trace' of emacs-gtk running with --debug-init is here:

Debugger entered--Lisp error: (file-error "Cannot open load file"
"asdf")
  require(asdf)
  eval-buffer(#<buffer  *load*> nil "/home/mping/.emacs" nil t)  ;
Reading at buffer position 231
  load-with-code-conversion("/home/mping/.emacs" "/home/mping/.emacs"
t t)
  load("~/.emacs" t t)

You probably guessed I come from a C#/Java background...

From: Joost Diepenmaat
Subject: Re: Problem with emacs-gtk and asdf on sbcl
Date: 
Message-ID: <4751f3bf$0$20435$e4fe514c@dreader32.news.xs4all.nl>
On Sat, 01 Dec 2007 15:43:53 -0800, Miguel Ping wrote:
> This is my
> .emacs file:

...

> (require 'asdf)
> (require 'asdf-install)

You're supposed to (require 'asdf) etc in your inferior lisp, not in 
emacs lisp.

Add those lines to your .sbclrc instead.

Joost.
From: Miguel Ping
Subject: Re: Problem with emacs-gtk and asdf on sbcl
Date: 
Message-ID: <400f9404-76d7-44ee-ae49-bfa8274ba48b@e4g2000hsg.googlegroups.com>
Thanks, that did the trick.

On Dec 1, 11:52 pm, Joost Diepenmaat <·····@zeekat.nl> wrote:
> On Sat, 01 Dec 2007 15:43:53 -0800, Miguel Ping wrote:
> > This is my
> > .emacs file:
>
> ...
>
> > (require 'asdf)
> > (require 'asdf-install)
>
> You're supposed to (require 'asdf) etc in your inferior lisp, not in
> emacs lisp.
>
> Add those lines to your .sbclrc instead.
>
> Joost.