Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: "Roland Winkler" <winkler@gnu.org>
To: info-gnus-english@gnu.org
Subject: Re: synchronizing gnus sessions on multiple computers
Date: Fri, 10 Sep 2021 23:04:35 -0500	[thread overview]
Message-ID: <878s03lpv0.fsf@gnu.org> (raw)
In-Reply-To: <87k0joqew2.fsf@ericabrahamsen.net>

On Fri, Sep 10 2021, Eric Abrahamsen wrote:
> "Roland Winkler" <winkler@gnu.org> writes:
>> -- I realized that testing all this does not require two different
>> machines.  But two instances of emacs running on one computer
>> effectively give the same situation to play with.  It seems that a
>> running gnus session does not warn the user that another emacs instance
>> has fiddled with files such as .newsrc.eld.  Is this true?
>
> Yes, the .newsrc.eld file only gets written when you save Gnus ("s" in
> the *Group* buffer), and I would absolutely not try to update files for
> a Gnus that's still running, it will not handle that gracefully. It
> should, however, be enough to shut Gnus down first (you can see the
> `gnus-clear-system' function to see what happens then), rsync, then
> restart Gnus.

...It seems that the command gnus-group-exit (bound to q in the group
buffer) is really doing the complete job.  This command also calls
gnus-clear-system, besides other things.

The gnus info pages note repeatedly

  Gnus gives you all the opportunity you could possibly want for
  shooting yourself in the foot.

So I'll have to set up things such that a careless rsync cannot do too
much damage.  I guess when switching from machine A to machine B it is
always machine A (i.e., the source for rsync) where I should run
gnus-group-exit which will also flush everything to disk that needs to
be rsync'ed to machine B.  When rsync has done its job (A -> B), I can
start working on B.  Then, when I am done working on B, I can run
gnus-group-exit on B, rsync B -> A, and continue working on A...

Sounds like a plan.



  parent reply	other threads:[~2021-09-11  4:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-09 23:21 Roland Winkler
2021-09-10  4:46 ` Pankaj Jangid
2021-09-10 11:06   ` Leo Butler
2021-09-10 19:45     ` Bob Newell
2021-09-10 21:15       ` Roland Winkler
2021-09-10 21:50         ` Eric Abrahamsen
2021-09-10 22:39           ` Bob Newell
2021-09-11  4:04           ` Roland Winkler [this message]
2021-10-06  4:28           ` Roland Winkler
2021-10-06 14:42             ` Eric Abrahamsen
2021-09-11 16:07         ` Greg Farough
2021-09-12 18:30           ` Bob Newell
2021-09-12  4:47 ` James Thomas
2021-10-06  4:29   ` Roland Winkler
2021-10-09  4:00     ` James Thomas

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=878s03lpv0.fsf@gnu.org \
    --to=winkler@gnu.org \
    --cc=info-gnus-english@gnu.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).