From 395066201d7d1ced328b4a980691ea4c5e0e50da Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 18 Apr 2002 22:40:21 +0000 Subject: *** no comment *** --- chess-file.el | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'chess-file.el') diff --git a/chess-file.el b/chess-file.el index e22ede3..dfbd3b6 100644 --- a/chess-file.el +++ b/chess-file.el @@ -17,13 +17,14 @@ (current-buffer))) ((eq event 'rescan) - (goto-char (point-min)) - (setq chess-file-locations nil) - (while (search-forward "[Event " nil t) - (goto-char (match-beginning 0)) - (push (point) chess-file-locations) - (forward-char 1)) - (setq chess-file-locations (nreverse chess-file-locations))) + (save-excursion + (goto-char (point-min)) + (setq chess-file-locations nil) + (while (search-forward "[Event " nil t) + (goto-char (match-beginning 0)) + (push (point) chess-file-locations) + (forward-char 1)) + (setq chess-file-locations (nreverse chess-file-locations)))) ((eq event 'save) (save-buffer)) -- cgit v1.2.3