Christophe Weblog Wiki Code Publications Music
don't print out "locals" from the global environment
[swankr.git] / swank.R
diff --git a/swank.R b/swank.R
index ce757b3995574feaacd94ed83dbdd5fbe03ea27b..c50114a1a65769edbf5ffe856e2f8f13d5d29bb9 100644 (file)
--- a/swank.R
+++ b/swank.R
@@ -423,6 +423,9 @@ computeRestartsForEmacs <- function (sldbState) {
 `swank:frame-locals-and-catch-tags` <- function(slimeConnection, sldbState, index) {
   frame <- sldbState$frames[[1+index]]
   objs <- ls(envir=frame)
+  if(identical(frame, globalenv())) {
+    objs <- c()
+  }
   list(lapply(objs, function(name) { list(quote(`:name`), name,
                                           quote(`:id`), 0,
                                           quote(`:value`),