Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: Marking thread as read
@ 2023-07-01 15:23 Alshehhi Family
  0 siblings, 0 replies; 7+ messages in thread
From: Alshehhi Family @ 2023-07-01 15:23 UTC (permalink / raw)
  To: Adam Sjøgren; +Cc: info-gnus-english

Adam Sjøgren <asjo@koldfront.dk> writes:

> 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)))
>         (save-excursion
>           ;; Expand the thread.
>           (gnus-summary-show-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: https://koldfront.dk/quickly_marking_a_thread_read_1839

Thank you. This works very well!



^ permalink raw reply	[flat|nested] 7+ messages in thread
* Marking thread as read
@ 2023-06-29  4:02 Alshehhi Family
  2023-06-29 13:07 ` Eric S Fraga
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Alshehhi Family @ 2023-06-29  4:02 UTC (permalink / raw)
  To: info-gnus-english


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:

        gnus-summary-kill-thread is an interactive native-compiled Lisp
        function in ‘gnus-sum.el’.

        (gnus-summary-kill-thread &optional UNMARK)

        Mark articles under current thread as read.
        If the prefix argument is positive, remove any kinds of marks.
        If the prefix argument is zero, mark thread as expired.
        If the prefix argument is negative, tick articles instead.

It seems that like it is the right command because it says "as
read". But when I run it, gnus mark the thread as kill. Am I missing
something?

Husain



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

end of thread, other threads:[~2023-07-01 15:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-01 15:23 Marking thread as read Alshehhi Family
  -- strict thread matches above, loose matches on Subject: below --
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 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).