From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64635 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.gnus.general Subject: Re: Exiting groups moves the cursor to next line Date: Mon, 14 May 2007 09:14:08 +1000 Organization: Bah Humbug Message-ID: <87bqgo1flr.fsf@zip.com.au> References: <87tzun798w.fsf@lrde.org> <878xbz6m9b.fsf@lrde.org> <87r6pog8qx.fsf@lrde.org> <87bqgqm5wd.fsf@lrde.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1179098183 8113 80.91.229.12 (13 May 2007 23:16:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 May 2007 23:16:23 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13145@lists.math.uh.edu Mon May 14 01:16:22 2007 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.50) id 1HnNIW-0000Ko-Ai for ding-account@gmane.org; Mon, 14 May 2007 01:16:16 +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 1HnNGg-0005sb-Gn; Sun, 13 May 2007 18:14:22 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1HnNGf-0005sG-7f for ding@lists.math.uh.edu; Sun, 13 May 2007 18:14:21 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1HnNGe-00064c-4N for ding@lists.math.uh.edu; Sun, 13 May 2007 18:14:21 -0500 Original-Received: from mailout1-7.pacific.net.au ([61.8.2.214] helo=mailout1.pacific.net.au) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1HnNGb-00062G-00 for ; Mon, 14 May 2007 01:14:18 +0200 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id F12375BFD84 for ; Mon, 14 May 2007 09:14:14 +1000 (EST) Original-Received: from localhost (ppp289B.dyn.pacific.net.au [61.8.40.155]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 5B45C27420 for ; Mon, 14 May 2007 09:14:14 +1000 (EST) Original-Received: from gg by localhost with local (Exim 4.67) (envelope-from ) id 1HnNGT-0003Ey-CV for ding@gnus.org; Mon, 14 May 2007 09:14:09 +1000 In-Reply-To: <87bqgqm5wd.fsf@lrde.org> (=?iso-8859-1?Q?Micha=EBl?= Cadilhac's message of "Sat, 12 May 2007 17:13:38 +0200") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64635 Archived-At: I've been using the exit command below for semi-smart advance. If reviewing an old group it doesn't advance, but in normal reading it does. "Old" means anything unsubscribed (I keep bits of occasional interest in unsubscribed level), or anything with no unread articles (which is not necessarily old, but is certainly a case of going back to revisit). I guess it's personal preference, but maybe there'd be a clean way to have a notion of "reading in sequence" versus revisiting, and only advance for the former. (defun my-gnus-summary-exit (&optional temporary) "Like `gnus-summary-exit', but sometimes preserve point in *Group*." (interactive "P") (if (save-excursion (with-current-buffer "*Group*" (beginning-of-line) (looking-at "^ U\\|^. *0:"))) (my-gnus-summary-exit-nonext temporary) (gnus-summary-exit temporary))) (defun my-gnus-summary-exit-nonext (&optional temporary) "Like `gnus-summary-exit', but don't move in *Group*." (interactive "P") (let ((group gnus-newsgroup-name)) (gnus-summary-exit temporary) (gnus-summary-jump-to-group group)))