info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: on selecting a region of articles to be marked for download


From: Lars-Johan Liman
Subject: Re: on selecting a region of articles to be marked for download
Date: Tue, 31 Jul 2018 23:42:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin)

moasen@zoho.com:
> If you for some reason don't want to use the
> prefix argument method, I have some Elisp to do
> just what you want:

> (defun gnus-summary-mark (char start stop)
>   (interactive
>    (let ((c (read-char "mark: ")))
>      (if (use-region-p)
>          (list c (region-beginning) (region-end))
>        (let*((strt (point))
>              (stp  (1+ strt)) )
>          (list c strt stp) ))))
>   (goto-char start)
>   (beginning-of-line)
>   (while (< (point) stop)
>     (gnus-summary-mark-article (gnus-summary-article-number) char)
>     (gnus-summary-find-next) ))

Oh! Cool stuff! Thanks for sharing!

                                Cheers,
                                  /Liman
#-------------------------------------------------------------------------
# Lars-Johan Liman, M.Sc.                ! HTTP  : //www.cafax.se/
# Cafax AB                               !
# Computer Consultants, Sweden           !
#-------------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]