From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/11834 Path: main.gmane.org!not-for-mail From: Nelson Jose dos Santos Ferreira Newsgroups: gmane.emacs.gnus.general Subject: Context sensitive gnus-summary-copy-article Date: 03 Aug 1997 14:41:14 +0100 Message-ID: <87n2mzqt8l.fsf@sourcebase.linux.pt> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.105) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035151480 32758 80.91.224.250 (20 Oct 2002 22:04:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:04:40 +0000 (UTC) Return-Path: Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by altair.xemacs.org (8.8.6/8.8.6) with ESMTP id DAA21827 for ; Mon, 4 Aug 1997 03:46:23 -0700 Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by xemacs.org (8.8.5/8.8.5) with SMTP id FAA06020 for ; Mon, 4 Aug 1997 05:41:45 -0500 (CDT) Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Mon, 4 Aug 1997 11:21:14 +0200 Original-Received: (qmail 25098 invoked by uid 504); 4 Aug 1997 09:21:12 -0000 Original-Received: (qmail 25095 invoked from network); 4 Aug 1997 09:21:10 -0000 Original-Received: from inesc.inesc.pt (146.193.0.1) by claymore.vcinet.com with SMTP; 4 Aug 1997 09:21:07 -0000 Original-Received: from ccae-sv.inesc.pt by inesc.inesc.pt with SMTP; id AA05981 (/); Mon, 4 Aug 1997 10:18:18 +0100 Original-Received: by ccae-sv.inesc.pt (4.1/SunOs.4.1.3) id AA21056; Mon, 4 Aug 97 10:20:59 BST Original-To: ding@gnus.org X-Face: <15=A]w]g0mvFaG-vjRMUsG*$bO;6a2z2eUKU~+SN@oy//G<5JW~rdxEz!#R%[d{<}?EMS& ~PSXV,?H-Se'b}xP3F<^A!mZ%}Q37+9]YVSzd>2#.fn3?/S\&uX@A),24gkeE3[FYrfVJ2!PVtl(3_ l?/)o+vm7+T$~qn Original-Lines: 43 X-Mailer: Gnus v5.4.52/XEmacs 20.2 Xref: main.gmane.org gmane.emacs.gnus.general:11834 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:11834 Hi all. How do I make 'B c' know which group to copy archives depending on the current group ? I guess I'll have to write a gnus-summary-njsf-copy-article which if TO-NEWSGROUP is not present, examines either a local variable or a group parameter (I'd like to set the default destination on the group parameters...) and if it's set copy to there... Otherwise the behaviour is as in gnus-summary-copy-article. I need help writing this, I really hadn't had the time to dive in Elisp (altough I have the desire... :) ) Is it someting like : (defun gnus-summary-njsf-copy-article (&optional n to-newsgroup select-method) "Use the local gnus-summary-default-copy-to variable as default for destination of gnus-summary-njsf-copy-article." ( (interactive "P") (if (eq to-newsgroup nil) (setq to-newsgroup gnus-summary-njsf-copy-article)) (gnus-summary-copy-article n to-newsgroup select-method))) Then I'd just have to add a (gnus-summary-njsf-copy-article . "nnfolder+archive:theArchive") to the groups parameters. Of course I'd have to change the bindings... It's on gnus-summary-map right ? Is there an easier way ? Thanks in advance, Nelson. --- Nelson Jose dos Santos Ferreira | . . . | INESC/PT-SVC Lisbon,PORTUGAL | |. / / . | PT-Servicos mailto:Nelson.Ferreira@inesc.pt |.||\| | / | Phone:+351 (1) 3100063 http://ccae-sv.inesc.pt/~njsf | .|<:/ \. | Fax :+351 (1) 3100008