changeset 49110:756931f84374

(unforward-rmail-message): Don't use global variable `n'.
author Kim F. Storm <storm@cua.dk>
date Wed, 08 Jan 2003 10:13:57 +0000
parents 39d762048cdd
children 32c767302a23
files lisp/mail/undigest.el
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/undigest.el	Wed Jan 08 09:11:23 2003 +0000
+++ b/lisp/mail/undigest.el	Wed Jan 08 10:13:57 2003 +0000
@@ -230,7 +230,7 @@
 	(let ((buffer-read-only nil)
 	      (forwarded-from (mail-fetch-field "From"))
 	      (forwarded-date (mail-fetch-field "Date"))
-	      beg end prefix forward-msg n)
+	      beg end prefix forward-msg)
 	  (cond ((re-search-forward
 		  "^----.*\\([Ff]orwarded\\|[Oo]riginal\\).*[Mm]essage" nil t)
 		 (forward-line 1)
@@ -280,9 +280,9 @@
 		(insert "\t"))
 	      (forward-line)))
 	  (goto-char (point-min))))
-    (setq n rmail-current-message)
-    (rmail-forget-messages)
-    (rmail-show-message n)
+    (let ((n rmail-current-message))
+      (rmail-forget-messages)
+      (rmail-show-message n))
     (if (rmail-summary-exists)
 	(rmail-select-summary
 	 (rmail-update-summary)))))