From: Ralf Wachinger <rwnewsmampfer@geekmail.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Gnus: moving to the latest article in a thread
Date: 11 Mar 2009 01:11:24 GMT [thread overview]
Message-ID: <20090310.geh.mybtnhym.2@wachinger.fqdn.th-h.de> (raw)
In-Reply-To: 87prgst9nm.fsf@marauder.physik.uni-ulm.de
* Reiner Steib wrote:
> On Sun, Mar 08 2009, Francis Moreau wrote:
>
>> I'm looking for a magic thread command which allows me to go to latest
>> article in the current thread.
>
> Something like `9999 T d'?
>
> ,----[ (info "(gnus)Thread Commands") ]
> | `T d'
> | Descend the thread (`gnus-summary-down-thread').
> |
> | `T u'
> | Ascend the thread (`gnus-summary-up-thread').
> `----
>
>> It would be really cool if that command understand numeric prefix, so
>> giving '2' as prefix would move the second most recent article.
>
> (defun rs-gnus-summary-down-thread-max (&optional back)
> "Go to the lastest article in the current thread.
> With prefix, go up BACK articles from the lastest."
> (interactive "P")
> (while (/= 1 (gnus-summary-down-thread 1))
> t)
> (gnus-message 7 "End of thread reached.")
> (when back
> (gnus-summary-up-thread back)
> (gnus-message 7 "Went back %d articles." back))
> (gnus-summary-show-article))
--8<---------------cut here---------------start------------->8---
(defun rs-gnus-summary-down-thread-max (&optional back)
"Go to the lastest article in the current thread and show article.
With prefix, go up BACK articles from the lastest."
(interactive "P")
(gnus-summary-show-thread)
(while (/= 1 (gnus-summary-down-thread 1))
t)
(gnus-message 7 "End of thread reached.")
(when back
(gnus-summary-up-thread back)
(gnus-message 7 "Went back %d articles." back))
(gnus-summary-show-article))
--8<---------------cut here---------------end--------------->8---
If the thread is hidden, an endless loop happens. Therefore i have added
(gnus-summary-show-thread) to show the thread first.
prev parent reply other threads:[~2009-03-11 1:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-08 12:06 Gnus: moving to the latest article in a thread Francis Moreau
2009-03-08 13:40 ` Reiner Steib
2009-03-09 9:01 ` Francis Moreau
2009-03-09 10:53 ` Richard Riley
2009-03-10 13:47 ` Francis Moreau
2009-03-10 14:17 ` Richard Riley
2009-03-10 15:41 ` Francis Moreau
2009-03-10 19:41 ` Richard Riley
2009-03-11 1:11 ` Ralf Wachinger [this message]
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090310.geh.mybtnhym.2@wachinger.fqdn.th-h.de \
--to=rwnewsmampfer@geekmail.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.