diff options
| author | Eric S. Raymond | 1992-06-03 17:50:56 +0000 |
|---|---|---|
| committer | Eric S. Raymond | 1992-06-03 17:50:56 +0000 |
| commit | 0d021ccf22767917f73bc411bbb8862ea998c1c4 (patch) | |
| tree | 1444942e28c27b05849e7013b2e580de96f7c188 | |
| parent | dd3092241c54298a12840b7b3633a62542d590f2 (diff) | |
| download | emacs-0d021ccf22767917f73bc411bbb8862ea998c1c4.tar.gz emacs-0d021ccf22767917f73bc411bbb8862ea998c1c4.zip | |
*** empty log message ***
| -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 | ||