-
Notifications
You must be signed in to change notification settings - Fork 1
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
Proposal to not quit
when we are working inside Slime
#3
Comments
This is a good idea. Ideally, we should call this helper system like |
By the way, a function defined with To solve this issue really well, we need to separate defined body where variables names a used as keywords from the function which parses command-line arguments. And a version to be called should be chosen depending on IDE or non-IDE environent. |
How would you find the IDE kind? (is there an environment variable for this?) |
I don't see any special environment variables in LispWorks listener. But probably the best way will be to figure out IDE from backtrace stack frames. For example, in lispworks it contains a call to
In SBCL running under the SLYNK:
|
The guesser should search for packages such as |
mmh good ideas, though would you maybe accept a first patch that does like |
Hello there,
I tried defmain, and I tried to call the main function from Emacs & Slime. It should be possible, since what defmain does is creating a
defun
calledmain
which accepts a&rest argv
. My goal was to call the main function from a run.lisp script. That way I could avoid writing another function that would be called by main and that would accept the same key arguments from main.So I evaluated (C-x C-e) or compiled a line like
(mypackage::main :debug t)
to see what it does, but it closes the Lisp connection.I suggest we check if we are on Slime and do not quit in that case.
A very simple way is to check the
TERM
environment variable. On Slime, it's "dumb". I made a trivial system for that: termp.The text was updated successfully, but these errors were encountered: