Commits

Anonymous committed 2ca7933

bug in saveconf.el <20051015.182714.20481253.davep@meduseld.net>

Comments (0)

Files changed (2)

+2005-05-02  David A. Panariti  <davep.xemacs@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.
+
 2005-08-31  Norbert Koch  <viteno@xemacs.org>
 
 	* Makefile (VERSION): XEmacs package 2.25 released.
 	;;
 	;; 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 )