From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/13782 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.user Subject: Re: How to use gnus-summary-universal-argument Date: Fri, 19 Mar 2010 14:26:42 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87r5ng5czx.fsf@lifelogs.com> References: <87bpewv9p3.fsf@linux-lqcw.site> <871vfscney.fsf@lifelogs.com> <87y6i0tfnd.fsf@linux-lqcw.site> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273018170 14391 80.91.229.12 (5 May 2010 00:09:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 May 2010 00:09:30 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed May 05 02:09:28 2010 connect(): No such file or directory Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9SB5-0000nz-4H for gegu-info-gnus-english@m.gmane.org; Wed, 05 May 2010 02:09:27 +0200 Original-Received: from localhost ([127.0.0.1]:34695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9SB4-0003fQ-IM for gegu-info-gnus-english@m.gmane.org; Tue, 04 May 2010 20:09:26 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 38 Original-X-Trace: news.albasani.net nzzk9Sg9olkX7INZRVdE8wGKNJtmRNNWzxoQki0lPt1SDMkpWB25MOu+5hYCuC/hKwxA13dZQViSxo2z9Yr3bGTNie2sdllkg0FK3I0BF99wB9gYMxZ8qkgcjDHdzJbL Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Fri, 19 Mar 2010 19:26:43 +0000 (UTC) X-User-ID: sN6RDMDPtWckFQlNnDr3Ob5lUL4FLDR1SxljtKUr+RY= X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Cancel-Lock: sha1:2ooKkJGcXMVqxg/0PXTV3mlbK2s= sha1:c1if2IU9cGW32ejiVo9U/Wv2Zjc= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.91 (gnu/linux) X-NNTP-Posting-Host: JZu1ZAU7gcgGlxmds/m8Ii3NnTRMEy1ef0iIba7XlwU= Original-Xref: usenet.stanford.edu gnu.emacs.gnus:84148 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:13782 Archived-At: On Wed, 10 Mar 2010 15:28:22 +0100 Cecil Westerhof wrote: CW> Ted Zlatanov writes: CW> I move spam message from different places to a certain folder to be CW> processed. I like them to be easily marked as read. I can do this with: CW> M P A CW> M-& CW> d CW> but I am a real programmer and lazy: I do not want to do what I can let CW> the computer do. ;-] >> >> I assume you're not using spam.el, because it can do this for you? CW> No, I did not know it. I'll look into it. But still I like to know how CW> to use gnus-summary-universal-argument. Maybe spam.el will do what I CW> want, but if not (or if I want to use the function for something else) CW> it would be nice to know how to use it. Leonidas gave you a specific answer, but in general you should not use g-s-u-argument in programs. It's meant for interactive use. Specifically, it asks the user for a keystroke and then looks up what the keystroke means (via `key-binding') in the summary mode keymap. Now if you want to programmatically do something on all the articles, that's not hard but it depends on the specific function. Some take multiple articles and you can just pass them the return values of `gnus-summary-work-articles' or let them call it themselves. Some don't and you have to loop on all the articles and later remove the process mark. If you want to programmatically copy or move articles you could look at `spam-copy-or-move-routine' in spam.el. It has some code for that purpose. You can also look at `gnus-summary-move-article' which will work on all the process-marked articles (it does copy, move, and crosspost). That's the heart of Gnus' copy and move functionality. HTH Ted