aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1995-10-04 19:34:25 +0000
committerRichard M. Stallman1995-10-04 19:34:25 +0000
commit4ac2e032a51517c6c879d58854bb412df91ff913 (patch)
tree32e3a503d71fa7f6c427312aded60c0d320f6448 /lisp
parent953a03b29cae25ffb135ccca6722d578f0c1f411 (diff)
downloademacs-4ac2e032a51517c6c879d58854bb412df91ff913.tar.gz
emacs-4ac2e032a51517c6c879d58854bb412df91ff913.zip
(mail-signature-file): New variable.
Fix various doc strings to mention it. (mail-signature): Use mail-signature-file.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mail/sendmail.el19
1 files changed, 11 insertions, 8 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 992cb09edd7..ea2a291aa15 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -146,7 +146,10 @@ removed from alias expansions."
146;;;###autoload 146;;;###autoload
147(defvar mail-signature nil 147(defvar mail-signature nil
148 "*Text inserted at end of mail buffer when a message is initialized. 148 "*Text inserted at end of mail buffer when a message is initialized.
149If t, it means to insert the contents of the file `~/.signature'.") 149If t, it means to insert the contents of the file `mail-signature-file'.")
150
151(defvar mail-signature-file "~/.signature"
152 "*File containing the text inserted at end of mail buffer.")
150 153
151(defvar mail-reply-buffer nil) 154(defvar mail-reply-buffer nil)
152(defvar mail-send-actions nil 155(defvar mail-send-actions nil
@@ -262,10 +265,10 @@ actually occur.")
262 ;; Insert the signature. But remember the beginning of the message. 265 ;; Insert the signature. But remember the beginning of the message.
263 (if to (setq to (point))) 266 (if to (setq to (point)))
264 (cond ((eq mail-signature t) 267 (cond ((eq mail-signature t)
265 (if (file-exists-p "~/.signature") 268 (if (file-exists-p mail-signature-file)
266 (progn 269 (progn
267 (insert "\n\n-- \n") 270 (insert "\n\n-- \n")
268 (insert-file-contents "~/.signature")))) 271 (insert-file-contents mail-signature-file))))
269 (mail-signature 272 (mail-signature
270 (insert mail-signature))) 273 (insert mail-signature)))
271 (goto-char (point-max)) 274 (goto-char (point-max))
@@ -285,7 +288,7 @@ C-c C-f move to a header field (and create it if there isn't):
285 C-c C-f C-c move to CC: C-c C-f C-b move to BCC: 288 C-c C-f C-c move to CC: C-c C-f C-b move to BCC:
286 C-c C-f C-f move to FCC: 289 C-c C-f C-f move to FCC:
287C-c C-t mail-text (move to beginning of message text). 290C-c C-t mail-text (move to beginning of message text).
288C-c C-w mail-signature (insert `~/.signature' file). 291C-c C-w mail-signature (insert `mail-signature-file' file).
289C-c C-y mail-yank-original (insert current message, in Rmail). 292C-c C-y mail-yank-original (insert current message, in Rmail).
290C-c C-q mail-fill-yanked-message (fill what was yanked). 293C-c C-q mail-fill-yanked-message (fill what was yanked).
291C-c C-v mail-sent-via (add a Sent-via field for each To or CC)." 294C-c C-v mail-sent-via (add a Sent-via field for each To or CC)."
@@ -808,7 +811,7 @@ the user from the mailer."
808 (search-forward (concat "\n" mail-header-separator "\n"))) 811 (search-forward (concat "\n" mail-header-separator "\n")))
809 812
810(defun mail-signature (atpoint) 813(defun mail-signature (atpoint)
811 "Sign letter with contents of the file `~/.signature'. 814 "Sign letter with contents of the file `mail-signature-file'.
812Prefix arg means put contents at point." 815Prefix arg means put contents at point."
813 (interactive "P") 816 (interactive "P")
814 (save-excursion 817 (save-excursion
@@ -819,7 +822,7 @@ Prefix arg means put contents at point."
819 (or atpoint 822 (or atpoint
820 (delete-region (point) (point-max))) 823 (delete-region (point) (point-max)))
821 (insert "\n\n-- \n") 824 (insert "\n\n-- \n")
822 (insert-file-contents (expand-file-name "~/.signature")))) 825 (insert-file-contents (expand-file-name mail-signature-file))))
823 826
824(defun mail-fill-yanked-message (&optional justifyp) 827(defun mail-fill-yanked-message (&optional justifyp)
825 "Fill the paragraphs of a message yanked into this one. 828 "Fill the paragraphs of a message yanked into this one.
@@ -906,8 +909,8 @@ and don't delete any header fields."
906When this function returns, the buffer `*mail*' is selected. 909When this function returns, the buffer `*mail*' is selected.
907The value is t if the message was newly initialized; otherwise, nil. 910The value is t if the message was newly initialized; otherwise, nil.
908 911
909Optionally, the signature file `~/.signature' can be inserted at the end; 912Optionally, the signature file `mail-signature-file' can be inserted at the
910see the variable `mail-signature'. 913end; see the variable `mail-signature'.
911 914
912\\<mail-mode-map> 915\\<mail-mode-map>
913While editing message, type \\[mail-send-and-exit] to send the message and exit. 916While editing message, type \\[mail-send-and-exit] to send the message and exit.