From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83104 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: How to alter behavior of 'gnus-summary-next-article' Date: Fri, 03 May 2013 19:41:05 -0700 Message-ID: <87haijii0u.fsf@ericabrahamsen.net> References: <87ip2za5yb.fsf@newsguy.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1367634990 26320 80.91.229.3 (4 May 2013 02:36:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 May 2013 02:36:30 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31370@lists.math.uh.edu Sat May 04 04:36:28 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UYSKm-0000xe-AF for ding-account@gmane.org; Sat, 04 May 2013 04:36:24 +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 1UYSJS-0000Yt-Co; Fri, 03 May 2013 21:35:02 -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 1UYSJP-0000Yc-Kp for ding@lists.math.uh.edu; Fri, 03 May 2013 21:34:59 -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 1UYSJN-0004Fb-VZ for ding@lists.math.uh.edu; Fri, 03 May 2013 21:34:59 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1UYSJM-0007vj-0t for ding@gnus.org; Sat, 04 May 2013 04:34:56 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UYSJK-00082D-6H for ding@gnus.org; Sat, 04 May 2013 04:34:54 +0200 Original-Received: from c-76-28-195-250.hsd1.wa.comcast.net ([76.28.195.250]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 May 2013 04:34:54 +0200 Original-Received: from eric by c-76-28-195-250.hsd1.wa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 May 2013 04:34:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-76-28-195-250.hsd1.wa.comcast.net User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:qvxd9qB+vfxL5kJNhwvQhbDgQow= X-Spam-Score: -4.5 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83104 Archived-At: Harry Putnam writes: > When opening a group and using gnus-summary-next-article ('N') to find > first unread gnus finds the message but then opens it too. I'd like to > just find the next new message but NOT open it. > > Is there an existing command that does that? If not how might I piece > together something that would allow me to do that with a minimal > key press? I don't think that anything like that is bound by default, but calling (gnus-summary-find-next t) in the summary buffer should do what you want. Also see gnus-summary-find-prev. You could wrap that in your own defun with an interactive declaration, and bind it to a key. Also there's the slightly higher-level gnus-summary-search-forward, which can feed into either of the previous functions (despite its name it goes both forward and back), and also search for specific subject lines. Yours, Eric