diff options
| author | Richard M. Stallman | 1993-05-17 23:18:47 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-17 23:18:47 +0000 |
| commit | 874bdb5a86c148bb33ecc51b74ae743cccaf7089 (patch) | |
| tree | d6a4dd90025bfa979d4bb6a286cae9655860bc7b | |
| parent | 1254728338db225ec2672a2a59078cf28da5621c (diff) | |
| download | emacs-874bdb5a86c148bb33ecc51b74ae743cccaf7089.tar.gz emacs-874bdb5a86c148bb33ecc51b74ae743cccaf7089.zip | |
(mail-setup): Leave point before signature, not after.
| -rw-r--r-- | lisp/mail/sendmail.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 9134c34095c..bfb02c44a1b 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -150,7 +150,8 @@ so you can edit or delete these lines.") | |||
| 150 | (if mail-archive-file-name | 150 | (if mail-archive-file-name |
| 151 | (insert "FCC: " mail-archive-file-name "\n")) | 151 | (insert "FCC: " mail-archive-file-name "\n")) |
| 152 | (insert mail-header-separator "\n") | 152 | (insert mail-header-separator "\n") |
| 153 | ;; Insert the signature. | 153 | ;; Insert the signature. But remember the beginning of the message. |
| 154 | (if to (setq to (point))) | ||
| 154 | (cond ((eq mail-signature t) | 155 | (cond ((eq mail-signature t) |
| 155 | (if (file-exists-p "~/.signature") | 156 | (if (file-exists-p "~/.signature") |
| 156 | (insert-file-contents "~/.signature"))) | 157 | (insert-file-contents "~/.signature"))) |
| @@ -158,7 +159,7 @@ so you can edit or delete these lines.") | |||
| 158 | (insert mail-signature))) | 159 | (insert mail-signature))) |
| 159 | (goto-char (point-max)) | 160 | (goto-char (point-max)) |
| 160 | (or (bolp) (newline))) | 161 | (or (bolp) (newline))) |
| 161 | (if to (goto-char (point-max))) | 162 | (if to (goto-char to)) |
| 162 | (or to subject in-reply-to | 163 | (or to subject in-reply-to |
| 163 | (set-buffer-modified-p nil)) | 164 | (set-buffer-modified-p nil)) |
| 164 | (run-hooks 'mail-setup-hook)) | 165 | (run-hooks 'mail-setup-hook)) |