Christophe Weblog Wiki Code Publications Music
declare a version in `swank:connection-info`
authorChristophe Rhodes <csr21@cantab.net>
Tue, 24 Apr 2012 12:39:47 +0000 (13:39 +0100)
committerChristophe Rhodes <csr21@cantab.net>
Tue, 24 Apr 2012 12:39:47 +0000 (13:39 +0100)
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

diff --git a/swank.R b/swank.R
index 49f73fff2b1dd3e61e4294140a03f31f727252a0..979bd8487ceb2532661c5db39e7228782bc6d4cc 100644 (file)
--- 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",