diff options
| author | Andrew Cohen | 2013-03-27 22:12:36 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2013-03-27 22:12:36 +0000 |
| commit | 53d3b73104bbf0bd936a4e37dff457b90149b69a (patch) | |
| tree | da19369f61d1d6966a1ad9661258a20c59ba3863 | |
| parent | b59f639d99a4bb3f29d8700c084b2b4082eba877 (diff) | |
| download | emacs-53d3b73104bbf0bd936a4e37dff457b90149b69a.tar.gz emacs-53d3b73104bbf0bd936a4e37dff457b90149b69a.zip | |
gnus-msg.el (gnus-setup-message): Set the posting-style and gcc properly for nnir summary buffers
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-msg.el | 18 |
2 files changed, 18 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 1af3a00c00e..cbfb0109aec 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2013-03-27 Andrew Cohen <cohen@bu.edu> | 1 | 2013-03-27 Andrew Cohen <cohen@bu.edu> |
| 2 | 2 | ||
| 3 | * gnus-msg.el (gnus-setup-message): When replying from an nnir summary | ||
| 4 | buffer use the posting-style and gcc of the original article group. | ||
| 5 | (gnus-inews-insert-gcc): Don't set gcc-self for virtual groups. | ||
| 6 | |||
| 3 | * nnir.el: Fix byte-compile warning. nnoo-define-skeleton should come | 7 | * nnir.el: Fix byte-compile warning. nnoo-define-skeleton should come |
| 4 | after other deffoos. | 8 | after other deffoos. |
| 5 | 9 | ||
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index f7b2d8b99d9..067465b0e6f 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el | |||
| @@ -426,15 +426,24 @@ Thank you for your help in stamping out bugs. | |||
| 426 | `(let ((,winconf (current-window-configuration)) | 426 | `(let ((,winconf (current-window-configuration)) |
| 427 | (,winconf-name gnus-current-window-configuration) | 427 | (,winconf-name gnus-current-window-configuration) |
| 428 | (,buffer (buffer-name (current-buffer))) | 428 | (,buffer (buffer-name (current-buffer))) |
| 429 | (,article gnus-article-reply) | 429 | (,article (or (when (and |
| 430 | (string-match "^nnir:" gnus-newsgroup-name) | ||
| 431 | gnus-article-reply) | ||
| 432 | (nnir-article-number gnus-article-reply)) | ||
| 433 | gnus-article-reply)) | ||
| 430 | (,yanked gnus-article-yanked-articles) | 434 | (,yanked gnus-article-yanked-articles) |
| 431 | (,group gnus-newsgroup-name) | 435 | (,group (or (when (and |
| 436 | (string-match "^nnir:" gnus-newsgroup-name) | ||
| 437 | gnus-article-reply) | ||
| 438 | (nnir-article-group gnus-article-reply)) | ||
| 439 | gnus-newsgroup-name)) | ||
| 432 | (message-header-setup-hook | 440 | (message-header-setup-hook |
| 433 | (copy-sequence message-header-setup-hook)) | 441 | (copy-sequence message-header-setup-hook)) |
| 434 | (mbl mml-buffer-list) | 442 | (mbl mml-buffer-list) |
| 435 | (message-mode-hook (copy-sequence message-mode-hook))) | 443 | (message-mode-hook (copy-sequence message-mode-hook))) |
| 436 | (setq mml-buffer-list nil) | 444 | (setq mml-buffer-list nil) |
| 437 | (add-hook 'message-header-setup-hook 'gnus-inews-insert-gcc) | 445 | (add-hook 'message-header-setup-hook (lambda () |
| 446 | (gnus-inews-insert-gcc ,group))) | ||
| 438 | ;; message-newsreader and message-mailer were formerly set in | 447 | ;; message-newsreader and message-mailer were formerly set in |
| 439 | ;; gnus-inews-add-send-actions, but this is too late when | 448 | ;; gnus-inews-add-send-actions, but this is too late when |
| 440 | ;; message-generate-headers-first is used. --ansel | 449 | ;; message-generate-headers-first is used. --ansel |
| @@ -1706,7 +1715,8 @@ this is a reply." | |||
| 1706 | (group (when group (gnus-group-decoded-name group))) | 1715 | (group (when group (gnus-group-decoded-name group))) |
| 1707 | (var (or gnus-outgoing-message-group gnus-message-archive-group)) | 1716 | (var (or gnus-outgoing-message-group gnus-message-archive-group)) |
| 1708 | (gcc-self-val | 1717 | (gcc-self-val |
| 1709 | (and group (gnus-group-find-parameter group 'gcc-self))) | 1718 | (and group (gnus-group-find-parameter group 'gcc-self) |
| 1719 | (not (gnus-virtual-group-p group)))) | ||
| 1710 | result | 1720 | result |
| 1711 | (groups | 1721 | (groups |
| 1712 | (cond | 1722 | (cond |