I looked up the manual, and it says that the history in a buffer is stored in buffer-undo-list variable. I printed out this variable to see what the contents are, but they don't seem to be making much sense to me.
This is the basic functionality I am after: At any given point, I want to be able to see the old state of the document (I figured I could somehow piece together the document from the history, but I am getting quite bamboozled in this effort).
I am quite new to elisp, any help would be appreciated, thanks. (I know, there is the possibility that my whole approach to this is wrong.)
EDIT: I think I was kind of unclear as to what I wanted. My requirement is basically having a snapshot of the file, at every change. For instance, I have a file that says "Hello world!", and then I write after that "Hello beautiful world!", I want to be able to have both versions of the file somehow. Is this possible? Like, auto save the file on every change in the file, but auto save to a new file every time.