aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-11-24 19:02:14 +0000
committerRichard M. Stallman2002-11-24 19:02:14 +0000
commit287ef00fa1bbc71cb8429d9a5cfe24203431261a (patch)
tree4615d0d1577554efcbfdf95beb0ea8ad5a737cdb
parent686e63b3306cafa50f240c4b5bcabfb53781475c (diff)
downloademacs-287ef00fa1bbc71cb8429d9a5cfe24203431261a.tar.gz
emacs-287ef00fa1bbc71cb8429d9a5cfe24203431261a.zip
(mail-signature): Handle case where
value of mail-signature is a string.
-rw-r--r--lisp/mail/sendmail.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 89154b44934..ebf2f9afc90 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -1259,7 +1259,7 @@ external program defined by `sendmail-program'."
1259 (goto-char (mail-text-start))) 1259 (goto-char (mail-text-start)))
1260 1260
1261(defun mail-signature (&optional atpoint) 1261(defun mail-signature (&optional atpoint)
1262 "Sign letter with contents of the file `mail-signature-file'. 1262 "Sign letter with signature based on `mail-signature-file'.
1263Prefix arg means put contents at point." 1263Prefix arg means put contents at point."
1264 (interactive "P") 1264 (interactive "P")
1265 (save-excursion 1265 (save-excursion
@@ -1269,8 +1269,10 @@ Prefix arg means put contents at point."
1269 (end-of-line) 1269 (end-of-line)
1270 (or atpoint 1270 (or atpoint
1271 (delete-region (point) (point-max))) 1271 (delete-region (point) (point-max)))
1272 (insert "\n\n-- \n") 1272 (if (stringp mail-signature)
1273 (insert-file-contents (expand-file-name mail-signature-file)))) 1273 (insert mail-signature)
1274 (insert "\n\n-- \n")
1275 (insert-file-contents (expand-file-name mail-signature-file)))))
1274 1276
1275(defun mail-fill-yanked-message (&optional justifyp) 1277(defun mail-fill-yanked-message (&optional justifyp)
1276 "Fill the paragraphs of a message yanked into this one. 1278 "Fill the paragraphs of a message yanked into this one.