From eb2756730af853555a941d7acb595c07169f3524 Mon Sep 17 00:00:00 2001 From: Christophe Rhodes Date: Wed, 1 Sep 2010 11:11:06 +0100 Subject: [PATCH 1/1] use srcfile$wd when going to source for an sldb frame it worked before while emacs and R were started with the same working directory; this is not always going to be the case. --- swank.R | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/swank.R b/swank.R index bd7e093..1316485 100644 --- a/swank.R +++ b/swank.R @@ -349,9 +349,8 @@ computeRestartsForEmacs <- function (sldbState) { if(is.null(srcfile)) { list(quote(`:error`), "no srcfile") } else { - filename <- get("filename", srcfile) list(quote(`:location`), - list(quote(`:file`), filename), + list(quote(`:file`), sprintf("%s/%s", srcfile$wd, srcfile$filename)), list(quote(`:line`), srcref[[1]], srcref[[2]]-1), FALSE) } -- 2.30.2