Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Article Tagging a la OrgMode

0 views
Skip to first unread message

Volkan YAZICI

unread,
Nov 14, 2009, 2:49:41 AM11/14/09
to
Hi,

Is it possible to tag (school, work, server, security, etc.) articles
in the summary buffer, in a similar fashion to orgmode tags and use
these tags to filter articles somehow?


Regards.

Ted Zlatanov

unread,
Nov 16, 2009, 10:36:22 AM11/16/09
to
On Fri, 13 Nov 2009 23:49:41 -0800 (PST) Volkan YAZICI <volkan...@gmail.com> wrote:

VY> Is it possible to tag (school, work, server, security, etc.) articles
VY> in the summary buffer, in a similar fashion to orgmode tags and use
VY> these tags to filter articles somehow?

The registry will let you assign labels to articles and display them.
These labels have any name and you can associate a visual mark with the
article, too.

There is no functionality yet to filter based on these tags but it
should not be hard to implement.

Ted

Volkan YAZICI

unread,
Nov 17, 2009, 4:09:17 AM11/17/09
to
On Nov 16, 5:36 pm, Ted Zlatanov <t...@lifelogs.com> wrote:

> On Fri, 13 Nov 2009 23:49:41 -0800 (PST) Volkan YAZICI <volkan.yaz...@gmail.com> wrote:
>
> VY> Is it possible to tag (school, work, server, security, etc.) articles
> VY> in the summary buffer, in a similar fashion to orgmode tags and use
> VY> these tags to filter articles somehow?
>
> The registry will let you assign labels to articles and display them.
> These labels have any name and you can associate a visual mark with the
> article, too.

I think you refer to gnus-registry.el file. I found it in the gnus
sources but nor googling, neither reading the sources provided any
useful documentation. (I still couldn't grasp totally what gnus-
registry does.) Would you mind eloborating the steps you mentioned
above a little bit please?

> There is no functionality yet to filter based on these tags but it
> should not be hard to implement.

Any clues for the initial speed?


Regards.

Vagn Johansen

unread,
Nov 17, 2009, 4:30:02 AM11/17/09
to info-gnu...@gnu.org
Ted Zlatanov <t...@lifelogs.com> writes:

> On Fri, 13 Nov 2009 23:49:41 -0800 (PST) Volkan YAZICI <volkan...@gmail.com> wrote:
>
> VY> Is it possible to tag (school, work, server, security, etc.) articles
> VY> in the summary buffer, in a similar fashion to orgmode tags and use
> VY> these tags to filter articles somehow?
>
> The registry will let you assign labels to articles and display them.
> These labels have any name and you can associate a visual mark with the
> article, too.

How?

Looking at the interactive functions in gnus-registry.el I do not see
how to accomplish this.

--
Vagn Johansen
Evalesco A/S

Ted Zlatanov

unread,
Nov 18, 2009, 1:41:44 PM11/18/09
to
On Tue, 17 Nov 2009 10:30:02 +0100 Vagn Johansen <gon...@hotmail.com> wrote:

VJ> Ted Zlatanov <t...@lifelogs.com> writes:
>> The registry will let you assign labels to articles and display them.
>> These labels have any name and you can associate a visual mark with the
>> article, too.

VJ> Looking at the interactive functions in gnus-registry.el I do not see
VJ> how to accomplish this.

On Tue, 17 Nov 2009 01:09:17 -0800 (PST) Volkan YAZICI <volkan...@gmail.com> wrote:

VY> I think you refer to gnus-registry.el file. I found it in the gnus
VY> sources but nor googling, neither reading the sources provided any
VY> useful documentation. (I still couldn't grasp totally what gnus-
VY> registry does.) Would you mind eloborating the steps you mentioned
VY> above a little bit please?

Sorry that it wasn't clear. I put comments in the variable definitions
in the code. You just need a recent Gnus checkout from CVS. Customize
gnus-registry-marks as you like. You must reload gnus-registry.el
because it creates functions based on what marks you define, or run
gnus-registry-install-shortcuts manually.

Then use gnus-registry-mark-article to set the mark. It will do
completion so you can select which mark you want. You can also use the
menu to select a specific mark or the corresponding function that looks
like gnus-registry-set-article-Important-mark (there's a corresponding
gnus-registry-remove-article-Important-mark).

The registry is a general hashtable that can store the following
associated with a message ID:

- the group(s) where it's been seen (updated on copy/move/delete), this
is not reliable because you can limit the total registry size

- any extra information, always reliable: it's never expunged even if
the size of the registry is limited

- extra marks (stored in the extra information): any number of symbols
stored in a list to represent the desired article marks

Also note you can use

(defalias 'gnus-user-format-function-M
'gnus-registry-user-format-function-M)

and then %uM in your summary format line to show the registry marks
automatically.

>> There is no functionality yet to filter based on these tags but it
>> should not be hard to implement.

VY> Any clues for the initial speed?

Getting the registry marks requires a hashtable lookup and then a short
alist walk to get the marks, so I'd expect it to be fast.

Ted

0 new messages