In the restore part:
2005-05-02 David A. Panariti <davep.xemacs(a)meduseld.net>
* saveconf.el (recover-context):
Fixed bug when attempting to restore a file that no longer
exists. In this case, the restore loop deletes the buffer but
does not read the following file offset. This puts the restore
loop out of alignment with the data in the restore file, which
causes the loop to terminate possibly leaving some context
unprocessed.
I submitted this a while ago, but didn't see any activity on it.
--
/ I WILL NOT CUT CORNERS
davep (|) " " " " " "
/ " " " " " "
$$ " " " " " "
Bart Simpson on chalkboard in episode 7F11
--- saveconf.el.ORIG 2005-05-02 09:45:05.311505589 -0400
+++ saveconf.el 2005-05-02 09:46:29.710913144 -0400
@@ -268,11 +268,12 @@
;;
;; Recover buffer contexts, if any.
;;
- (while (setq sexpr (read context-buffer))
+ (while (setq sexpr (read context-buffer)
+ point (read context-buffer))
(set-buffer (find-file-noselect sexpr t))
(if (zerop (buffer-size))
(kill-buffer (current-buffer))
- (goto-char (read context-buffer))))
+ (goto-char point)))
(bury-buffer "*scratch*")
(kill-buffer context-buffer)
t )