# HG changeset patch # User Richard M. Stallman # Date 1038164534 0 # Node ID cd3075e045737926aeb272012216247df1e96b29 # Parent 1782b835b59e9a4769ccb4f50b8c0768687e70fb (mail-signature): Handle case where value of mail-signature is a string. diff -r 1782b835b59e -r cd3075e04573 lisp/mail/sendmail.el --- a/lisp/mail/sendmail.el Sun Nov 24 19:01:18 2002 +0000 +++ b/lisp/mail/sendmail.el Sun Nov 24 19:02:14 2002 +0000 @@ -1259,7 +1259,7 @@ (goto-char (mail-text-start))) (defun mail-signature (&optional atpoint) - "Sign letter with contents of the file `mail-signature-file'. + "Sign letter with signature based on `mail-signature-file'. Prefix arg means put contents at point." (interactive "P") (save-excursion @@ -1269,8 +1269,10 @@ (end-of-line) (or atpoint (delete-region (point) (point-max))) - (insert "\n\n-- \n") - (insert-file-contents (expand-file-name mail-signature-file)))) + (if (stringp mail-signature) + (insert mail-signature) + (insert "\n\n-- \n") + (insert-file-contents (expand-file-name mail-signature-file))))) (defun mail-fill-yanked-message (&optional justifyp) "Fill the paragraphs of a message yanked into this one.