Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8404275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:33:29+00:00 2026-06-09T22:33:29+00:00

I’m running Aquamacs + Slime and I’m able to start Slime automatically when I

  • 0

I’m running Aquamacs + Slime and I’m able to start Slime automatically when I start Aquamacs. However, when I try to load a lisp file after that I keep getting various errors depending on how I’m trying to load the file. Here’s my preferences.el

(setq inferior-lisp-program "~/ccl/dx86cl64"
  slime-startup-animation nil)
(require 'slime)
(split-window-horizontally)
(other-window 1)
(slime)
(eval-after-load "slime"
   '(progn 
       (slime-compile-and-load-file "/Users/xxxxx/xxxxx/load-seq.lisp")
 )) 

I get the following error

error: Buffer *inferior-lisp* is not associated with a file.

I’ve tried other functions including load compile-and-load and slime-load-file and got the following errors respectively…

Invalid read syntax: #
Symbol's function definition is void: compile-and-load
error: Not connected.

The lisp file loads (and compiles) fine when I do (load "/Users/xxxxx/xxxxx/load-seq.lisp") from the slime REPL. It seems like when I put it in Preferences.el, it does not wait for slime to load even though I’m using eval-after-load.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:33:30+00:00Added an answer on June 9, 2026 at 10:33 pm

    You happened to misunderstand the use of the slime-compile-and-load-file function. Its docstring says:

    (slime-compile-and-load-file &optional POLICY)

    Compile and load the buffer’s file and highlight compiler notes.

    The function operates on a file which is already associated with the current buffer, and it expects a compiling policy, not a filename, as its (optional) argument. So your code should have been like this:

    (slime)
    (add-hook 'slime-connected-hook
              (lambda ()
                (find-file "/Users/xxxxx/xxxxx/load-seq.lisp")
                (slime-compile-and-load-file)))
    

    where slime-connected-hook contains a list of functions to be called when SLIME connects to a Lisp server.

    But I’m not sure if the Emacs init file is a right place to load such a non-Emacs Lisp code. The CCL init file would be a better place to do it. Refer to 2.4. Personal Customization with the Init File in the CCL manual.

    Additionally, the load function is for executing a Emacs Lisp code. slime-load-file is a right function to call, but it happened to be called too early (or before SLIME connects to a Lisp server). It would have worked if it had been added to the slime-connected-hook hook. Actually, I’d like to recommend slime-load-file over slime-compile-and-load-file if you don’t have a valid excuse for compiling the Lisp code whenever you start Emacs (and again you really want to do it in Emacs):

    (add-hook 'slime-connected-hook
              (lambda ()
                (slime-load-file "/Users/xxxxx/xxxxx/load-seq.lisp")))
    

    Finally, there is no function called compile-and-load.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
Specifically, suppose I start with the string string =hello \'i am \' me And

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.