From 8cfc9d8ac69ca55d48cc615de510c32fddad61da Mon Sep 17 00:00:00 2001 From: Christophe Rhodes Date: Sun, 12 Sep 2010 17:40:48 +0100 Subject: [PATCH] implement swank:inspect-current-condition and swank:inspect-frame-var --- swank.R | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/swank.R b/swank.R index 7ec3dea..e9674bc 100644 --- a/swank.R +++ b/swank.R @@ -591,3 +591,16 @@ emacsInspect.numeric <- function(numeric) { eval(expr, envir=globalenv()) } } + +`swank:inspect-current-condition` <- function(slimeConnection, sldbState) { + resetInspector(slimeConnection) + inspectObject(slimeConnection, sldbState$condition) +} + +`swank:inspect-frame-var` <- function(slimeConnection, sldbState, frame, var) { + resetInspector(slimeConnection) + frame <- sldbState$frames[[1+frame]] + name <- ls(envir=frame)[[1+var]] + object <- get(name, envir=frame) + inspectObject(slimeConnection, object) +} -- 2.39.5