From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/77415 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: function: find group level Date: Tue, 01 Mar 2011 03:12:28 +0800 Message-ID: <87sjv89dnn.fsf@ericabrahamsen.net> References: <871v2uyt94.fsf@ericabrahamsen.net> <87aahg0z6o.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1298920390 24221 80.91.229.12 (28 Feb 2011 19:13:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2011 19:13:10 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M25739@lists.math.uh.edu Mon Feb 28 20:12:59 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 1Pu8Wg-0006uP-Iv for ding-account@gmane.org; Mon, 28 Feb 2011 20:12:58 +0100 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 1Pu8WV-0003X4-Si; Mon, 28 Feb 2011 13:12:47 -0600 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 1Pu8WT-0003Wh-Vf for ding@lists.math.uh.edu; Mon, 28 Feb 2011 13:12:45 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Pu8WT-0002Lw-5j for ding@lists.math.uh.edu; Mon, 28 Feb 2011 13:12:45 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Pu8WS-0006CQ-Ew for ding@gnus.org; Mon, 28 Feb 2011 20:12:44 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pu8WP-0006mK-G1 for ding@gnus.org; Mon, 28 Feb 2011 20:12:41 +0100 Original-Received: from 114.142.151.120 ([114.142.151.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Feb 2011 20:12:41 +0100 Original-Received: from eric by 114.142.151.120 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Feb 2011 20:12:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 114.142.151.120 User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:GMXwBOwqksuPj0qkAQCYB53EiHw= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:77415 Archived-At: On Tue, Mar 01 2011, Ted Zlatanov wrote: > On Sun, 27 Feb 2011 12:51:51 +0800 Eric Abrahamsen wrote: > > EA> I'm trying to write a function to set bbdb/news-auto-create-p based on > EA> the subscription level of each group, to be put in > EA> gnus-select-group-hook. > > EA> I've gone tramping through some of the source, and can't for the life of > EA> me figure out how to get the subscription level of the group that's > EA> being entered. Surely there's a utility function for this? > > Does this work for you? > > (gnus-group-level gnus-newsgroup-name) Very much so, thank you! I've got plenty to learn about the gnus source code. Eric