From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65992 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-registry flags API Date: Tue, 18 Dec 2007 19:22:35 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <861w9jeaw4.fsf@lifelogs.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1198027389 23048 80.91.229.12 (19 Dec 2007 01:23:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Dec 2007 01:23:09 +0000 (UTC) To: Ding Mailing List Original-X-From: ding-owner+M14484@lists.math.uh.edu Wed Dec 19 02:23:22 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 1J4neb-0000fn-FC for ding-account@gmane.org; Wed, 19 Dec 2007 02:23:21 +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 1J4ndv-0003TQ-88; Tue, 18 Dec 2007 19:22:39 -0600 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 1J4ndu-0003T9-0A for ding@lists.math.uh.edu; Tue, 18 Dec 2007 19:22:38 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1J4ndn-0008GD-Ui for ding@lists.math.uh.edu; Tue, 18 Dec 2007 19:22:37 -0600 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 1J4ndm-0000Gs-00 for ; Wed, 19 Dec 2007 02:22:30 +0100 Original-Received: from tzlatanov-ubuntu-desktop.jumptrading.com (unknown [38.98.147.130]) by mail.blockstar.com (Postfix) with ESMTP id 83B243F86B9 for ; Tue, 18 Dec 2007 17:50:11 -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:071219:ding@gnus.org::z5FwlMaAZwNn/Jyx:0000COoj Mail-Followup-To: Ding Mailing List In-Reply-To: (Ted Zlatanov's message of "Tue, 25 Sep 2007 11:26:08 -0500") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65992 Archived-At: On Tue, 25 Sep 2007 11:26:08 -0500 Ted Zlatanov wrote: TZ> The frontend functionality I would like: TZ> - set a flag for an article (this should be a simple function a user can TZ> call from a group or message buffer, which grabs the message ID and uses TZ> the gnus-registry API afterwards) TZ> - indicate the article flags somehow (fringe or status line maybe?) TZ> - add summary line formatting support for arbitrary flags TZ> Any suggestions or contributions (especially the three items above) are TZ> welcome. Please review and criticize the code if you can, I haven't TZ> done Emacs Lisp in a bit :) I added the essential functions (first on the list) in CVS, now we need a status line / summary line integration for these. Note that the MARK here is really any Lisp symbol, so 'hello-there-flag and 'goodbye-here-but-I-like-verbosity-flag are OK. Go wild. gnus-registry-mark-article ARTICLE &optional MARK REMOVE - if ARTICLE is nil, use current article - if MARK is nil, use gnus-registry-flag-default (you don't want that, it's boring) - if REMOVE is t, remove MARK from the flags gnus-registry-article-marks ARTICLE: get list of marks for the article - if ARTICLE is nil, use current article Let me know if you find bugs or inconsistencies. I am especially curious how these should integrate with the other Gnus summary functions, and if they should take prefix arguments, etc. For me that's not a big deal. Ted