From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/13753 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.emacs.gnus.user Subject: How to use gnus-summary-universal-argument Date: Wed, 10 Mar 2010 09:54:00 +0100 Organization: Decebal Computing Message-ID: <87bpewv9p3.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 1273017939 13732 80.91.229.12 (5 May 2010 00:05:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 May 2010 00:05:39 +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:05:38 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 1O9S7N-0007jD-Df for gegu-info-gnus-english@m.gmane.org; Wed, 05 May 2010 02:05:37 +0200 Original-Received: from localhost ([127.0.0.1]:40354 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9S7M-0006rf-Vd for gegu-info-gnus-english@m.gmane.org; Tue, 04 May 2010 20:05:37 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Original-Newsgroups: gnu.emacs.gnus X-Homepage: http://www.decebal.nl/ User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:HLuOXsicnINoAd+/XzfBqvFhhnI= Original-Lines: 34 Original-NNTP-Posting-Host: 84.53.123.169 Original-X-Trace: 1268211221 news.xs4all.nl 22939 decebal/[::ffff:84.53.123.169]:21443 Original-X-Complaints-To: abuse@xs4all.nl Original-Xref: usenet.stanford.edu gnu.emacs.gnus:84113 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:13753 Archived-At: I move spam message from different places to a certain folder to be processed. I like them to be easily marked as read. I can do this with: M P A M-& d but I am a real programmer and lazy: I do not want to do what I can let the computer do. ;-] So I started writing the following function: (defun gnus-summary-mark-all-messages-as-read () "If in gnus-summary-mode mark all messages as read" (interactive) (if (not (equal major-mode 'gnus-summary-mode)) (message "This function can only be used in gnus-summary-mode") (gnus-uu-mark-all) (gnus-summary-universal-argument 'gnus-summary-mark-as-read-forward))) This does not work. The description of gnus-summary-universal-argument is: gnus-summary-universal-argument is an interactive compiled Lisp function. (gnus-summary-universal-argument ARG) Perform any operation on all articles that are process/prefixed. How do I need to define the argument to let this work? On a side note: what would be a good key to bind this function to? -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof