Skip to content

Proposal to not quit when we are working inside Slime #3

@vindarel

Description

@vindarel

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 called main 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions