From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7981 invoked from network); 11 Sep 2021 04:04:57 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 11 Sep 2021 04:04:57 -0000 Received: from localhost ([::1]:60410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOuG7-0000G3-0X for ml@inbox.vuxu.org; Sat, 11 Sep 2021 00:04:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOuG1-0000Fs-Tw for info-gnus-english@gnu.org; Sat, 11 Sep 2021 00:04:49 -0400 Received: from ciao.gmane.io ([116.202.254.214]:58454) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOuFy-0000Cs-7J for info-gnus-english@gnu.org; Sat, 11 Sep 2021 00:04:49 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mOuFu-0006BI-SX for info-gnus-english@gnu.org; Sat, 11 Sep 2021 06:04:42 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: info-gnus-english@gnu.org From: "Roland Winkler" Subject: Re: synchronizing gnus sessions on multiple computers Date: Fri, 10 Sep 2021 23:04:35 -0500 Message-ID: <878s03lpv0.fsf@gnu.org> References: <875yv9nxnn.fsf@gnu.org> <87pmtgn106.fsf@t14.reltub.ca> <87czpgku8w.fsf@gnu.org> <87k0joqew2.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Cancel-Lock: sha1:k96+DC+E++idzsujpWsVNJtjP9A= Received-SPF: pass client-ip=116.202.254.214; envelope-from=gegu-info-gnus-english@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: "info-gnus-english" On Fri, Sep 10 2021, Eric Abrahamsen wrote: > "Roland Winkler" 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.