aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mail
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1993-05-17 23:18:47 +0000
committerRichard M. Stallman <[email protected]>1993-05-17 23:18:47 +0000
commit874bdb5a86c148bb33ecc51b74ae743cccaf7089 (patch)
treed6a4dd90025bfa979d4bb6a286cae9655860bc7b /lisp/mail
parent1254728338db225ec2672a2a59078cf28da5621c (diff)
(mail-setup): Leave point before signature, not after.
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/sendmail.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 9134c34095..bfb02c44a1 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -150,7 +150,8 @@ so you can edit or delete these lines.")
(if mail-archive-file-name
(insert "FCC: " mail-archive-file-name "\n"))
(insert mail-header-separator "\n")
- ;; Insert the signature.
+ ;; Insert the signature. But remember the beginning of the message.
+ (if to (setq to (point)))
(cond ((eq mail-signature t)
(if (file-exists-p "~/.signature")
(insert-file-contents "~/.signature")))
@@ -158,7 +159,7 @@ so you can edit or delete these lines.")
(insert mail-signature)))
(goto-char (point-max))
(or (bolp) (newline)))
- (if to (goto-char (point-max)))
+ (if to (goto-char to))
(or to subject in-reply-to
(set-buffer-modified-p nil))
(run-hooks 'mail-setup-hook))