From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84793 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Hooks for moving an article and for setting it expirable Date: Tue, 19 Aug 2014 09:16:27 +0800 Message-ID: <8738ctl1n8.fsf@ericabrahamsen.net> References: <87silaykb6.fsf@aura.christopherculver.com> <87mwbflp13.fsf@ericabrahamsen.net> <87fvguzxke.fsf@aura.christopherculver.com> <87d2byoe97.fsf@ericabrahamsen.net> <87zjf1j4dt.fsf@aura.christopherculver.com> <87mwb1lvrz.fsf@ericabrahamsen.net> <87r40dhl7u.fsf@aura.christopherculver.com> <87iolphg68.fsf@aura.christopherculver.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1408410808 13395 80.91.229.3 (19 Aug 2014 01:13:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Aug 2014 01:13:28 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33036@lists.math.uh.edu Tue Aug 19 03:13:21 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XJXzF-0000Kp-Gk for ding-account@gmane.org; Tue, 19 Aug 2014 03:13:21 +0200 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 1XJXyL-0004Z7-Sp; Mon, 18 Aug 2014 20:12:25 -0500 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 1XJXyJ-0004Yu-7z for ding@lists.math.uh.edu; Mon, 18 Aug 2014 20:12:23 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XJXyH-0006IN-Ez for ding@lists.math.uh.edu; Mon, 18 Aug 2014 20:12:22 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XJXyF-000710-Hw for ding@gnus.org; Tue, 19 Aug 2014 03:12:19 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XJXyF-0008My-Ck for ding@gnus.org; Tue, 19 Aug 2014 03:12:19 +0200 Original-Received: from 123.122.43.18 ([123.122.43.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Aug 2014 03:12:19 +0200 Original-Received: from eric by 123.122.43.18 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Aug 2014 03:12:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 123.122.43.18 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:MJBt79RpwMsRdLQMbBlwJvZCuhE= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84793 Archived-At: Christopher Culver writes: > Christopher Culver 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