From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66034 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-registry flags API Date: Thu, 03 Jan 2008 18:10:51 +0100 Message-ID: References: <861w9jeaw4.fsf@lifelogs.com> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199380392 27003 80.91.229.12 (3 Jan 2008 17:13:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jan 2008 17:13:12 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M14527@lists.math.uh.edu Thu Jan 03 18:13:31 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 1JATdE-00015Q-1q for ding-account@gmane.org; Thu, 03 Jan 2008 18:13:24 +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 1JATcA-00016A-Jx; Thu, 03 Jan 2008 11:12:18 -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 1JATc7-00015n-GT for ding@lists.math.uh.edu; Thu, 03 Jan 2008 11:12:15 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JATc5-00037b-P4 for ding@lists.math.uh.edu; Thu, 03 Jan 2008 11:12:15 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JATc5-0002JE-00 for ; Thu, 03 Jan 2008 18:12:13 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JATbz-0006AE-Jf for ding@gnus.org; Thu, 03 Jan 2008 17:12:07 +0000 Original-Received: from hsi-kbw-085-216-078-230.hsi.kabelbw.de ([85.216.78.230]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Jan 2008 17:12:07 +0000 Original-Received: from Reiner.Steib by hsi-kbw-085-216-078-230.hsi.kabelbw.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Jan 2008 17:12:07 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 74 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: hsi-kbw-085-216-078-230.hsi.kabelbw.de X-Face: .*T0'iU(sujq_j9\J>-d4fg;N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Copies-To: nobody User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:qd/mEf+0TO9SkfLubLJTc+5zFeQ= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66034 Archived-At: On Wed, Dec 19 2007, Ted Zlatanov wrote: > 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. We need documentation in the manual for this as well as for `gnus-registry.el' in general. The only hits for "registry" in the manual are in the context of spam*.el. BTW: I'd like to switch from `nnmail-split-fancy-with-parent' to `gnus-registry-split-fancy-with-parent'. Is there a conversion function from `nnmail-message-id-cache-file' to `gnus-registry-cache-file'? > 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 When used interactively, the current article should be the default too. Now it insists on "Please enter a number.". Maybe `article' should be optional? I did `M-: (gnus-registry-mark-article nil) RET' without initializing the registry. AFAICS, this is a no-op -- at least no ~/.gnus.registry.eld was created. It should probably signal an error. > - if MARK is nil, use gnus-registry-flag-default (you don't want that, > it's boring) When called interactively, it should prompt for flags with completion. At least the Mozilla labels ("Important" "Work" "Personal" "To do" "Later" ) should be offered by default. The user may add additional flags to this list and also set arbitrary flags. > - 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 Same remark as for `rs-gnus-summary-line-label-alist'. > 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. It should accept Gnus' standard process/prefix convention. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/