aboutsummaryrefslogtreecommitdiffstats
path: root/w3m-session-backup.el
AgeCommit message (Collapse)Author
2018-04-11Fix file saving issuesTeddy Wing
* Use a real path for the temporary file because otherwise it either doesn't get saved, or I have no idea where it gets saved to. * Use the `INSERT` function to actually write the string to the temporary file buffer. * Use `(last page 1)` with the `1` argument at the end now as a way to try to get it to return us the string instead of a single-element list containing the page title. Not sure if this works though.
2018-04-11Write the session backup to a fileTeddy Wing
Use a temporary hard-coded file. Construct a string with each page turning into a URL and page title on separate lines, and a blank line between pages. Doesn't quite work just yet, but the general idea is there.
2018-04-11Get list of URL and page title pairsTeddy Wing
* Extract the list of crash recovery session buffers to a function to give it a name. I'll come up with a better name later. * Grab the first and last elements of each buffer sub-list and create tuples from them. This gives us a list of two-element lists containing the URL and title of the pages.
2018-04-11Get a list of w3m buffers from the saved session fileTeddy Wing
Grab the buffers saved to the "Crash recovery session" in "emacs-w3m"'s session file. Just list them for now. We'll be using this to create a backup file.