Gnus development mailing list
 help / color / mirror / Atom feed
From: James Cloos <cloos@jhcloos.com>
To: Harry Putnam <reader@newsguy.com>
Cc: ding@gnus.org
Subject: Re: Constantly having to use `^' for server buffer to close then open server
Date: Thu, 01 Oct 2020 13:43:12 -0400	[thread overview]
Message-ID: <m3tuvd266n.fsf@carbon.jhcloos.org> (raw)
In-Reply-To: <87v9fukscq.fsf@local.lan> (Harry Putnam's message of "Thu, 01 Oct 2020 09:07:01 -0400")

I added this to my .gnus some years ago:

(defun jimc-group-select-group-with-fresh-imapd (&optional all)
  "select the group with a fresh imapd process."
  (interactive "P")
  (gnus-server-close-server "nnimap:MYSERVER")
  (when (and (eobp) (not (gnus-group-group-name)))
    (forward-line -1))
  (gnus-group-read-group all t))

(add-hook 'gnus-group-mode-hook
          (lambda () (local-set-key "\C-ci" 'jimc-group-select-group-with-fresh-imapd)))

as one can see it is specific for my needs; s// MYSERVER with your
nnimap server name...

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 0x997A9F17ED7DAEA6


      parent reply	other threads:[~2020-10-01 17:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-01 13:07 Harry Putnam
2020-10-01 15:06 ` Tim Landscheidt
2020-10-01 16:02   ` Eric Abrahamsen
2020-10-01 17:40     ` Adam Sjøgren
2020-10-01 18:08       ` Eric Abrahamsen
2020-10-01 18:22         ` Adam Sjøgren
2020-10-01 17:43 ` James Cloos [this message]

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=m3tuvd266n.fsf@carbon.jhcloos.org \
    --to=cloos@jhcloos.com \
    --cc=ding@gnus.org \
    --cc=reader@newsguy.com \
    /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).