Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Re: Hooks for moving an article and for setting it expirable
Date: Tue, 19 Aug 2014 09:16:27 +0800	[thread overview]
Message-ID: <8738ctl1n8.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87iolphg68.fsf@aura.christopherculver.com>

Christopher Culver <crculver@christopherculver.com> writes:

> Christopher Culver <crculver@christopherculver.com> writes:
>> The problem now is that I have no idea what type gnus-data-header
>> returns. Emacs' describe-function is not helpful. Is it a string
>> equivalent to the header portion of the maildir file? Is it a key-values
>> list, and if so, what the keys?
>
> Printing the object to a buffer, I see that gnus-data-header returns an
> array (vector table), where the article number is the first item (index
> 0). So, now I can work with this. But it is a pity that it is not
> documented.

In gnus-sum.el there are a series of `gnus-data-*' functions for working
with the data vector, there's a `gnus-data-number', for instance. Of
course, all that does is take the car of the vector! But if you're doing
more than that, it's probably better to use the pre-made functions.

It's true, there's not a lot of documentation in this area, either in
the manual or the docstrings. Have you read the Gnus Reference Guide
section of the info manual? It's fairly well hidden -- I only recently
found it, in the Appendices section -- but it explains some of the
internals. Not the data vector, though. There's also a
`gnus-with-article' macro, but that actually edits the article, and then
replaces the old one with the newly edited version.

Eric





  reply	other threads:[~2014-08-19  1:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-05 16:26 Christopher Culver
2014-08-07 20:45 ` Adam Sjøgren
2014-08-08  1:59 ` Eric Abrahamsen
2014-08-17 20:10   ` Christopher Culver
2014-08-18  0:03     ` Eric Abrahamsen
2014-08-18 13:47       ` Christopher Culver
2014-08-18 14:25         ` Eric Abrahamsen
2014-08-18 15:27           ` Christopher Culver
2014-08-18 17:16             ` Christopher Culver
2014-08-19  1:16               ` Eric Abrahamsen [this message]
2014-08-20 18:16                 ` Christopher Culver
2014-08-24  3:22                   ` Eric Abrahamsen
2014-08-26 23:50                     ` Christopher Culver
2014-08-27  2:07                       ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8738ctl1n8.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).