I've seen a discussion on someone trying to save the actual state of a Lisp Slime REPL. I just want to save a text version of a Geiser Racket REPL session, e.g., *ch1*, while using org-mode. (Then I can add it to my git.) Could someone point me to some elisp that would create the text file with a name that contains the session name, date-time stamp and file ending ".repl"? I've looked at elisp ref talk about "saving buffer," but it doesn't seem to have what I want.
I say all this because just trying to do a C-x C-s will indeed give me a text version of REPL session *ch1*, but it renames the live *ch1* REPL buffer to whatever I'm calling the text version, e.g. ch1-12112016-11:04.repl ... which is cool but not what I need. (BTW, the org-mode/geiser system doesn't get confused. It still uses that REPL session even though it's been renamed.) Again, I just want to save off a text version of what's in the REPL buffer with a timestamp and .repl ending.