]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-forward): Put the "end" line right after the
authorRichard M. Stallman <rms@gnu.org>
Fri, 29 Mar 1996 22:40:05 +0000 (22:40 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 29 Mar 1996 22:40:05 +0000 (22:40 +0000)
forwarded message; the signature goes after.

lisp/mail/rmail.el

index 099a809bbb7eb676b398565b3fd2c7aec23ba407..1065ecc8cb8376b0e2aadb1ca7bfc4fba15d4953 100644 (file)
@@ -2259,18 +2259,20 @@ see the documentation of `rmail-resend'."
            (insert "------- Start of forwarded message -------\n")
            ;; Quote lines with `- ' if they start with `-'.
            (let ((beg (point)) end)
+             (setq end (point-marker))
+             (set-marker-insertion-type end t)
              (insert-buffer-substring forward-buffer)
              (goto-char beg)
              (while (re-search-forward "^-" nil t)
                (beginning-of-line)
                (insert "- ")
                (forward-line 1))
-             (goto-char (point-max)))
-           (let ((end (point)))
+             (goto-char end)
              (skip-chars-backward "\n")
              (if (< (point) end)
                  (forward-char 1))
-             (delete-region (point) end))
+             (delete-region (point) end)
+             (set-marker end nil))
            (insert "------- End of forwarded message -------\n")
            (push-mark))))))
 \f