From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66254 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-registry flags API Date: Wed, 06 Feb 2008 11:17:46 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86d4raats5.fsf@lifelogs.com> References: <861w9jeaw4.fsf@lifelogs.com> <86ve6avlnf.fsf@lifelogs.com> <86ir1u3g8b.fsf@lifelogs.com> <864pddzbdu.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 1202318237 19950 80.91.229.12 (6 Feb 2008 17:17:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Feb 2008 17:17:17 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M14745@lists.math.uh.edu Wed Feb 06 18:17:29 2008 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 1JMntp-0000vH-4O for ding-account@gmane.org; Wed, 06 Feb 2008 18:17:29 +0100 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 1JMnt9-0006C4-E1; Wed, 06 Feb 2008 11:16:47 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JMnt7-0006BZ-OT for ding@lists.math.uh.edu; Wed, 06 Feb 2008 11:16:45 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JMnt0-0003ic-Je for ding@lists.math.uh.edu; Wed, 06 Feb 2008 11:16:45 -0600 Original-Received: from mail.blockstar.com ([170.224.69.95]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JMnt3-0007nO-00 for ; Wed, 06 Feb 2008 18:16:41 +0100 Original-Received: from tzlatanov-ubuntu-desktop.jumptrading.com (unknown [38.98.147.130]) by mail.blockstar.com (Postfix) with ESMTP id 474183F8E1A for ; Wed, 6 Feb 2008 09:51:56 -0800 (PST) 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:080206:ding@gnus.org::cJ4lwuTJU7tPDW0h:0000JZUs In-Reply-To: <864pddzbdu.fsf@lifelogs.com> (Ted Zlatanov's message of "Wed, 16 Jan 2008 15:52:29 -0600") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66254 Archived-At: On Wed, 16 Jan 2008 15:52:29 -0600 Ted Zlatanov wrote: TZ> On Tue, 15 Jan 2008 15:56:36 -0600 Ted Zlatanov wrote: TZ> Sure, but keep in mind the registry in its current form gets big TZ> quickly. It should probably be compressed, if not trimmed. If it's TZ> trimmed then you only have the latest anyhow (in my experience 50,000 TZ> entries cover 99% of my needs); if we decide to compress it that's extra TZ> work but probably good for the user's disk space. TZ> ... TZ> Well, we get to two questions: TZ> 1) do we push the registry on everyone? If yes, then we should do TZ> (when (file-exists-p gnus-registry-cache-file) TZ> (gnus-registry-initialize)) TZ> in gnus.el. If not... TZ> 2) when we notify the user, we should offer to turn TZ> gnus-registry-enabled on, and in gnus.el we'll have TZ> (when gnus-registry-enabled TZ> (gnus-registry-initialize)) TZ> Either approach is OK with me. It really depends on how much everyone TZ> likes the registry and wants it on by default. IMO (2) is the better TZ> approach but complicates the code since we have to do the enabled check TZ> everywhere we offer user functionality. TZ> ... TZ> It will match an unanchored regular expression, so "^nntp" should do TZ> it. We could add a gnus-registry-ignored-methods, which by default is TZ> ("nntp" "nnrss" "nndraft" "nnil") or something similar, and then match TZ> on "^method:". Let me know which one you like better, I have no TZ> preference. TZ> Any opinions on the three items above? TZ> Labels are done, but I've called them 'marks' consistently. Before I TZ> had flags, labels, and marks. It was not nice. The label is always TZ> just a symbol. TZ> The mark functionality in gnus-registry.el uses process/prefix TZ> correctly, I think. TZ> gnus-registry-trim will always keep articles with marks and any other TZ> extra symbols you put in gnus-registry-extra-entries-precious. TZ> Please test and review if you have a chance. I haven't heard back about these questions, so: 1) Has anyone started using registry marks? They work for me but let me know if you have issues or questions. Also a formatting function that shows them in the modeline would be nice, but since there can be many flags and little space I'm not sure what's the best way to display them. Also, what keys should I bind to set custom flags in the group and article buffers? 2) If no one has objections, I'll set up the interactive query for registry first-time use in gnus.el. There will be three values for gnus-registry-enabled: nil: unknown, ask the user next time t: enable 'no-thanks: user doesn't want it Every user will have to answer it by default. Is that a bad idea? What else can I do? Ted