Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Finding last messages in a thread
@ 2020-04-30  3:15 Michael Heerdegen
  2020-04-30  4:16 ` Eric Abrahamsen
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Michael Heerdegen @ 2020-04-30  3:15 UTC (permalink / raw)
  To: info-gnus-english

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?

TIA,

Michael.


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

end of thread, other threads:[~2020-05-01  2:37 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-30  3:15 Finding last messages in a thread Michael Heerdegen
2020-04-30  4:16 ` Eric Abrahamsen
2020-04-30  4:46   ` Michael Heerdegen
2020-04-30  5:29     ` Eric Abrahamsen
2020-04-30  5:31 ` Lars Ingebrigtsen
2020-04-30  7:01   ` Andrew Cohen
2020-04-30  8:25     ` Andrew Cohen
2020-04-30 22:18       ` Michael Heerdegen
2020-05-01  0:27         ` Andrew Cohen
2020-05-01  1:27           ` Michael Heerdegen
2020-05-01  2:12             ` Andrew Cohen
2020-04-30 20:36 ` Achilles Yuce
2020-04-30 20:45   ` Michael Heerdegen
2020-04-30 20:52     ` Achilles Yuce

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).