]> git.eshelyaron.com Git - emacs.git/commitdiff
(mail-hist-put-headers-into-history):
authorRichard M. Stallman <rms@gnu.org>
Tue, 11 Apr 1995 23:01:05 +0000 (23:01 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 11 Apr 1995 23:01:05 +0000 (23:01 +0000)
Add save-excursion around entire function.

lisp/mail/mail-hist.el

index 6a80398fd46aef6363dd03a18802df8a012f42cc..e0608a4cefd76539bfe7ef1c9cd1225e51437b66 100644 (file)
@@ -210,19 +210,19 @@ message.
 This function normally would be called when the message is sent." 
   (and
    mail-hist-keep-history
-   (progn
+   (save-excursion
      (goto-char (point-min))
      (while (mail-hist-forward-header 1)
        (mail-hist-add-header-contents-to-ring
         (mail-hist-current-header-name)))
      (let ((body-contents
             (save-excursion
-            (goto-char (point-min))
-            (re-search-forward
-            (concat "^" (regexp-quote mail-header-separator) "$")
-            nil)
-            (forward-line 1)
-            (buffer-substring (point) (point-max)))))
+             (goto-char (point-min))
+             (re-search-forward
+              (concat "^" (regexp-quote mail-header-separator) "$")
+              nil)
+             (forward-line 1)
+             (buffer-substring (point) (point-max)))))
        (mail-hist-add-header-contents-to-ring "body" body-contents)))))
 \f
 (defun mail-hist-previous-input (header)