Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: "Adam Sjøgren" <>
Subject: Re: Marking thread as read
Date: Thu, 29 Jun 2023 18:33:22 +0200	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Alshehhi writes:

> I am new to gnus. I am trying to mark a thread as read. However, it is
> still unclear to me how to do that. There is the command
> gnus-summary-kill-thread:

I recently had the same need, and solved it by making my own function
based on gnus-summary-kill-thread:

    (defun asjo-gnus-summary-mark-thread-read ()
      "Mark articles under current thread as read."
      (interactive "" gnus-summary-mode)
      (let ((articles (gnus-summary-articles-in-thread)))
          ;; Expand the thread.
          ;; Mark all the articles.
          (while articles
            (gnus-summary-goto-subject (car articles))
            (gnus-summary-mark-article-as-read gnus-read-mark)
            (setq articles (cdr articles)))))
        ;; Go to next unread subject.
      (gnus-summary-next-subject 1 t)
      (gnus-set-mode-line 'summary))

    (define-key gnus-summary-mode-map [(T) (r)] 'asjo-gnus-summary-mark-thread-read)

More context:

  Best regards,


 "In the past we would do little things for love,           Adam Sjøgren
  but but things, big things required money. Now we
  can do big things for love."

  parent reply	other threads:[~2023-06-29 16:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-29  4:02 Alshehhi Family
2023-06-29 13:07 ` Eric S Fraga
2023-06-29 13:26 ` Eric S Fraga
2023-06-30  2:28   ` Michael Heerdegen
2023-06-30  9:16     ` Eric S Fraga
2023-06-29 16:33 ` Adam Sjøgren [this message]
2023-07-01 15:23 Alshehhi Family

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).