From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46477 Path: main.gmane.org!not-for-mail From: jhbrown@ai.mit.edu (Jeremy H. Brown) Newsgroups: gmane.emacs.gnus.general Subject: Re: Add hooks to Gnus on move/edit/delete? Date: 10 Sep 2002 14:17:21 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1031682015 22929 127.0.0.1 (10 Sep 2002 18:20:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2002 18:20:15 +0000 (UTC) Cc: ding@gnus.org Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17opcT-0005xf-00 for ; Tue, 10 Sep 2002 20:20:13 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17opa6-0001hD-00; Tue, 10 Sep 2002 13:17:46 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 10 Sep 2002 13:18:22 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id NAA10456 for ; Tue, 10 Sep 2002 13:18:09 -0500 (CDT) Original-Received: (qmail 20104 invoked by alias); 10 Sep 2002 18:17:28 -0000 Original-Received: (qmail 20099 invoked from network); 10 Sep 2002 18:17:28 -0000 Original-Received: from life.ai.mit.edu (128.52.32.80) by gnus.org with SMTP; 10 Sep 2002 18:17:28 -0000 Original-Received: from suspiria.ai.mit.edu (suspiria [128.52.39.94]) by life.ai.mit.edu (8.12.2/8.12.2/BASENAME(ai.master.life-8.12.2.mc,.mc):RCS_REVISION(evision: 1.23 ) with ESMTP id g8AIHLbM023832; Tue, 10 Sep 2002 14:17:21 -0400 (EDT) Original-Received: by suspiria.ai.mit.edu (8.8.8/1.1.19.2/08Jul98-0847PM) id OAA0000024465; Tue, 10 Sep 2002 14:17:21 -0400 (EDT) Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-15?q?Gro=DFjohann?=) In-Reply-To: Original-Lines: 35 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46477 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46477 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: > I've just started using ifile together with Jeremy's wonderful > ifile-gnus.el. It really rocks. Thanks for the kind words! > But of course it doesn't make much sense to advise the nnml > functions, instead we would like to provide hooks that can be called > when articles are moved. Absolutely agreed. The advice is very much just a hack to make it work with the stable distributions; I only went that route after determining that the hooks didn't (yet) exist. > I don't quite understand the meaning/purpose of the > nnmail-article-group advice, though. ifile-gnus is set up to do two things: - provide a recommendation to you to use during splits - record your actual decision, whether or not it was what ifile recommended The nnmail-article-group advice works on both problems. First, it sticks the article buffer in the variable "ifile-article-buffer"; the ifile functions that you use in the split rely on this variable to hide the fact that, as discussed here recently, the actual name of the buffer varies depending on how the nnmail-article-group is entered (initial split or respooling or whatever). Second, after the split has been performed, the advice runs ifile record the actual split decision made. Jeremy