(gnus-restore-hidden-threads-configuration): Save excursion.
authorSimon Josefsson <jas@extundo.com>
Fri, 14 Jul 2000 12:54:30 +0000 (12:54 +0000)
committerSimon Josefsson <jas@extundo.com>
Fri, 14 Jul 2000 12:54:30 +0000 (12:54 +0000)
lisp/ChangeLog
lisp/gnus-sum.el

index 939f230..c302fa7 100644 (file)
@@ -1,3 +1,8 @@
+2000-07-16  Daiki Ueno  <ueno@unixuser.org>
+
+       * gnus-sum.el (gnus-restore-hidden-threads-configuration): Save
+       excursion.
+
 2000-07-15  Simon Josefsson  <simon@josefsson.org>
 
        * gnus-cus.el (gnus-group-parameters, banner): Type is regexp.
index 163d1e3..8e30469 100644 (file)
@@ -2429,12 +2429,13 @@ marks of articles."
 
 (defun gnus-restore-hidden-threads-configuration (config)
   "Restore hidden threads configuration from CONFIG."
-  (let (point buffer-read-only)
-    (while (setq point (pop config))
-      (when (and (< point (point-max))
-                (goto-char point)
-                (eq (char-after) ?\n))
-       (subst-char-in-region point (1+ point) ?\n ?\r)))))
+  (save-excursion
+    (let (point buffer-read-only)
+      (while (setq point (pop config))
+       (when (and (< point (point-max))
+                  (goto-char point)
+                  (eq (char-after) ?\n))
+         (subst-char-in-region point (1+ point) ?\n ?\r))))))
 
 ;; Various summary mode internalish functions.