Re: Beginner emacs / SLIME / ACL / ASDF question



"Unknownmat" <unknownmat@xxxxxxxxx> writes:

Hello,

How do I modify the ASDF *central-registry* variable, so that the new
value is loaded each time I start Emacs?

I'm still fairly new to LISP and very new to the whole emacs / LISP
interaction. It's an intriguing idea, but I'm not yet fully
comfortable with it.

I am running Windows XP, and recently installed LispBox0.7 using
ACL-express, from the "Practical Common Lisp" page:
http://www.gigamonkeys.com/lispbox/

*central-registry* defaults to *default-pathname-defaults*, which is
somehow fed the default LispBox installation directory: C:\program
files\lispbox-0.7. Instead, I would like to specify where to keep my
".asd" files. In fact, I am very comfortable with Visual Studio's
".sln" files, and would prefer if, similarly, each project were
contained in it's own directory with its own.asd file (and without the
need for a *central-registry*), but based on my understanding, I do not
think this is how ASDF works.

l cannot figure out how to change *central-registry*, short of
hand-editing it each time I open my environment. I'm uncertain where
this value gets set. I believe it is after Emacs loads, and so it is
not appropriate to set this in an ".emacs" file. I am uncertain if
ASDF is loaded by SLIME, or ACL. To make matters more complicated, I
have 3 "asdf.lisp" files on my system, and I do not know which is being
loaded by my system. In any case, I tried hand editing the asdf.lisp
(defvar *central-registry*...) statement in all 3 files (which seems
like a terrible way to configure my system, but I don't know what the
standard way to configure this is supposed to be... ), but this has not
made the slighest difference.

*central-registry* is a Common Lisp variable, not an Emacs one, so
setting it in .emacs will have no effect. I don't know where ACL
keeps its startup files, but what you want to do is find its startup
file and add to that. For instance, my .sbclrc file in my home
directory says:
(require '#:asdf)
(pushnew "/home/ari/.sbcl/systems/" asdf:*central-registry*)

My .openmcl/startup.lisp says almost exactly the same thing, except
with a different path because it's on a different machine.

Hopefully someone can point you to where ACL (particularly running
within the LispBox setup) loads its startup from. You might start by
looking through the LispBox files for it.

I'm not at all familiar with Usenet either, and I apologize if I've
gone about posting this in the wrong way. Any help would be greatly
appreciated.

You did fine on that part. :)
.



Relevant Pages

  • Beginner emacs / SLIME / ACL / ASDF question
    ... How do I modify the ASDF *central-registry* variable, ... I'm still fairly new to LISP and very new to the whole emacs / LISP ...
    (comp.lang.lisp)
  • Re: How To Learn Lisp
    ... HOW TO LEARN LISP ... it's built on a beast of a text editor called ... Emacs which is supposed to be all-powerful. ... I guess the nightmare learning curve you imply that makes it such a beast ...
    (comp.lang.lisp)
  • My interests are converging onto emacs - my emacs office, no, OS!
    ... editor, but I got interested in lisp, and what do you know, I got ... led me to be recommended ESS (Emacs Speaks Statistics) for R, ... I'm also getting again into chess and that found me Emacs Chess. ... emacs :-) - and regular expressions already anyway so perl, ...
    (comp.unix.programmer)
  • Re: Why Lisp instead of Scheme?
    ... > I think many Lisp users are blinded to how hard Emacs is. ... from teaching all kinds of people to use Emacs over the ... Today, people have many more preconceptions of what an editor is, ... IDE functionality (eg. accessing the compiler and debugger) ...
    (comp.lang.lisp)
  • Re: IDE for Windows
    ... I'm very new to Lisp too, and while I don't have any really ... no free editor I found so far passes both tests. ... If all you think is good about Emacs is that it "indents Lisp ... In fact many Windows programmers put in more time learning editors ...
    (comp.lang.lisp)