]> git.eshelyaron.com Git - emacs.git/commitdiff
(unforward-rmail-message): Don't use global variable `n'.
authorKim F. Storm <storm@cua.dk>
Wed, 8 Jan 2003 10:13:57 +0000 (10:13 +0000)
committerKim F. Storm <storm@cua.dk>
Wed, 8 Jan 2003 10:13:57 +0000 (10:13 +0000)
lisp/mail/undigest.el

index 6176f0b4fcd5ad95518246eb6a8c8146b9c06e7c..d5db68f33c54e9722092559cf7cb9028d0a4a4fc 100644 (file)
@@ -230,7 +230,7 @@ following the containing message."
        (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 @@ following the containing message."
                (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)))))