I don't know about emacs, but snd -b test2.scm leaves you in snd -- put (exit) at the end to return to the caller. I can paste test2.scm into the motif snd repl without problems.