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

  • Home
  • SEARCH
  • 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 7553637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:06:53+00:00 2026-05-30T11:06:53+00:00

In the past, i use the following script to start SBCL: breakchars=(){}[],^%$#@\\;:”|\\ cd /media/E/work

  • 0

In the past, i use the following script to start SBCL:

breakchars="(){}[],^%$#@\"\";:''|\\"
cd /media/E/work

exec rlwrap --remember -c -b "$breakchars"  -f "$HOME"/.sbcl_completions  sbcl --noinform --userinit "$HOME"/.sbclrc "$@"

Now when using slime in emacs, i doonot know how to set SBCL’s current directory ?

Any suggestion is appreciated!

  • 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-05-30T11:06:54+00:00Added an answer on May 30, 2026 at 11:06 am

    Why do you need to change the current directory from SLIME? I assume it’s not because you want to visit a Lisp source file from the system you’re currently writing, but because you want write code that reads or writes a file that contains data.

    If so, it’s probably better to try local-projects in Quicklisp. Together with quickproject, it allows you to easily create systems, which you can then load using (ql:quickload 'my-system) or even (require 'my-system).

    If you need to refer to a data file located relative to the root of system my-system (just using the name from the last paragraph to keep examples consistent), you could use asdf:system-relative-pathname. For instance, (asdf:system-relative-pathname 'my-system "files/data.txt").

    Sure, deployment is a completely different business. My solution is to look at how the running executable was called to determine if the code is deployed or in development. If in development, I use asdf:system-relative-pathname. If deployed, I determine the path of the files based on the path of the executable (my ‘build script’ copies these files next to the executables when building the project).

    Since I started using this approach, my need for cd-ing in SBCL dropped to zero. cd-ing around wasn’t hard, but it’s nice to have less things to worry about.

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

Sidebar

Related Questions

At work we currently use the following deployment strategy: Run a batch script to
Past scenario - Work with Tomcat and start in debug mode and Remote Debug
In the past i would use the following simple data model to implement security
In past I use dynamic sql and datatable to get data from database. Such
Hello I have use DOMDocs in the past but I am stuck how to
In the past I've done web application development using Visual Studio. Initially I'd use
I have question regarding the use of function parameters. In the past I have
There have been several questions over the past few days about the proper use
I use code like the following in ASP.Net to enumerate the websites in IIS:
Since the time has just changed the past weekend in places that use Daylight

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.