From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79619 Path: news.gmane.org!not-for-mail From: jidanni@jidanni.org 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 11:26:32 +0800 Message-ID: <87wreo60t3.fsf@jidanni.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312779468 27836 80.91.229.12 (8 Aug 2011 04:57:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2011 04:57:48 +0000 (UTC) Cc: ding@gnus.org To: yamaoka@jpl.org Original-X-From: ding-owner+M27914@lists.math.uh.edu Mon Aug 08 06:57:41 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 1QqHuH-0007BW-Ch for ding-account@gmane.org; Mon, 08 Aug 2011 06:57:41 +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 1QqHtG-0002cW-KD; Sun, 07 Aug 2011 23:56:38 -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 1QqHtD-0002c1-Fr for ding@lists.math.uh.edu; Sun, 07 Aug 2011 23:56:35 -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 1QqHtC-0005zr-Mp for ding@lists.math.uh.edu; Sun, 07 Aug 2011 23:56:35 -0500 Original-Received: from caiajhbdcaib.dreamhost.com ([208.97.132.81] helo=homiemail-a6.g.dreamhost.com) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QqHtB-00052M-4H for ding@gnus.org; Mon, 08 Aug 2011 06:56:33 +0200 Original-Received: from homiemail-a6.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a6.g.dreamhost.com (Postfix) with ESMTP id BD086598074; Sun, 7 Aug 2011 21:56:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=jidanni.org; h=from:to:cc:subject :references:date:message-id:mime-version:content-type; q=dns; s= jidanni.org; b=X2ZZAx4wOg8GufcUFQqKfjLyYESNUWpF/J9IF4vkKapMPNJ91 +JfVHc54PemnJaRvjhbz+pqmLfi6teJqfmwTpIzecf3K3Aa6gVMvV8tQGZM3+b3y En3vKjm079XnHTmHdcmOGEAsCEk1y6jrGws1QoUmp5cs62h/2HSmdPlSyg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=XoXv2jZ35si/GQ582zS9qs9Plcg=; b=Yv01gGydqFP5y k8uzWkPM47406Ofoaload/r2XfRMZxiSeLvIjUOQ0PdM8tk6Olfi2oL7B23nFnN7 /JJayv3H7Cp8K2gNFPDitWW7ZCz1SMYc+shydF/YQC6MWMoIjc8NZXHqQal+5fDU kVN4rgVWWletC/qv8zT9N0Pk9tJYLM= Original-Received: from jidanni.org (218-163-6-13.dynamic.hinet.net [218.163.6.13]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a6.g.dreamhost.com (Postfix) with ESMTPSA id 6120359806C; Sun, 7 Aug 2011 21:56:31 -0700 (PDT) X-Spam-Score: -2.0 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79619 Archived-At: 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)