From 2b90642449296fbb529321bb67ec50595e004b07 Mon Sep 17 00:00:00 2001 From: Christophe Rhodes Date: Tue, 24 Apr 2012 13:39:47 +0100 Subject: [PATCH] declare a version in `swank:connection-info` Useful both for me, to track what slime version is most likely to be maximally compatible, and for SLIMV users, which dispatch on the version to know whether the protocol is byte-count-based or character-count-based. --- swank.R | 1 + 1 file changed, 1 insertion(+) diff --git a/swank.R b/swank.R index 49f73ff..979bd84 100644 --- a/swank.R +++ b/swank.R @@ -293,6 +293,7 @@ printToString <- function(val) { `swank:connection-info` <- function (slimeConnection, sldbState) { list(quote(`:pid`), Sys.getpid(), quote(`:package`), list(quote(`:name`), "R", quote(`:prompt`), "R> "), + quote(`:version`), "2012-04-23", quote(`:encoding`), list(quote(`:coding-systems`), list("utf-8-unix")), quote(`:lisp-implementation`), list(quote(`:type`), "R", quote(`:name`), "R", -- 2.39.5