Anonymous committed 2ca7933

bug in saveconf.el <>

Comments (0)

Files changed (2)

+2005-05-02  David A. Panariti  <>
+	* 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  <>
 	* 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 )