diff options
| -rw-r--r-- | lisp/mail/sendmail.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 2093c9366ee..0959b95727f 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -470,14 +470,16 @@ the user from the mailer." | |||
| 470 | (goto-char (point-min)) | 470 | (goto-char (point-min)) |
| 471 | (search-forward (concat "\n" mail-header-separator "\n"))) | 471 | (search-forward (concat "\n" mail-header-separator "\n"))) |
| 472 | 472 | ||
| 473 | (defun mail-signature () | 473 | (defun mail-signature (atpoint) |
| 474 | "Sign letter with contents of ~/.signature file." | 474 | "Sign letter with contents of ~/.signature file." |
| 475 | (interactive) | 475 | (interactive "P") |
| 476 | (save-excursion | 476 | (save-excursion |
| 477 | (goto-char (point-max)) | 477 | (or atpoint |
| 478 | (goto-char (point-max))) | ||
| 478 | (skip-chars-backward " \t\n") | 479 | (skip-chars-backward " \t\n") |
| 479 | (end-of-line) | 480 | (end-of-line) |
| 480 | (delete-region (point) (point-max)) | 481 | (or atpoint |
| 482 | (delete-region (point) (point-max))) | ||
| 481 | (insert "\n\n--\n") | 483 | (insert "\n\n--\n") |
| 482 | (insert-file-contents (expand-file-name "~/.signature")))) | 484 | (insert-file-contents (expand-file-name "~/.signature")))) |
| 483 | 485 | ||