From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79621 Path: news.gmane.org!not-for-mail From: Dave Abrahams Newsgroups: gmane.emacs.gnus.general Subject: Re: go to the bottom line when entering a group with all read articles Date: Mon, 08 Aug 2011 10:34:45 -0400 Message-ID: References: <87wreo60t3.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312814121 32211 80.91.229.12 (8 Aug 2011 14:35:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2011 14:35:21 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27917@lists.math.uh.edu Mon Aug 08 16:35:13 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QqQv7-0007RO-VG for ding-account@gmane.org; Mon, 08 Aug 2011 16:35:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QqQv5-00056G-Tv; Mon, 08 Aug 2011 09:35:07 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QqQv4-00055t-DS for ding@lists.math.uh.edu; Mon, 08 Aug 2011 09:35:06 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QqQv2-0007zV-Fp for ding@lists.math.uh.edu; Mon, 08 Aug 2011 09:35:06 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QqQuz-0002Do-0p for ding@gnus.org; Mon, 08 Aug 2011 16:35:01 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QqQuv-0007My-Dm for ding@gnus.org; Mon, 08 Aug 2011 16:34:57 +0200 Original-Received: from 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com ([207.172.223.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Aug 2011 16:34:57 +0200 Original-Received: from dave by 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Aug 2011 16:34:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.3 (darwin) Cancel-Lock: sha1:4Z3kNh244DrqNTPIStel9EJAFN0= X-Spam-Score: -5.7 (-----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79621 Archived-At: 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