From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78651 Path: news.gmane.org!not-for-mail From: pmlists@free.fr (Peter =?utf-8?Q?M=C3=BCnster?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: goto-group Date: Mon, 02 May 2011 09:40:08 +0200 Organization: Micropit Message-ID: <87r58hv9d3.fsf@micropit.couberia.bzh> References: <878vv7wx1q.fsf@micropit.couberia.bzh> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1304322109 5534 80.91.229.12 (2 May 2011 07:41:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 May 2011 07:41:49 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M26953@lists.math.uh.edu Mon May 02 09:41:46 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 1QGnlI-0005p7-C9 for ding-account@gmane.org; Mon, 02 May 2011 09:41:44 +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 1QGnkB-0006KN-9u; Mon, 02 May 2011 02:40:35 -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 1QGnk9-0006KB-33 for ding@lists.math.uh.edu; Mon, 02 May 2011 02:40:33 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QGnk4-0000qG-7n for ding@lists.math.uh.edu; Mon, 02 May 2011 02:40:32 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QGnk1-0007FU-2G for ding@gnus.org; Mon, 02 May 2011 09:40:25 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QGnk0-0005Am-Mw for ding@gnus.org; Mon, 02 May 2011 09:40:24 +0200 Original-Received: from arennes-651-1-195-207.w90-25.abo.wanadoo.fr ([90.25.38.207]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2011 09:40:24 +0200 Original-Received: from pmlists by arennes-651-1-195-207.w90-25.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2011 09:40:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: arennes-651-1-195-207.w90-25.abo.wanadoo.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:LpKxNgHd5NXIDggW2z0aPp+cFTY= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78651 Archived-At: Lars Magne Ingebrigtsen writes: > pmlists@free.fr (Peter Münster) writes: > >> Here is a little function, that allows one to switch to another group >> from any gnus buffer (group, summary or article): >> (defvar gnus-current-goto-group nil) >> (defun gnus-goto-group () > > This is what `gnus-fetch-group' does, isn't it? Indeed, thanks! I had been looking only for "goto", "switch", "select", etc... Now I use this one, because when switching from one group to another, I want to close the old group and rescan the groups: --8<---------------cut here---------------start------------->8--- (defun my-goto-group () (interactive) (setq to-group (gnus-group-completing-read nil nil nil (gnus-group-name-at-point) nil gnus-newsgroup-name)) (gnus-summary-exit) (gnus-group-get-new-news) (gnus-group-read-group nil t to-group)) --8<---------------cut here---------------end--------------->8--- I suppose, that this is a very personal need, that wouldn't make sense to include into gnus...?! -- Peter