Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* How to use gnus-summary-universal-argument
@ 2010-03-10  8:54 Cecil Westerhof
  2010-03-10 13:32 ` Ted Zlatanov
  2010-03-19 10:39 ` Leonidas Tsampros
  0 siblings, 2 replies; 5+ messages in thread
From: Cecil Westerhof @ 2010-03-10  8:54 UTC (permalink / raw)
  To: info-gnus-english

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-19 19:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-10  8:54 How to use gnus-summary-universal-argument Cecil Westerhof
2010-03-10 13:32 ` Ted Zlatanov
2010-03-10 14:28   ` Cecil Westerhof
2010-03-19 19:26     ` Ted Zlatanov
2010-03-19 10:39 ` Leonidas Tsampros

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).