summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-02-07 04:56:23 +0000
committerRichard M. Stallman <rms@gnu.org>1993-02-07 04:56:23 +0000
commit70ca75ae695a53325be020e7247b8b58cc48476e (patch)
tree063f063f492cc439e0de23cbe1fcdb61d7ac6e6b /lisp
parent9fa4395de79a4951b0923ba161e432fc537eaf7e (diff)
downloademacs-70ca75ae695a53325be020e7247b8b58cc48476e.tar.gz
(mail-setup): Use fill-region-as-paragraph
for To field; handle the CC just like the To.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mail/sendmail.el20
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index d97eaa0946d..f0de0525ce5 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -120,19 +120,19 @@ so you can edit or delete these lines.")
(insert "To: ")
(save-excursion
(if to
- (progn
+ ;; Here removed code to extract names from within <...>
+ ;; on the assumption that mail-strip-quoted-names
+ ;; has been called and has done so.
+ (let ((fill-prefix "\t")
+ (address-start (point)))
(insert to "\n")
- ;;; Here removed code to extract names from within <...>
- ;;; on the assumption that mail-strip-quoted-names
- ;;; has been called and has done so.
- (let ((fill-prefix "\t"))
- (fill-region (point-min) (point-max))))
+ (fill-region-as-paragraph address-start (point-max)))
(newline))
(if cc
- (let ((opos (point))
- (fill-prefix "\t"))
- (insert "CC: " cc "\n")
- (fill-region-as-paragraph opos (point-max))))
+ (let ((fill-prefix "\t")
+ (address-start (progn (insert "CC: ") (point))))
+ (insert cc "\n")
+ (fill-region-as-paragraph address-start (point-max))))
(if in-reply-to
(insert "In-reply-to: " in-reply-to "\n"))
(insert "Subject: " (or subject "") "\n")