Gnus development mailing list
 help / color / mirror / Atom feed
* go to the bottom line when entering a group with all read articles
@ 2011-08-03  1:03 jidanni
  2011-08-03  5:09 ` Katsumi Yamaoka
  0 siblings, 1 reply; 4+ messages in thread
From: jidanni @ 2011-08-03  1:03 UTC (permalink / raw)
  To: ding

How can I... no never mind... I wish I

could have guns go to the bottom line when it enters a group full of
already read articles, not the top.

Why can't there be a variable for this? I recall we recently discussed
it. But let's discuss it again.

When you think about it, it should really be the default.

Enter the group with 48/50 read.
Then again with 49/50 read.
Then again with 50/50 read.
Whammo, it flies back to the top.



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

* Re: go to the bottom line when entering a group with all read articles
  2011-08-03  1:03 go to the bottom line when entering a group with all read articles jidanni
@ 2011-08-03  5:09 ` Katsumi Yamaoka
  2011-08-08  3:26   ` jidanni
  0 siblings, 1 reply; 4+ messages in thread
From: Katsumi Yamaoka @ 2011-08-03  5:09 UTC (permalink / raw)
  To: ding

jidanni@jidanni.org wrote:
> Why can't there be a variable for this?

Isn't there it already?

(setq gnus-auto-select-subject
      (lambda nil
	(unless (gnus-summary-first-unseen-or-unread-subject)
	  (goto-char (point-max))
	  (forward-line -1)
	  (gnus-summary-position-point))))



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

* Re: go to the bottom line when entering a group with all read articles
  2011-08-03  5:09 ` Katsumi Yamaoka
@ 2011-08-08  3:26   ` jidanni
  2011-08-08 14:34     ` Dave Abrahams
  0 siblings, 1 reply; 4+ messages in thread
From: jidanni @ 2011-08-08  3:26 UTC (permalink / raw)
  To: yamaoka; +Cc: ding

OK, I figured out how to do what I want.
It is to make up gnus' "many 'first', lack of 'last'" problem.

(defun jidanni-gnus-summary-first-unseen-or-last-subject ()
  "Place the point on the subject line of the first unseen article.
If all article have been seen, on the subject line of the last article."
  (interactive)
  (prog1
      (unless
	  (when (gnus-summary-first-subject nil nil t)
	    (gnus-summary-show-thread)
	    (gnus-summary-first-subject nil nil t))
	(goto-char (point-max))
	(forward-line -1))
    (gnus-summary-position-point)))
(setq gnus-auto-select-subject 'jidanni-gnus-summary-first-unseen-or-last-subject)



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

* Re: go to the bottom line when entering a group with all read articles
  2011-08-08  3:26   ` jidanni
@ 2011-08-08 14:34     ` Dave Abrahams
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Abrahams @ 2011-08-08 14:34 UTC (permalink / raw)
  To: ding


on Sun Aug 07 2011, jidanni-AT-jidanni.org wrote:

> OK, I figured out how to do what I want.
> It is to make up gnus' "many 'first', lack of 'last'" problem.
>
> (defun jidanni-gnus-summary-first-unseen-or-last-subject ()
>   "Place the point on the subject line of the first unseen article.
> If all article have been seen, on the subject line of the last article."
>   (interactive)
>   (prog1
>       (unless
> 	  (when (gnus-summary-first-subject nil nil t)
> 	    (gnus-summary-show-thread)
> 	    (gnus-summary-first-subject nil nil t))
> 	(goto-char (point-max))
> 	(forward-line -1))
>     (gnus-summary-position-point)))
> (setq gnus-auto-select-subject 'jidanni-gnus-summary-first-unseen-or-last-subject)

Awesome; I stole your code!  I agree with you that it should be the default.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com




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

end of thread, other threads:[~2011-08-08 14:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-03  1:03 go to the bottom line when entering a group with all read articles jidanni
2011-08-03  5:09 ` Katsumi Yamaoka
2011-08-08  3:26   ` jidanni
2011-08-08 14:34     ` Dave Abrahams

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