User: adrian
Date: 05/10/16 08:21:21
Modified: packages/xemacs-packages/edit-utils ChangeLog saveconf.el
Log:
bug in saveconf.el <20051015.182714.20481253.davep(a)meduseld.net>
Revision Changes Path
1.204 +10 -0 XEmacs/packages/xemacs-packages/edit-utils/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/packages/xemacs-packages/edit-utils/ChangeLog,v
retrieving revision 1.203
retrieving revision 1.204
diff -u -p -r1.203 -r1.204
--- ChangeLog 2005/08/31 13:14:31 1.203
+++ ChangeLog 2005/10/16 06:21:20 1.204
@@ -1,3 +1,13 @@
+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.
+
2005-08-31 Norbert Koch <viteno(a)xemacs.org>
* Makefile (VERSION): XEmacs package 2.25 released.
1.2 +3 -2 XEmacs/packages/xemacs-packages/edit-utils/saveconf.el
Index: saveconf.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/packages/xemacs-packages/edit-utils/saveconf.el,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- saveconf.el 1998/01/14 06:36:17 1.1
+++ saveconf.el 2005/10/16 06:21:20 1.2
@@ -268,11 +268,12 @@ point is set in each window to what is w
;;
;; 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 )