Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add impl-source-read-only editor-variable #1655

Closed
wants to merge 0 commits into from

Conversation

sakurawald
Copy link
Contributor

@sakurawald sakurawald commented Nov 30, 2024

To close issue: #1615

This option is enabled by default, to disable it, eval the form in init.lisp

(setf (lem:variable-value 'lem-core::impl-source-read-only :global) nil)

The typical value of source dir for sbcl implementation are:

  • /usr/share/sbcl-source/src/code/ (installed via yay -S sbcl)
  • ~/.roswell/src/sbcl-2.4.10/src/code/ (installed via roswell)

There may be a better function to decide if (current-directory) is part of implementation source directory.

image

@sakurawald
Copy link
Contributor Author

sakurawald commented Nov 30, 2024

Another way to get the source directory at runtime using the running image is to use the SYS:SRC logic path.

image

The example function:

CL-USER> (pathname-match-p "/usr/share/sbcl-source/src/" (second (assoc "SYS:SRC;**;*.*.*" (logical-pathname-translations "SYS") :test 'equal)))

T

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant