From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66198 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.gnus.general Subject: gnus-group-current-level ? Date: Thu, 24 Jan 2008 04:54:18 +0000 Message-ID: <87r6g73jt1.fsf@bzg.ath.cx> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201150558 17631 80.91.229.12 (24 Jan 2008 04:55:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jan 2008 04:55:58 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M14689@lists.math.uh.edu Thu Jan 24 05:56:17 2008 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 1JHu8O-0007FQ-83 for ding-account@gmane.org; Thu, 24 Jan 2008 05:56:16 +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 1JHu6g-0008NY-7P; Wed, 23 Jan 2008 22:54:30 -0600 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 1JHu6e-0008NH-S5 for ding@lists.math.uh.edu; Wed, 23 Jan 2008 22:54:28 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JHu6Y-0002ql-PQ for ding@lists.math.uh.edu; Wed, 23 Jan 2008 22:54:28 -0600 Original-Received: from fg-out-1718.google.com ([72.14.220.154]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JHu6a-0003Y7-00 for ; Thu, 24 Jan 2008 05:54:24 +0100 Original-Received: by fg-out-1718.google.com with SMTP id 22so105485fge.23 for ; Wed, 23 Jan 2008 20:54:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:subject:user-agent:date:message-id:mime-version:content-type:sender; bh=03OjGeKsck3s4G/HpbLG1knEpAxNRulzvzyD7evSU7o=; b=p83uxFBU/blX0OqWhiDoqtUogiYkj18Vi9CZEqHVmy5nYpvU+Px/FbZiaH04jxf7gIPdYYrO9dEXmqPY4KLB1zPpUdXb5c2iXDTxb+DopDwxb5crq4HnbCUwYViqLdvLa8PrA6FxAOwJbqdAkDfYBtm5I7vNBKWkSMP+V0z5RiI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:user-agent:date:message-id:mime-version:content-type:sender; b=hEiiellOlJhLSlNdAiHKKZzKHaVbCtFojl7QOop6ZcltCT0WkFwy/008GZFBes1N1mwb1SH/np7GRH30dsdWyZt9v/2NEYj3UgZiBtaNiurq2TZ6Fu6DVbPB5xM6rx/qlNWENDF1mfhXLSwWynDwbvhQIgLx/tNF0DAHljdf4mY= Original-Received: by 10.82.187.2 with SMTP id k2mr432088buf.16.1201150460696; Wed, 23 Jan 2008 20:54:20 -0800 (PST) Original-Received: from bzg.ath.cx ( [86.134.200.156]) by mx.google.com with ESMTPS id d2sm351080nfc.11.2008.01.23.20.54.19 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 23 Jan 2008 20:54:19 -0800 (PST) Original-Received: by bzg.ath.cx (Postfix, from userid 1000) id F410D1593AB; Thu, 24 Jan 2008 04:54:18 +0000 (GMT) User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66198 Archived-At: Hi, I'm trying to write a function that will fetch the current group level and increment it by one before redisplaying. Basically something like this: (define-key gnus-group-mode-map (kbd "C-^") (lambda() (gnus (1+ gnus-group-current-level)))) ... but of course, gnus-group-current-level doesn't exist. Is there a way around? Any ideas? Thanks! PS: I want to do this because my group levels reflect their importance. When I process my inboxes, I first check for 1, then 2 [staying in 2 at work], then 3, etc. Trying to avoid distraction. -- Bastien