From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46554 Path: main.gmane.org!not-for-mail From: jhbrown@ai.mit.edu (Jeremy H. Brown) Newsgroups: gmane.emacs.gnus.general Subject: Re: finding the article buffer when splitting Date: 15 Sep 2002 14:21:02 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: References: <03bs7em0a4.fsf@msgid.viggen.net> <03y9ahlu15.fsf@msgid.viggen.net> <873csdrhhi.fsf_-_@emacswiki.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032114088 32004 127.0.0.1 (15 Sep 2002 18:21:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 15 Sep 2002 18:21:28 +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 17qe1P-0008K4-00 for ; Sun, 15 Sep 2002 20:21:27 +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 17qe1K-0005ko-00; Sun, 15 Sep 2002 13:21:22 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 15 Sep 2002 13:21:59 -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 NAA20735 for ; Sun, 15 Sep 2002 13:21:47 -0500 (CDT) Original-Received: (qmail 22388 invoked by alias); 15 Sep 2002 18:21:05 -0000 Original-Received: (qmail 22383 invoked from network); 15 Sep 2002 18:21:05 -0000 Original-Received: from life.ai.mit.edu (128.52.32.80) by gnus.org with SMTP; 15 Sep 2002 18:21:05 -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 g8FIL2k8018895; Sun, 15 Sep 2002 14:21:02 -0400 (EDT) Original-Received: by suspiria.ai.mit.edu (8.8.8/1.1.19.2/08Jul98-0847PM) id OAA0000031785; Sun, 15 Sep 2002 14:21:02 -0400 (EDT) Original-To: Alex Schroeder In-Reply-To: <873csdrhhi.fsf_-_@emacswiki.org> Original-Lines: 28 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:46554 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46554 Alex Schroeder writes: > jhbrown@ai.mit.edu (Jeremy H. Brown) writes: > > > (defadvice nnmail-article-group (around name-article-buffer (&rest args)) > > "name the article buffer for use in fancy splits" > > (let ((the-article-buffer (current-buffer))) > > ad-do-it)) > > > > (ad-activate-regexp "name-article-buffer") > > Is anything like that going to be in Gnus? This seems to be really > easy to implement. Otherwise, we might consider adding the following > macro: > [snip] Having thought about this more, I think what we really want is not a variable gnus-the-article-buffer, but a function (gnus-current-article-buffer) which returns a buffer containing the current article. We want a function because if you're using the imap backend, normal splitting functions don't download the whole article, just the headers; this function can download the article body if necessary, and otherwise just immediately return the buffer with the body in it. Jeremy