diff options
| author | Alan Schmitt | 2014-08-14 11:31:23 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2014-08-14 11:31:23 +0000 |
| commit | b9558683e3339fb95ff9cad1ced705f525d86d7a (patch) | |
| tree | 38659c63cac8fac3acf3a91ff4ac6ed741a9a85a | |
| parent | 8f944212cf4b368eb77877676e70cea9c3a6c32e (diff) | |
| download | emacs-b9558683e3339fb95ff9cad1ced705f525d86d7a.tar.gz emacs-b9558683e3339fb95ff9cad1ced705f525d86d7a.zip | |
gnus-sum.el (gnus-summary-expire-articles): Reinstall improved version of the 2014-08-05 change
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 20 |
2 files changed, 19 insertions, 7 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 6541c699c48..441a8c90f70 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2014-08-14 Alan Schmitt <alan.schmitt@polytechnique.org> | ||
| 2 | |||
| 3 | * gnus-sum.el (gnus-summary-expire-articles): Functions registered to | ||
| 4 | the gnus-summary-article-expire-hook should be told where the function | ||
| 5 | is going. In particular, the Gnus registry might want to know. | ||
| 6 | |||
| 1 | 2014-08-12 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2014-08-12 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * gnus-art.el (gnus-hidden-properties): Drop the evil `intangible'. | 9 | * gnus-art.el (gnus-hidden-properties): Drop the evil `intangible'. |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index c0e099ba3ca..db0242ef42b 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -10444,13 +10444,19 @@ This will be the case if the article has both been mailed and posted." | |||
| 10444 | (when (and (not (memq article es)) | 10444 | (when (and (not (memq article es)) |
| 10445 | (gnus-data-find article)) | 10445 | (gnus-data-find article)) |
| 10446 | (gnus-summary-mark-article article gnus-canceled-mark) | 10446 | (gnus-summary-mark-article article gnus-canceled-mark) |
| 10447 | (run-hook-with-args 'gnus-summary-article-expire-hook | 10447 | (run-hook-with-args |
| 10448 | 'delete | 10448 | 'gnus-summary-article-expire-hook |
| 10449 | (gnus-data-header | 10449 | 'delete |
| 10450 | (assoc article (gnus-data-list nil))) | 10450 | (gnus-data-header (assoc article (gnus-data-list nil))) |
| 10451 | gnus-newsgroup-name | 10451 | gnus-newsgroup-name |
| 10452 | nil | 10452 | (cond |
| 10453 | nil))))))) | 10453 | ((stringp nnmail-expiry-target) nnmail-expiry-target) |
| 10454 | ((eq nnmail-expiry-target 'delete) nil) | ||
| 10455 | (t | ||
| 10456 | (let ((rescall (funcall nnmail-expiry-target | ||
| 10457 | gnus-newsgroup-name))) | ||
| 10458 | (if (stringp rescall) rescall nil)))) | ||
| 10459 | nil))))))) | ||
| 10454 | (gnus-message 6 "Expiring articles...done"))))) | 10460 | (gnus-message 6 "Expiring articles...done"))))) |
| 10455 | 10461 | ||
| 10456 | (defun gnus-summary-expire-articles-now () | 10462 | (defun gnus-summary-expire-articles-now () |