aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-02-07 04:56:23 +0000
committerRichard M. Stallman1993-02-07 04:56:23 +0000
commit70ca75ae695a53325be020e7247b8b58cc48476e (patch)
tree063f063f492cc439e0de23cbe1fcdb61d7ac6e6b
parent9fa4395de79a4951b0923ba161e432fc537eaf7e (diff)
downloademacs-70ca75ae695a53325be020e7247b8b58cc48476e.tar.gz
emacs-70ca75ae695a53325be020e7247b8b58cc48476e.zip
(mail-setup): Use fill-region-as-paragraph
for To field; handle the CC just like the To.
-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.")
120 (insert "To: ") 120 (insert "To: ")
121 (save-excursion 121 (save-excursion
122 (if to 122 (if to
123 (progn 123 ;; Here removed code to extract names from within <...>
124 ;; on the assumption that mail-strip-quoted-names
125 ;; has been called and has done so.
126 (let ((fill-prefix "\t")
127 (address-start (point)))
124 (insert to "\n") 128 (insert to "\n")
125 ;;; Here removed code to extract names from within <...> 129 (fill-region-as-paragraph address-start (point-max)))
126 ;;; on the assumption that mail-strip-quoted-names
127 ;;; has been called and has done so.
128 (let ((fill-prefix "\t"))
129 (fill-region (point-min) (point-max))))
130 (newline)) 130 (newline))
131 (if cc 131 (if cc
132 (let ((opos (point)) 132 (let ((fill-prefix "\t")
133 (fill-prefix "\t")) 133 (address-start (progn (insert "CC: ") (point))))
134 (insert "CC: " cc "\n") 134 (insert cc "\n")
135 (fill-region-as-paragraph opos (point-max)))) 135 (fill-region-as-paragraph address-start (point-max))))
136 (if in-reply-to 136 (if in-reply-to
137 (insert "In-reply-to: " in-reply-to "\n")) 137 (insert "In-reply-to: " in-reply-to "\n"))
138 (insert "Subject: " (or subject "") "\n") 138 (insert "Subject: " (or subject "") "\n")