It was surprisingly hard to intuit getwd() and setwd(), what with
apropos("dir") and apropos("cwd") failing. Nevertheless, they exist
and function, so use them for the interface (but not slimefun)
functions.
#+EMAIL: csr21@cantab.net
#+OPTIONS: H:2
* Protocol requests
-** core slimefuns [29/93]
+** core slimefuns [31/95]
- [ ] ping
- [X] create-repl
- [ ] create-listener
- [ ] update-indentation-information
- [X] frame-source-location (NB: not currently a slimefun)
- [X] buffer-first-change (NB: not currently a slimefun)
+ - [X] default-directory (NB: not currently a slimefun)
+ - [X] set-default-directory (NB: not currently a slimefun)
** swank-presentations [4/5]
- [X] lookup-presented-object
- [X] lookup-presented-object-or-lose
object <- get(name, envir=frame)
inspectObject(slimeConnection, object)
}
+
+`swank:default-directory` <- function(slimeConnection, sldbState) {
+ getwd()
+}
+
+`swank:set-default-directory` <- function(slimeConnection, sldbState, directory) {
+ setwd(directory)
+ `swank:default-directory`(slimeConnection, sldbState)
+}