diff options
| -rw-r--r-- | lisp/gnuspost.el | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/lisp/gnuspost.el b/lisp/gnuspost.el index 871f6b9d48a..5c366748b7f 100644 --- a/lisp/gnuspost.el +++ b/lisp/gnuspost.el | |||
| @@ -133,7 +133,8 @@ Type \\[describe-mode] once editing the article to get a list of commands." | |||
| 133 | (if (eq major-mode 'gnus-article-mode) gnus-newsgroup-name)) | 133 | (if (eq major-mode 'gnus-article-mode) gnus-newsgroup-name)) |
| 134 | (subject nil) | 134 | (subject nil) |
| 135 | ;; Get default distribution. | 135 | ;; Get default distribution. |
| 136 | (distribution (car gnus-local-distributions))) | 136 | (distribution (car gnus-local-distributions)) |
| 137 | (followup-to nil)) | ||
| 137 | ;; Connect to NNTP server if not connected yet, and get | 138 | ;; Connect to NNTP server if not connected yet, and get |
| 138 | ;; several information. | 139 | ;; several information. |
| 139 | (if (not (gnus-server-opened)) | 140 | (if (not (gnus-server-opened)) |
| @@ -175,12 +176,18 @@ Type \\[describe-mode] once editing the article to get a list of commands." | |||
| 175 | ;; Which do you like? (UMERIN) | 176 | ;; Which do you like? (UMERIN) |
| 176 | ;; (setq newsgroups (read-string "Newsgroups: " "general")) | 177 | ;; (setq newsgroups (read-string "Newsgroups: " "general")) |
| 177 | (or newsgroups ;Use the default newsgroup. | 178 | (or newsgroups ;Use the default newsgroup. |
| 178 | (setq newsgroups | 179 | (let (group) |
| 179 | (completing-read "Newsgroup: " | 180 | (while (not |
| 180 | gnus-newsrc-assoc | 181 | (string= |
| 181 | nil 'require-match | 182 | (setq group |
| 182 | newsgroups ;Default newsgroup. | 183 | (completing-read "Newsgroup: " |
| 183 | ))) | 184 | gnus-newsrc-assoc |
| 185 | nil 'require-match)) | ||
| 186 | "")) | ||
| 187 | (or followup-to (setq followup-to group)) | ||
| 188 | (if newsgroups | ||
| 189 | (setq newsgroups (concat newsgroups "," group)) | ||
| 190 | (setq newsgroups group))))) | ||
| 184 | (setq subject (read-string "Subject: ")) | 191 | (setq subject (read-string "Subject: ")) |
| 185 | ;; Choose a distribution from gnus-distribution-list. | 192 | ;; Choose a distribution from gnus-distribution-list. |
| 186 | ;; completing-read should not be used with | 193 | ;; completing-read should not be used with |
| @@ -207,6 +214,11 @@ Type \\[describe-mode] once editing the article to get a list of commands." | |||
| 207 | ;; Suggested by ichikawa@flab.fujitsu.junet. | 214 | ;; Suggested by ichikawa@flab.fujitsu.junet. |
| 208 | (mail-position-on-field "Distribution") | 215 | (mail-position-on-field "Distribution") |
| 209 | (insert (or distribution "")) | 216 | (insert (or distribution "")) |
| 217 | ;; Add Followup-To header | ||
| 218 | (if followup-to | ||
| 219 | (progn | ||
| 220 | (mail-position-on-field "Followup-To") | ||
| 221 | (insert followup-to))) | ||
| 210 | ;; Handle author copy using FCC field. | 222 | ;; Handle author copy using FCC field. |
| 211 | (if gnus-author-copy | 223 | (if gnus-author-copy |
| 212 | (progn | 224 | (progn |