Say that I am connected to a remote Lisp using swank/slime. I have a data file on my local machine on disk or, perhaps, in an emacs buffer. I want to process this file using the remote Lisp.
I can obviously drop out to a shell and scp the file to the server, load the file, process it, close, delete the file so that I don't make a mess on the server.
I can also paste the file into the repl:
> (defparameter *my-file* "[paste file here]")
But this is nasty if the text has quotes in it or the file is binary.
Both options are cumbersome.
Is there a nice way to get the local emacs to tunnel a file to the remote Lisp so that the remote Lisp can open it as a stream?
I'm picturing something like:
> (swank:with-open-client-file (s #p"/path/to/local/file") ... )
Edit: This example feels like it could open some holes in my local file system. Could it be done without causing serious security problems?