From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45593 Path: main.gmane.org!not-for-mail From: Nevin Kapur Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] Make gnus-summary-delete-article respect group parameters Date: Tue, 09 Jul 2002 08:32:30 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1026217967 5530 127.0.0.1 (9 Jul 2002 12:32:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 9 Jul 2002 12:32:47 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17RuAh-0001R5-00 for ; Tue, 09 Jul 2002 14:32:47 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17RuAg-0003pm-00; Tue, 09 Jul 2002 07:32:46 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 09 Jul 2002 07:33:10 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id HAA24291 for ; Tue, 9 Jul 2002 07:32:59 -0500 (CDT) Original-Received: (qmail 8742 invoked by alias); 9 Jul 2002 12:32:31 -0000 Original-Received: (qmail 8737 invoked from network); 9 Jul 2002 12:32:31 -0000 Original-Received: from fermat.mts.jhu.edu (128.220.17.18) by gnus.org with SMTP; 9 Jul 2002 12:32:31 -0000 Original-Received: (from nevin@localhost) by fermat.mts.jhu.edu (8.11.6/8.11.6) id g69CWUA13956; Tue, 9 Jul 2002 08:32:30 -0400 X-Authentication-Warning: fermat.mts.jhu.edu: nevin set sender to nevin@jhu.edu using -f Original-To: ding@gnus.org X-Face: #i!d%y+1tilG}1ua9z&9waMLqE>H+;pUwWFetZe]4uWiv;VE:GHLnT1\Gj]>l^(]R#}sD@E"(@?vMv,yb@`?32;i~D$6x6m*%!3gPyp-rb$}.%QpxZ!3Y+jESN5[s7SL_68Sc`Aek)A$M|h++b/2VjR.k+Tw4X+0a%:K-kcUeMZ(rs?}v\eG({5J&IPS Mail-Followup-To: ding@gnus.org Original-Lines: 34 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Honest Recruiter, i686-pc-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45593 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45593 As reported by Adrian Kubala, B DEL in the summary buffer expires articles but does not respect the expiry-target group parameter. The following patch attempts to fix this issue. I would also like to argue that B DEL performing expiry instead of deletion is inconsistent with its name and its description in the manual. 2002-07-09 Nevin Kapur * gnus-sum.el (gnus-summary-delete-article): Respect group parameters while expiring. Index: lisp/gnus-sum.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/gnus-sum.el,v retrieving revision 6.215 diff -u -r6.215 gnus-sum.el --- lisp/gnus-sum.el 2002/07/05 08:27:05 6.215 +++ lisp/gnus-sum.el 2002/07/09 12:27:28 @@ -8826,6 +8826,9 @@ (error "Couldn't open server")) ;; Compute the list of articles to delete. (let ((articles (sort (copy-sequence (gnus-summary-work-articles n)) '<)) + (nnmail-expiry-target + (or (gnus-group-find-parameter gnus-newsgroup-name 'expiry-target) + nnmail-expiry-target)) not-deleted) (if (and gnus-novice-user (not (gnus-yes-or-no-p -Nevin