Mercurial > emacs
comparison lisp/mail/sendmail.el @ 2852:e80e6e533533
(mail-setup): Leave point before signature, not after.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 17 May 1993 23:18:47 +0000 |
parents | 277a358b5204 |
children | ef942eda3523 |
comparison
equal
deleted
inserted
replaced
2851:3b0a06fc7c4b | 2852:e80e6e533533 |
---|---|
148 (if mail-self-blind | 148 (if mail-self-blind |
149 (insert "BCC: " (user-login-name) "\n")) | 149 (insert "BCC: " (user-login-name) "\n")) |
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"))) |
157 (mail-signature | 158 (mail-signature |
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)) |
165 | 166 |
166 ;;;###autoload | 167 ;;;###autoload |