all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Gnus: moving to the latest article in a thread
@ 2009-03-08 12:06 Francis Moreau
  2009-03-08 13:40 ` Reiner Steib
  0 siblings, 1 reply; 9+ messages in thread
From: Francis Moreau @ 2009-03-08 12:06 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I'm looking for a magic thread command which allows me to go to latest
article in the current thread.

It would be really cool if that command understand numeric prefix, so
giving '2' as prefix would move the second most recent article.

Thanks
-- 
Francis


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

* Re: Gnus: moving to the latest article in a thread
  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-11  1:11   ` Ralf Wachinger
  0 siblings, 2 replies; 9+ messages in thread
From: Reiner Steib @ 2009-03-08 13:40 UTC (permalink / raw)
  To: help-gnu-emacs

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

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


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

* Re: Gnus: moving to the latest article in a thread
  2009-03-08 13:40 ` Reiner Steib
@ 2009-03-09  9:01   ` Francis Moreau
  2009-03-09 10:53     ` Richard Riley
  2009-03-11  1:11   ` Ralf Wachinger
  1 sibling, 1 reply; 9+ messages in thread
From: Francis Moreau @ 2009-03-09  9:01 UTC (permalink / raw)
  To: help-gnu-emacs

Reiner Steib <reinersteib+gmane@imap.cc> writes:

> 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'?
>

Hmm, yes that would work if inside the thread, sub thread are sorted
by date, I didn't think about this before.

But if they're not, the only way to do that is to keep a list of all
articles in the thread and to sort this list by date (most recent
first). So that last article is the first article in the list
etc... the prefix would be just the index in the list.

thanks for your function.
-- 
Francis


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

* Re: Gnus: moving to the latest article in a thread
  2009-03-09  9:01   ` Francis Moreau
@ 2009-03-09 10:53     ` Richard Riley
  2009-03-10 13:47       ` Francis Moreau
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Riley @ 2009-03-09 10:53 UTC (permalink / raw)
  To: help-gnu-emacs

Francis Moreau <francis.moro@gmail.com> writes:

> Reiner Steib <reinersteib+gmane@imap.cc> writes:
>
>> 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'?
>>
>
> Hmm, yes that would work if inside the thread, sub thread are sorted
> by date, I didn't think about this before.
>
> But if they're not, the only way to do that is to keep a list of all
> articles in the thread and to sort this list by date (most recent
> first). So that last article is the first article in the list
> etc... the prefix would be just the index in the list.
>
> thanks for your function.

I am interested in the requirement here. Do you really go to the last
article in a thread? If so, a natural "first step" in reading a thread?
Would you really order a thread so latest article is first? It strikes
me as very unusual behaviour :-; Still, the wonderful Gnus can be
moulded to all tastes.


-- 
 important and urgent problems of the technology of today are no longer the satisfactions of the primary needs or of archetypal wishes, but the reparation of the evils and damages by the technology of yesterday.  ~Dennis Gabor, Innovations:  Scientific, Technological and Social, 1970


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

* Re: Gnus: moving to the latest article in a thread
  2009-03-09 10:53     ` Richard Riley
@ 2009-03-10 13:47       ` Francis Moreau
  2009-03-10 14:17         ` Richard Riley
  0 siblings, 1 reply; 9+ messages in thread
From: Francis Moreau @ 2009-03-10 13:47 UTC (permalink / raw)
  To: help-gnu-emacs

On Mar 9, 11:53 am, Richard Riley <rileyrg...@gmail.com> wrote:
>
> I am interested in the requirement here. Do you really go to the last
> article in a thread? If so, a natural "first step" in reading a thread?
> Would you really order a thread so latest article is first? It strikes
> me as very unusual behaviour :-;

Well consider you have the following thread:

  o
  +->
   |  +->
   |     +->
   |
   +->
      +->
         +->
          |
         +->
            +->
                ....
                   +->  <latest article>

And you want to reply to the latest article. How do you move to it ?
Of course you can move to it with various thread commands but not in
one shot.

> Still, the wonderful Gnus can be moulded to all tastes.

yes that's true, one thing that makes me still using gnus. Although
I don't speak elisp yet ;)

 But it has a high priority in my todo list.


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

* Re: Gnus: moving to the latest article in a thread
  2009-03-10 13:47       ` Francis Moreau
@ 2009-03-10 14:17         ` Richard Riley
  2009-03-10 15:41           ` Francis Moreau
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Riley @ 2009-03-10 14:17 UTC (permalink / raw)
  To: help-gnu-emacs

Francis Moreau <francis.moro@gmail.com> writes:

> On Mar 9, 11:53 am, Richard Riley <rileyrg...@gmail.com> wrote:
>>
>> I am interested in the requirement here. Do you really go to the last
>> article in a thread? If so, a natural "first step" in reading a thread?
>> Would you really order a thread so latest article is first? It strikes
>> me as very unusual behaviour :-;
>
> Well consider you have the following thread:
>
>   o
>   +->
>    |  +->
>    |     +->
>    |
>    +->
>       +->
>          +->
>           |
>          +->
>             +->
>                 ....
>                    +->  <latest article>
>
> And you want to reply to the latest article. How do you move to it ?

Well, true, but normally one reads all (non filtered) replies in a
thread before replying to a last one - otherwise you might be rehashing
previous replies.


> Of course you can move to it with various thread commands but not in
> one shot.

It's strange. I just cant visualise a need to go to last post regardless
of the content of the previous ones in order to reply. If one wanted to
reply then presumably one had already read it in which case you are
already on that article. Still, if we all worked the same way life would
be pretty boring.

>
>> Still, the wonderful Gnus can be moulded to all tastes.
>
> yes that's true, one thing that makes me still using gnus. Although
> I don't speak elisp yet ;)
>
>  But it has a high priority in my todo list.

It does help. I have a little and it can be very useful of course!

-- 
 important and urgent problems of the technology of today are no longer the satisfactions of the primary needs or of archetypal wishes, but the reparation of the evils and damages by the technology of yesterday.  ~Dennis Gabor, Innovations:  Scientific, Technological and Social, 1970


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

* Re: Gnus: moving to the latest article in a thread
  2009-03-10 14:17         ` Richard Riley
@ 2009-03-10 15:41           ` Francis Moreau
  2009-03-10 19:41             ` Richard Riley
  0 siblings, 1 reply; 9+ messages in thread
From: Francis Moreau @ 2009-03-10 15:41 UTC (permalink / raw)
  To: help-gnu-emacs

On Mar 10, 3:17 pm, Richard Riley <rileyrg...@gmail.com> wrote:
> Francis Moreau <francis.m...@gmail.com> writes:
>>
> > And you want to reply to the latest article. How do you move to it ?
>
> Well, true, but normally one reads all (non filtered) replies in a
> thread before replying to a last one - otherwise you might be rehashing
> previous replies.

It just mean that I read the whole thing, then digest what I just
read, do some boring work, oh dear it's high time to lunch. Several
hours may past, then I suddenly have time to replies to the thread. So
now I just want to go to the latest one without searching for it (that
can be quite annoying when the thread is big).


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

* Re: Gnus: moving to the latest article in a thread
  2009-03-10 15:41           ` Francis Moreau
@ 2009-03-10 19:41             ` Richard Riley
  0 siblings, 0 replies; 9+ messages in thread
From: Richard Riley @ 2009-03-10 19:41 UTC (permalink / raw)
  To: help-gnu-emacs

Francis Moreau <francis.moro@gmail.com> writes:

> On Mar 10, 3:17 pm, Richard Riley <rileyrg...@gmail.com> wrote:
>> Francis Moreau <francis.m...@gmail.com> writes:
>>>
>> > And you want to reply to the latest article. How do you move to it ?
>>
>> Well, true, but normally one reads all (non filtered) replies in a
>> thread before replying to a last one - otherwise you might be rehashing
>> previous replies.
>
> It just mean that I read the whole thing, then digest what I just
> read, do some boring work, oh dear it's high time to lunch. Several
> hours may past, then I suddenly have time to replies to the thread. So
> now I just want to go to the latest one without searching for it (that
> can be quite annoying when the thread is big).

And potentially more annoying to others if you then reply to the last
one which is now 20 replies later than the last one you read.



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

* Re: Gnus: moving to the latest article in a thread
  2009-03-08 13:40 ` Reiner Steib
  2009-03-09  9:01   ` Francis Moreau
@ 2009-03-11  1:11   ` Ralf Wachinger
  1 sibling, 0 replies; 9+ messages in thread
From: Ralf Wachinger @ 2009-03-11  1:11 UTC (permalink / raw)
  To: help-gnu-emacs

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


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

end of thread, other threads:[~2009-03-11  1:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.