From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/744 Path: news.gmane.org!not-for-mail From: Adrian Kubala Newsgroups: gmane.emacs.gnus.user Subject: clarification of deleting articles Date: Mon, 08 Jul 2002 16:05:19 +0200 Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany) Message-ID: <877kk69vzr.fsf@localhost.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138667673 8232 80.91.229.2 (31 Jan 2006 00:34:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:34:33 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:28:03 2006 Original-Path: quimby.gnus.org!news.ccs.neu.edu!news.dfci.harvard.edu!news.cis.ohio-state.edu!usenet01.sei.cmu.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newspeer.clara.net!news.clara.net!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-nue1.dfn.de!uni-erlangen.de!lrz.de!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: eikpool.eikon.e-technik.tu-muenchen.de Original-X-Trace: wsc10.lrz-muenchen.de 1026137407 26958 129.187.240.224 (8 Jul 2002 14:10:07 GMT) Original-X-Complaints-To: news@lrz-muenchen.de Original-NNTP-Posting-Date: 8 Jul 2002 14:10:07 GMT X-Gpg-Key-Id: C7F908D4 X-Gpg-Fingerprint: 86C1 66EF 0F2C 9737 26D6 54D7 8812 FFDB C7F9 08D4 X-Crypto: GnuPG http://www.gnupg.org X-Face: #eJ6ZAqNlQ9;POfhaW6+W$$NW$'1T^~;N.s_~**}@?72F6C_PQMEc4)Mm,0l[{D;@=WDuq>5Owp~N',2$|-T81!Lj)r.FojIH=-"`ERMTk~^e.5}F1idpG]"m>9DnoBxc?jSf^cmx#-9y^wg_4NSfpZe7!!tmax3"SHWUK]R+A This is for anybody who, like me, is confused by "B " (aka `gnus-summary-delete-article'). These comments apply to Oort 0.06. 1. Despite all outward indications, this does not delete articles, it expires them. 2. It respects settings to nnmail-expiry-target, but does not respect the group parameter expiry-target. The following snippet does something I felt was more consistent and understandable: ;;; start code ;; Make forced summary deletion and expiration work more intuitively. (define-key gnus-summary-mode-map [(?B) (delete)] 'my-gnus-summary-delete-article) (define-key gnus-summary-mode-map [(?B) (?E)] 'my-gnus-summary-expire-article) (defun my-gnus-summary-expire-article (&optional n) "Expire the N next (mail) articles. If N is negative, delete backwards. If N is nil and articles have been marked with the process mark, expire these instead." (interactive "P") ;; respect expiry-target! (let ((nnmail-expiry-target (or (gnus-group-find-parameter gnus-newsgroup-name 'expiry-target) nnmail-expiry-target))) (gnus-summary-delete-article n))) (defun my-gnus-summary-delete-article (&optional n) "Delete the N next (mail) articles. If N is negative, delete backwards. If N is nil and articles have been marked with the process mark, delete these instead." (interactive "P") (let ((nnmail-expiry-target 'delete)) (gnus-summary-delete-article n))) ;;; end code I filed a bug report about this, but since it's arguably not a bug I don't know if it will ever be officially changed. adrian