From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84789 Path: news.gmane.org!not-for-mail From: Christopher Culver Newsgroups: gmane.emacs.gnus.general Subject: Re: Hooks for moving an article and for setting it expirable Date: Mon, 18 Aug 2014 16:47:58 +0300 Message-ID: <87zjf1j4dt.fsf@aura.christopherculver.com> References: <87silaykb6.fsf@aura.christopherculver.com> <87mwbflp13.fsf@ericabrahamsen.net> <87fvguzxke.fsf@aura.christopherculver.com> <87d2byoe97.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1408369752 13073 80.91.229.3 (18 Aug 2014 13:49:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Aug 2014 13:49:12 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33032@lists.math.uh.edu Mon Aug 18 15:49:05 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 1XJNJ3-0002je-5T for ding-account@gmane.org; Mon, 18 Aug 2014 15:49:05 +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 1XJNIL-0000K5-HO; Mon, 18 Aug 2014 08:48:21 -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 1XJNIJ-0000Jv-TO for ding@lists.math.uh.edu; Mon, 18 Aug 2014 08:48:19 -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 1XJNII-00026O-7T for ding@lists.math.uh.edu; Mon, 18 Aug 2014 08:48:19 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XJNIF-0000A0-7N for ding@gnus.org; Mon, 18 Aug 2014 15:48:15 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XJNIE-0002H8-Oa for ding@gnus.org; Mon, 18 Aug 2014 15:48:14 +0200 Original-Received: from 188.24.91.206 ([188.24.91.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Aug 2014 15:48:14 +0200 Original-Received: from crculver by 188.24.91.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Aug 2014 15:48:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 188.24.91.206 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:iRKkz0f71eAEkdcqwLSbw3l+rRI= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84789 Archived-At: Eric Abrahamsen writes: > Hmm, it is a little unfortunate that the docstrings of those hooks don't > say... Both of them are called with the same arguments: ACTION (which > can be a symbol like move, delete, crosspost, or copy), DATA (which is > the header data as returned by `gnus-data-header'), FROM-GROUP (where > the article's coming from), TO-GROUP (where it's going), and > SELECT-METHOD, for the current select method. Strange, I would have expected one of the arguments to be the article itself, not just the header. If I want a function called by a hook to do something with the raw article, how can I get the raw article passed to the function? Or can I simply call gnus-summary-save-in-pipe from within the function and it would know to act on the article(s) presently being moved or deleted? My knowledge of Emacs Lisp is still rudimentary and maybe I don’t understand the scoping. Christopher Culver