[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Finding last messages in a thread
From: |
Eric Abrahamsen |
Subject: |
Re: Finding last messages in a thread |
Date: |
Wed, 29 Apr 2020 21:16:47 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Hello,
>
> is there a quick way to sort the messages in a thread chronologically?
> My goal is to find the latest articles in a thread.
>
> I guessed the quickest way could be to limit to the current thread
> (???), and then turn off threading (C-M-t), but the first functionality
> doesn't seem to exist, so I implemented it quicky:
>
> #+begin_src emacs-lisp
> (defun my-gnus-limit-to-current-thread ()
> (interactive)
> (let ((a (gnus-summary-article-number)))
> (gnus-summary-limit
> (gnus-summary-articles-in-thread
> (let ((a a))
> (dotimes (_ (gnus-summary-thread-level))
> (cl-callf gnus-summary-article-parent a))
> a)))
> (gnus-summary-goto-subject a)))
> #+end_src
>
> Do I miss something?
Elsewhere the gnus code does this with `gnus-root-id', but I have no
idea if that is any faster or more convenient than your version (I would
be curious to know). I wonder if you could use the
`gnus-newsgroup-dependencies' hashtable.
- Finding last messages in a thread, Michael Heerdegen, 2020/04/29
- Re: Finding last messages in a thread,
Eric Abrahamsen <=
- Re: Finding last messages in a thread, Lars Ingebrigtsen, 2020/04/30
- Re: Finding last messages in a thread, Andrew Cohen, 2020/04/30
- Re: Finding last messages in a thread, Andrew Cohen, 2020/04/30
- Re: Finding last messages in a thread, Michael Heerdegen, 2020/04/30
- Re: Finding last messages in a thread, Andrew Cohen, 2020/04/30
- Re: Finding last messages in a thread, Michael Heerdegen, 2020/04/30
- Re: Finding last messages in a thread, Andrew Cohen, 2020/04/30
Re: Finding last messages in a thread, Achilles Yuce, 2020/04/30