aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-04-11 00:11:34 +0200
committerTeddy Wing2018-04-11 00:11:34 +0200
commit58b7a20ff17a20538e6e53278fd43c6425d18b79 (patch)
tree6ec0b4e47c8c30d8cfd91320149caa2fc70ad6f9
downloadw3m-session-backup-58b7a20ff17a20538e6e53278fd43c6425d18b79.tar.bz2
Get a list of w3m buffers from the saved session file
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.
-rw-r--r--w3m-session-backup.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/w3m-session-backup.el b/w3m-session-backup.el
new file mode 100644
index 0000000..60d88d7
--- /dev/null
+++ b/w3m-session-backup.el
@@ -0,0 +1,14 @@
+(defun my-w3m-session-backup ()
+ "TODO"
+ (mapcar
+ (lambda (buffer)
+ buffer)
+ (nth 2
+ (first
+ (w3m-load-list w3m-session-file)))))
+
+;; (first (nth 2
+;; (first
+;; (w3m-load-list w3m-session-file))))
+
+(first (my-w3m-session-backup))