Gnus development mailing list
 help / color / mirror / Atom feed
From: pmlists@free.fr (Peter Münster)
To: ding@gnus.org
Subject: Re: goto-group
Date: Mon, 02 May 2011 09:40:08 +0200	[thread overview]
Message-ID: <87r58hv9d3.fsf@micropit.couberia.bzh> (raw)
In-Reply-To: <m3iptuh0jb.fsf@quimbies.gnus.org>

Lars Magne Ingebrigtsen <larsi@gnus.org> 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




  reply	other threads:[~2011-05-02  7:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-18 12:42 goto-group Peter Münster
2011-05-01 16:02 ` goto-group Lars Magne Ingebrigtsen
2011-05-02  7:40   ` Peter Münster [this message]
2011-05-02  8:49     ` goto-group Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r58hv9d3.fsf@micropit.couberia.bzh \
    --to=pmlists@free.fr \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).