diff options
| author | Gnus developers | 2011-06-26 12:41:14 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-06-26 12:41:14 +0000 |
| commit | 60a0884e784668ab9cb0f6c984803efccdecce53 (patch) | |
| tree | cb01fe616177889cf87ed14adfe268cad4c84c9c | |
| parent | 7ca8fc42baeb89a0d5f84b6c8549fdf6f3d8d0e6 (diff) | |
| download | emacs-60a0884e784668ab9cb0f6c984803efccdecce53.tar.gz emacs-60a0884e784668ab9cb0f6c984803efccdecce53.zip | |
Merge changes made in Gnus trunk.
gnus.texi (Summary Mail Commands): Document `gnus-summary-reply-to-list-with-original'.
auth-source.el (with-auth-source-epa-overrides): Fix compilation error with `find-file-hooks' on Emacs 22.
(with-auth-source-epa-overrides): Ugly hack to Wrap the `find-file-hook' things in `symbol-value' to avoid compilation warnings on all architectures.
spam.el (spam-stat): Require in a normal fashion without binding `spam-stat-install-hooks' to avoid compilation warnings.
spam-stat.el (spam-stat-install-hooks): Removed.
(spam-stat-install-hooks): Don't run automatically.
gnus-msg.el (gnus-summary-reply-to-list-with-original): New command and keystroke.
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/gnus.texi | 7 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 22 | ||||
| -rw-r--r-- | lisp/gnus/auth-source.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-msg.el | 11 | ||||
| -rw-r--r-- | lisp/gnus/spam-stat.el | 9 | ||||
| -rw-r--r-- | lisp/gnus/spam.el | 69 |
7 files changed, 79 insertions, 48 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 9181bb81e7a..8645f7b82d6 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-06-26 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * gnus.texi (Summary Mail Commands): Document | ||
| 4 | `gnus-summary-reply-to-list-with-original'. | ||
| 5 | |||
| 1 | 2011-06-20 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2011-06-20 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * eshell.texi (Known problems): Fix typo. | 8 | * eshell.texi (Known problems): Fix typo. |
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index 82200780e19..f98d4df2bde 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi | |||
| @@ -5568,6 +5568,13 @@ message (@code{gnus-summary-wide-reply-with-original}). This command uses | |||
| 5568 | the process/prefix convention, but only uses the headers from the | 5568 | the process/prefix convention, but only uses the headers from the |
| 5569 | first article to determine the recipients. | 5569 | first article to determine the recipients. |
| 5570 | 5570 | ||
| 5571 | @item S L | ||
| 5572 | @kindex S L (Summary) | ||
| 5573 | @findex gnus-summary-reply-to-list-with-original | ||
| 5574 | When replying to a message from a mailing list, send a reply to that | ||
| 5575 | message to the mailing list, and include the original message | ||
| 5576 | (@code{gnus-summary-reply-to-list-with-original}). | ||
| 5577 | |||
| 5571 | @item S v | 5578 | @item S v |
| 5572 | @kindex S v (Summary) | 5579 | @kindex S v (Summary) |
| 5573 | @findex gnus-summary-very-wide-reply | 5580 | @findex gnus-summary-very-wide-reply |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index e08d52ddbde..03420c87a7b 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,25 @@ | |||
| 1 | 2011-06-26 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * dgnushack.el: Bind `gnutls-available-p' to `ignore' on XEmacs to | ||
| 4 | avoid compiler warnings. | ||
| 5 | |||
| 6 | * auth-source.el (with-auth-source-epa-overrides): Fix compilation | ||
| 7 | error with `find-file-hooks' on Emacs 22. | ||
| 8 | (with-auth-source-epa-overrides): Ugly hack to Wrap the | ||
| 9 | `find-file-hook' things in `symbol-value' to avoid compilation warnings | ||
| 10 | on all architectures. | ||
| 11 | |||
| 12 | * spam.el (spam-stat): Require in a normal fashion without binding | ||
| 13 | `spam-stat-install-hooks' to avoid compilation warnings. | ||
| 14 | |||
| 15 | * spam-stat.el (spam-stat-install-hooks): Removed. | ||
| 16 | (spam-stat-install-hooks): Don't run automatically. | ||
| 17 | |||
| 18 | 2011-06-26 Timo Juhani Lindfors <timo.lindfors@iki.fi> (tiny change) | ||
| 19 | |||
| 20 | * gnus-msg.el (gnus-summary-reply-to-list-with-original): New command | ||
| 21 | and keystroke. | ||
| 22 | |||
| 1 | 2011-06-23 Katsumi Yamaoka <yamaoka@jpl.org> | 23 | 2011-06-23 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 24 | ||
| 3 | * auth-source.el (auth-source-netrc-cache): Move forward. | 25 | * auth-source.el (auth-source-netrc-cache): Move forward. |
diff --git a/lisp/gnus/auth-source.el b/lisp/gnus/auth-source.el index 66497cd9a0c..c9cfc14fc55 100644 --- a/lisp/gnus/auth-source.el +++ b/lisp/gnus/auth-source.el | |||
| @@ -971,7 +971,9 @@ Note that the MAX parameter is used so we can exit the parse early." | |||
| 971 | (,(if (boundp 'find-file-hook) 'find-file-hook 'find-file-hooks) | 971 | (,(if (boundp 'find-file-hook) 'find-file-hook 'find-file-hooks) |
| 972 | ',(remove | 972 | ',(remove |
| 973 | 'epa-file-find-file-hook | 973 | 'epa-file-find-file-hook |
| 974 | (if (boundp 'find-file-hook) 'find-file-hook 'find-file-hooks))) | 974 | (if (boundp 'find-file-hook) |
| 975 | (symbol-value 'find-file-hook) | ||
| 976 | (symbol-value 'find-file-hooks)))) | ||
| 975 | (auto-mode-alist | 977 | (auto-mode-alist |
| 976 | ',(if (boundp 'epa-file-auto-mode-alist-entry) | 978 | ',(if (boundp 'epa-file-auto-mode-alist-entry) |
| 977 | (remove (symbol-value 'epa-file-auto-mode-alist-entry) | 979 | (remove (symbol-value 'epa-file-auto-mode-alist-entry) |
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index 093eec33fcd..e256446c016 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el | |||
| @@ -351,6 +351,7 @@ Thank you for your help in stamping out bugs. | |||
| 351 | "r" gnus-summary-reply | 351 | "r" gnus-summary-reply |
| 352 | "y" gnus-summary-yank-message | 352 | "y" gnus-summary-yank-message |
| 353 | "R" gnus-summary-reply-with-original | 353 | "R" gnus-summary-reply-with-original |
| 354 | "L" gnus-summary-reply-to-list-with-original | ||
| 354 | "w" gnus-summary-wide-reply | 355 | "w" gnus-summary-wide-reply |
| 355 | "W" gnus-summary-wide-reply-with-original | 356 | "W" gnus-summary-wide-reply-with-original |
| 356 | "v" gnus-summary-very-wide-reply | 357 | "v" gnus-summary-very-wide-reply |
| @@ -1154,6 +1155,16 @@ The original article will be yanked." | |||
| 1154 | (interactive "P") | 1155 | (interactive "P") |
| 1155 | (gnus-summary-reply (gnus-summary-work-articles n) wide)) | 1156 | (gnus-summary-reply (gnus-summary-work-articles n) wide)) |
| 1156 | 1157 | ||
| 1158 | (defun gnus-summary-reply-to-list-with-original (n &optional wide) | ||
| 1159 | "Start composing a reply mail to the current message. | ||
| 1160 | The reply goes only to the mailing list. | ||
| 1161 | The original article will be yanked." | ||
| 1162 | (interactive "P") | ||
| 1163 | (let ((message-reply-to-function | ||
| 1164 | (lambda nil | ||
| 1165 | `((To . ,(gnus-mailing-list-followup-to)))))) | ||
| 1166 | (gnus-summary-reply (gnus-summary-work-articles n) wide))) | ||
| 1167 | |||
| 1157 | (defun gnus-summary-reply-broken-reply-to (&optional yank wide very-wide) | 1168 | (defun gnus-summary-reply-broken-reply-to (&optional yank wide very-wide) |
| 1158 | "Like `gnus-summary-reply' except removing reply-to field. | 1169 | "Like `gnus-summary-reply' except removing reply-to field. |
| 1159 | If prefix argument YANK is non-nil, the original article is yanked | 1170 | If prefix argument YANK is non-nil, the original article is yanked |
diff --git a/lisp/gnus/spam-stat.el b/lisp/gnus/spam-stat.el index b56d0c416ef..8b56c7bd537 100644 --- a/lisp/gnus/spam-stat.el +++ b/lisp/gnus/spam-stat.el | |||
| @@ -138,12 +138,6 @@ See `spam-stat-to-hash-table' for the format of the file." | |||
| 138 | :type 'file | 138 | :type 'file |
| 139 | :group 'spam-stat) | 139 | :group 'spam-stat) |
| 140 | 140 | ||
| 141 | (defcustom spam-stat-install-hooks t | ||
| 142 | "Whether spam-stat should install its hooks in Gnus. | ||
| 143 | This is set to nil if you use spam-stat through spam.el." | ||
| 144 | :type 'boolean | ||
| 145 | :group 'spam-stat) | ||
| 146 | |||
| 147 | (defcustom spam-stat-unknown-word-score 0.2 | 141 | (defcustom spam-stat-unknown-word-score 0.2 |
| 148 | "The score to use for unknown words. | 142 | "The score to use for unknown words. |
| 149 | Also used for words that don't appear often enough." | 143 | Also used for words that don't appear often enough." |
| @@ -658,9 +652,6 @@ COUNT defaults to 5" | |||
| 658 | (add-hook 'gnus-select-article-hook | 652 | (add-hook 'gnus-select-article-hook |
| 659 | 'spam-stat-store-gnus-article-buffer)) | 653 | 'spam-stat-store-gnus-article-buffer)) |
| 660 | 654 | ||
| 661 | (when spam-stat-install-hooks | ||
| 662 | (spam-stat-install-hooks-function)) | ||
| 663 | |||
| 664 | (defun spam-stat-unload-hook () | 655 | (defun spam-stat-unload-hook () |
| 665 | "Uninstall the spam-stat function hooks." | 656 | "Uninstall the spam-stat function hooks." |
| 666 | (interactive) | 657 | (interactive) |
diff --git a/lisp/gnus/spam.el b/lisp/gnus/spam.el index cbffeeab69e..33dbaaa1f0c 100644 --- a/lisp/gnus/spam.el +++ b/lisp/gnus/spam.el | |||
| @@ -2260,51 +2260,44 @@ Uses `gnus-newsgroup-name' if category is nil (for ham registration)." | |||
| 2260 | (autoload 'spam-stat-save "spam-stat") | 2260 | (autoload 'spam-stat-save "spam-stat") |
| 2261 | (autoload 'spam-stat-split-fancy "spam-stat")) | 2261 | (autoload 'spam-stat-split-fancy "spam-stat")) |
| 2262 | 2262 | ||
| 2263 | (eval-and-compile | 2263 | (require 'spam-stat) |
| 2264 | (when (condition-case nil | ||
| 2265 | (let ((spam-stat-install-hooks nil)) | ||
| 2266 | (require 'spam-stat)) | ||
| 2267 | (file-error | ||
| 2268 | (defalias 'spam-stat-register-ham-routine 'ignore) | ||
| 2269 | (defalias 'spam-stat-register-spam-routine 'ignore) | ||
| 2270 | nil)) | ||
| 2271 | 2264 | ||
| 2272 | (defun spam-check-stat () | 2265 | (defun spam-check-stat () |
| 2273 | "Check the spam-stat backend for the classification of this message" | 2266 | "Check the spam-stat backend for the classification of this message" |
| 2274 | (let ((spam-stat-split-fancy-spam-group spam-split-group) ; override | 2267 | (let ((spam-stat-split-fancy-spam-group spam-split-group) ; override |
| 2275 | (spam-stat-buffer (buffer-name)) ; stat the current buffer | 2268 | (spam-stat-buffer (buffer-name)) ; stat the current buffer |
| 2276 | category return) | 2269 | category return) |
| 2277 | (spam-stat-split-fancy))) | 2270 | (spam-stat-split-fancy))) |
| 2278 | 2271 | ||
| 2279 | (defun spam-stat-register-spam-routine (articles &optional unregister) | 2272 | (defun spam-stat-register-spam-routine (articles &optional unregister) |
| 2280 | (dolist (article articles) | 2273 | (dolist (article articles) |
| 2281 | (let ((article-string (spam-get-article-as-string article))) | 2274 | (let ((article-string (spam-get-article-as-string article))) |
| 2282 | (with-temp-buffer | 2275 | (with-temp-buffer |
| 2283 | (insert article-string) | 2276 | (insert article-string) |
| 2284 | (if unregister | 2277 | (if unregister |
| 2285 | (spam-stat-buffer-change-to-non-spam) | 2278 | (spam-stat-buffer-change-to-non-spam) |
| 2286 | (spam-stat-buffer-is-spam)))))) | 2279 | (spam-stat-buffer-is-spam)))))) |
| 2287 | 2280 | ||
| 2288 | (defun spam-stat-unregister-spam-routine (articles) | 2281 | (defun spam-stat-unregister-spam-routine (articles) |
| 2289 | (spam-stat-register-spam-routine articles t)) | 2282 | (spam-stat-register-spam-routine articles t)) |
| 2290 | 2283 | ||
| 2291 | (defun spam-stat-register-ham-routine (articles &optional unregister) | 2284 | (defun spam-stat-register-ham-routine (articles &optional unregister) |
| 2292 | (dolist (article articles) | 2285 | (dolist (article articles) |
| 2293 | (let ((article-string (spam-get-article-as-string article))) | 2286 | (let ((article-string (spam-get-article-as-string article))) |
| 2294 | (with-temp-buffer | 2287 | (with-temp-buffer |
| 2295 | (insert article-string) | 2288 | (insert article-string) |
| 2296 | (if unregister | 2289 | (if unregister |
| 2297 | (spam-stat-buffer-change-to-spam) | 2290 | (spam-stat-buffer-change-to-spam) |
| 2298 | (spam-stat-buffer-is-non-spam)))))) | 2291 | (spam-stat-buffer-is-non-spam)))))) |
| 2299 | 2292 | ||
| 2300 | (defun spam-stat-unregister-ham-routine (articles) | 2293 | (defun spam-stat-unregister-ham-routine (articles) |
| 2301 | (spam-stat-register-ham-routine articles t)) | 2294 | (spam-stat-register-ham-routine articles t)) |
| 2302 | 2295 | ||
| 2303 | (defun spam-maybe-spam-stat-load () | 2296 | (defun spam-maybe-spam-stat-load () |
| 2304 | (when spam-use-stat (spam-stat-load))) | 2297 | (when spam-use-stat (spam-stat-load))) |
| 2305 | 2298 | ||
| 2306 | (defun spam-maybe-spam-stat-save () | 2299 | (defun spam-maybe-spam-stat-save () |
| 2307 | (when spam-use-stat (spam-stat-save))))) | 2300 | (when spam-use-stat (spam-stat-save))) |
| 2308 | 2301 | ||
| 2309 | ;;}}} | 2302 | ;;}}} |
| 2310 | 2303 | ||