[slime-devel] Semantic of slime-repl-quit command

Hello, Currently I am using slime to hack a remote lisp process using the swank server with the parameter :dont-close to T. However, when I am typing commands at repl, if I use `, quit' the lisp process ends. I know it is a documented thing, but I think `slime-repl-quit' should not request to quit the inferior process. It should be done by swank if DONT-CLOSE is NIL. Otherwise we should close emacs buffers by hand if we want to keep alive the swank connection, I think. I would like if a patch for this would be wise. Thanks in advance. David.

David Vazquez <davazp@es.gnu.org> writes:
Hello,
Currently I am using slime to hack a remote lisp process using the swank server with the parameter :dont-close to T. However, when I am typing commands at repl, if I use `, quit' the lisp process ends.
I know it is a documented thing, but I think `slime-repl-quit' should not request to quit the inferior process. It should be done by swank if DONT-CLOSE is NIL. Otherwise we should close emacs buffers by hand if we want to keep alive the swank connection, I think.
I would like if a patch for this would be wise. Thanks in advance.
David. You should use ,disconnect. Though, currently it disconnects all connections, that's another issue: http://article.gmane.org/gmane.lisp.slime.devel/8528
-- With best regards, Stas.

+ Stas Boukarev <stassats@gmail.com>:
You should use ,disconnect. Though, currently it disconnects all connections,
I've been using this code since November 2005: (defun slime-close-connection () "Close slime connection, kill the associated buffers." (interactive) (kill-buffer (slime-output-buffer)) (slime-net-close (slime-connection))) (defslime-repl-shortcut slime-repl-close ("close") (:handler 'slime-close-connection) (:one-liner "Close the current connection.")) Then typing ,close works for me. It produces some warnings that I just ignore. - Harald

Harald Hanche-Olsen <hanche@math.ntnu.no> writes:
You should use ,disconnect. Though, currently it disconnects all connections,
I've been using this code since November 2005:
(defun slime-close-connection () "Close slime connection, kill the associated buffers." (interactive) (kill-buffer (slime-output-buffer)) (slime-net-close (slime-connection))) (defslime-repl-shortcut slime-repl-close ("close") (:handler 'slime-close-connection) (:one-liner "Close the current connection."))
Great. I will use something like slime-close-connection. By the way, the disconnect command does not appear in the manual. Thanks

David Vazquez <davazp@es.gnu.org> writes:
Harald Hanche-Olsen <hanche@math.ntnu.no> writes:
You should use ,disconnect. Though, currently it disconnects all connections,
I've been using this code since November 2005:
(defun slime-close-connection () "Close slime connection, kill the associated buffers." (interactive) (kill-buffer (slime-output-buffer)) (slime-net-close (slime-connection))) (defslime-repl-shortcut slime-repl-close ("close") (:handler 'slime-close-connection) (:one-liner "Close the current connection."))
Great. I will use something like slime-close-connection. By the way, the disconnect command does not appear in the manual.
Manual at the webesite isn't current, go to slime/doc and compile current docs. -- With best regards, Stas.
participants (3)
-
David Vazquez
-
Harald Hanche-Olsen
-
Stas Boukarev