From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/27586 Path: main.gmane.org!not-for-mail From: Andrew J Cosgriff Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-summary-save-article help Date: 03 Dec 1999 10:29:39 +1100 Sender: owner-ding@hpc.uh.edu Message-ID: <1yiu2g9b18.fsf@earthling.aia.aig.com.au> References: <1yemdgwx1i.fsf@earthling.aia.aig.com.au> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035164586 25325 80.91.224.250 (21 Oct 2002 01:43:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:43:06 +0000 (UTC) Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id SAA15820 for ; Thu, 2 Dec 1999 18:31:56 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id RAB07667; Thu, 2 Dec 1999 17:31:16 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 02 Dec 1999 17:31:28 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id RAA16638 for ; Thu, 2 Dec 1999 17:31:12 -0600 (CST) Original-Received: from mail.aia-a.com.au ([203.17.41.35]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id SAA15812 for ; Thu, 2 Dec 1999 18:30:40 -0500 (EST) Original-Received: from earthling.aia.aig.com.au (postfix@earthling.aia.aig.com.au [192.168.1.214]) by mail.aia-a.com.au (8.9.3/8.9.1) with ESMTP id KAA25797 for ; Fri, 3 Dec 1999 10:29:34 +1100 (EST) Original-Received: by earthling.aia.aig.com.au (Postfix, from userid 1225) id 6F0941020; Fri, 3 Dec 1999 10:29:39 +1100 (EST) Original-To: ding@gnus.org X-Attribution: ajc X-Face: PBPJ+.AE`FBN4$}HrwwEhJ)x?-5$MQ%Z)svNR@Q\WG6[GDr,}a@8ULwGWBsk,Pqxm!Z- X-PGP-Key-ID: C7BD53F5 X-URI: X-VCard-URI: X-Horoscope: Tomorrow a lout will talk to your plants. Beware of your amoeba bearing a piglet. Loving your chicken now will turn out to be a good idea after a few seconds. You'll later be shrunk. In-Reply-To: Lars Magne Ingebrigtsen's message of "Wed, 01 Dec 1999 19:46:34 GMT" Original-Lines: 44 User-Agent: Gnus/5.08 (Gnus v5.8.0) XEmacs/21.1 (Bryce Canyon) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:27586 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:27586 Lars Magne Ingebrigtsen wrote : > Andrew J Cosgriff writes: > > > Then I caught the feeping creature disease and figured it'd be > > nice to save the current Gnus article, although I never quite got > > it to work properly - when (gnus-summary-article-subject) gets > > called it seems to return the subject line of the last article in > > the summary buffer, rather than the one I'm actually looking at. > > Help ! > > That function can only be called in the summary buffer. > > Instead, use `(cdr gnus-article-current)', which, when in the article > buffer, will give you the current article number. Hmm a `(mail-header-subject gnus-current-headers)' seems to do the right thing. ie. (defun gnus-summary-save-article-pilot (&optional arg) "Save the current article to a memo on your Palm device. If N is a positive number, save the N next articles. If N is a negative number, save the N previous articles. If N is nil and any articles have been marked with the process mark, save those articles instead." (interactive "P") (let ((gnus-default-article-saver 'gnus-summary-save-in-pilot-memo)) (gnus-summary-save-article arg))) (defun gnus-summary-save-in-pilot-memo (&optional filename) "Save this article to a memo on your Palm device. Optional argument FILENAME specifies file name." (gnus-eval-in-buffer-window gnus-save-article-buffer (save-buffer-to-pilot (read-string "memo title: " (mail-header-subject gnus-current-headers))))) Is that, like, a good way to do it ? Thanks heeps, Cos. -- Andrew J Cosgriff exterminate all rational thought ! star convenience alien pizza loss