From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66885 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: modifying `B m' (moving articles) to use registry split with parent Date: Fri, 25 Apr 2008 14:40:33 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86fxt93eq6.fsf@lifelogs.com> References: <868wzzro1x.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1209152316 1220 80.91.229.12 (25 Apr 2008 19:38:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Apr 2008 19:38:36 +0000 (UTC) To: Ding Mailing List Original-X-From: ding-owner+M15367@lists.math.uh.edu Fri Apr 25 21:39:12 2008 connect(): Connection refused 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 1JpTlH-0005WR-1B for ding-account@gmane.org; Fri, 25 Apr 2008 21:39:11 +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 1JpTkG-0006UB-Ci; Fri, 25 Apr 2008 14:38:08 -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 1JpTkF-0006Tz-4F for ding@lists.math.uh.edu; Fri, 25 Apr 2008 14:38:07 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JpTk9-0005X8-6A for ding@lists.math.uh.edu; Fri, 25 Apr 2008 14:38:07 -0500 Original-Received: from mail.blockstar.com ([170.224.69.95]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JpTkK-0002o2-00 for ; Fri, 25 Apr 2008 21:38:13 +0200 Original-Received: from tzlatanov-ubuntu-desktop.jumptrading.com (unknown [38.98.147.130]) by mail.blockstar.com (Postfix) with ESMTP id 6D0487D8EE5 for ; Fri, 25 Apr 2008 12:47:31 -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" X-Hashcash: 1:20:080425:ding@gnus.org::WCwxLBdeekwU4oYU:00002H3O In-Reply-To: <868wzzro1x.fsf@lifelogs.com> (Ted Zlatanov's message of "Mon, 31 Mar 2008 09:00:26 -0500") User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66885 Archived-At: > I realized today that it would be nice to have a > gnus-registry-split-fancy-with-parent call before `B m' in many cases, > since it looks up possible destinations using the subject and sender of > the message. Those destinations could be sorted to be first in the list > of available destinations. > Since it's a change for all users, should I make it a new function that > calls the current move function or should I change the regular move > function? If the registry is not enabled, it won't do anything, but > it's still a change in something everyone uses very often so I'm > hesitant to just make the change without asking. I looked at the code in gnus-sum.el and it calls gnus-get-split-value on gnus-move-split-methods. I thought something like this: (setq gnus-move-split-methods `((,(lambda(x) (gnus-registry-split-fancy-with-parent))))) might work, but the suggestion becomes the ONLY choice. I'd prefer if the registry's suggestion was just the default. I'd have to modify the code or create gnus-move-suggestion-split-methods, which seems painfully unnecessary, so I wanted to ask for opinions. My guess is that very few people use gnus-move-split-methods, since there's a bug in it (specifically, in gnus-get-split-value) for move suggestions: group names are converted to directory names, because gnus-get-split-value is normally used for saving suggestions. Please let me know what you think. Ted