Gnus development mailing list
 help / color / mirror / Atom feed
From: "Øyvind Stegard" <oyvind.stegard@ifi.uio.no>
To: ding@gnus.org
Subject: Re: put me at the bottom of the *Summary* buffer upon entrance, not the top, if there are no new messages
Date: Wed, 17 Nov 2010 13:21:03 +0100	[thread overview]
Message-ID: <87hbfgta34.fsf.rednorrock@ifi.uio.no> (raw)
In-Reply-To: <87bp5oe02u.fsf@jidanni.org>

jidanni@jidanni.org writes:

> Gentlemen(99%), there is a behavior upon entering the Summary buffer:
> If there are any new messages, the cursor is placed on them,
> else the cursor is placed at the top. I want it placed at the bottom in
> that case, but (info "(gnus) Various Summary Stuff") doesn't say how,
> nor does (info "(gnus) Summary Maneuvering").

I put this in my ~/.gnus to get behaviour somewhat like you describe:

;; Set point on latest (possibly old) article, if entering summary
;; buffer and there are no new unseen/unread articles, otherwise goto
;; first unseen or unread. [For hints, see gnus-sum.el.]
(setq gnus-auto-select-subject
      (lambda()
        (if (and (not gnus-newsgroup-unreads)
                 (not (null gnus-newsgroup-data)))
            (progn
              (goto-char (gnus-data-pos (car (last gnus-newsgroup-data))))
              (gnus-summary-position-point))
          (gnus-summary-first-unseen-or-unread-subject))))


(using Gnus 5.13 bundled with Emacs 23.2.1)

Regards,
Øyvind
-- 
< Øyvind Stegard
 < http://stegard.net/




  reply	other threads:[~2010-11-17 12:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-17 10:06 jidanni
2010-11-17 12:21 ` Øyvind Stegard [this message]
2011-03-08  4:42   ` jidanni
2011-03-15 16:40     ` Lars Magne Ingebrigtsen
2011-03-15 20:11       ` jidanni
2011-03-15 20:15         ` Antoine Levitt
2011-03-15 20:54           ` Ted Zlatanov

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=87hbfgta34.fsf.rednorrock@ifi.uio.no \
    --to=oyvind.stegard@ifi.uio.no \
    --cc=ding@gnus.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.
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).