From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65275 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-summary-mark-thread-as-expirable Date: Thu, 27 Sep 2007 05:56:07 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190890714 8372 80.91.229.12 (27 Sep 2007 10:58:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Sep 2007 10:58:34 +0000 (UTC) Cc: ding@gnus.org To: ecocode Original-X-From: ding-owner+M13787@lists.math.uh.edu Thu Sep 27 12:58:29 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iar4e-0004BV-VW for ding-account@gmane.org; Thu, 27 Sep 2007 12:58:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Iar3g-0000pp-23; Thu, 27 Sep 2007 05:57:28 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Iar3e-0000pb-P1 for ding@lists.math.uh.edu; Thu, 27 Sep 2007 05:57:26 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1Iar3Y-00043M-If for ding@lists.math.uh.edu; Thu, 27 Sep 2007 05:57:26 -0500 Original-Received: from blockstar.com ([170.224.69.95] helo=mail.blockstar.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Iar3P-0001gR-00 for ; Thu, 27 Sep 2007 12:57:12 +0200 Original-Received: from tzz (c-24-14-57-89.hsd1.il.comcast.net [24.14.57.89]) by mail.blockstar.com (Postfix) with ESMTP id 100613F80DA; Thu, 27 Sep 2007 04:12:15 -0700 (PDT) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Followup-To: ecocode , ding@gnus.org In-Reply-To: (ecocode's message of "Thu, 27 Sep 2007 08:02:24 +0200") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (darwin) X-Spam-Score: -2.4 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65275 Archived-At: On Thu, 27 Sep 2007 08:02:24 +0200 ecocode wrote: e> * Ted Zlatanov wrote: e> | e> | I would have done it but don't know what's a good value for the prefix e> | argument to use as a trigger. Any suggestions? 0 perhaps? e> What about T E ? Sorry for responding in Lisp-speak :) `T E' is the key shortcut you'd like. What I mean is that gnus-summary-kill-thread has a prefix argument (it's mapped by default to `T k'; you press C-u then type a number, then hit `T k' to give that number to gnus-summary-kill-thread as the prefix argument). If you don't pass that number, the prefix argument is null. This is standard Emacs behavior and a lot of functions take a prefix argument. I added an extra option to gnus-summary-kill-thread which is almost exactly like the regular null-prefix behavior, but used gnus-expirable-mark instead of gnus-killed-mark. To use it, you don't have to play with universal prefixes, just do the following: 1) get latest Gnus from CVS 2) hit `M-C-e' or `T e' on a thread to mark the whole thing expirable. I used `T e' because `T k' is mapped to gnus-summary-kill-thread and I wanted to be consistent. 3) if you like the behavior, you can map that to a key by itself, say C-e: (define-key gnus-summary-mode-map "\C-e" 'gnus-summary-expire-thread) Please test and let me know if this works for you. My testing showed no problems. I'll document it once testing is done. Ted