I've written a small version of the #emacs desktop mode package for #lem. It required serializing a point in the buffer. In emacs, point is just a numeric character offset In #lem-editor iit is a #CLOS object with line number, offset in the line, buffer and other details. It doesn't have a reader form; I'm not sure it's possible to save all of the fields, but I wonder I should attempt to make it serializable. I can reconstruct it given line number, offset and buffer name.
I'm not sure of the best way to restore the file buffer in lem. find-file is interactive and may do the wrong thing. I ended up using find-file-buffer, but am worried that it doesn't do everything when setting up the buffer. I get crashes after running desktop-restore.