From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs Subject: bug#51053: 27.2; gnus-save-newsrc-file-last-timestamp not cleared when quitting gnus Date: Tue, 5 Oct 2021 23:26:19 -0500 Message-ID: <9579.51029.629851.24925@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35204"; mail-complaints-to="usenet@ciao.gmane.io" To: 51053@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 06 06:27:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXyWM-0008va-EE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Oct 2021 06:27:10 +0200 Original-Received: from localhost ([::1]:44444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXyWL-0001xh-He for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Oct 2021 00:27:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXyWE-0001xF-Uw for bug-gnu-emacs@gnu.org; Wed, 06 Oct 2021 00:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58898) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXyWE-0000NI-NN for bug-gnu-emacs@gnu.org; Wed, 06 Oct 2021 00:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXyWE-0003C1-JK; Wed, 06 Oct 2021 00:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Roland Winkler" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 06 Oct 2021 04:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51053 X-GNU-PR-Package: emacs,gnus X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163349439012224 (code B ref -1); Wed, 06 Oct 2021 04:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Oct 2021 04:26:30 +0000 Original-Received: from localhost ([127.0.0.1]:42211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXyVh-0003B6-N1 for submit@debbugs.gnu.org; Wed, 06 Oct 2021 00:26:29 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:47696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXyVg-0003Az-CN for submit@debbugs.gnu.org; Wed, 06 Oct 2021 00:26:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXyVe-0001oc-9G for bug-gnu-emacs@gnu.org; Wed, 06 Oct 2021 00:26:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38048) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXyVe-0008CE-1f for bug-gnu-emacs@gnu.org; Wed, 06 Oct 2021 00:26:26 -0400 Original-Received: from [2600:1700:5650:f790::42] (port=41160 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXyVb-0003nR-Tg for bug-gnu-emacs@gnu.org; Wed, 06 Oct 2021 00:26:25 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:216515 Archived-At: I need to synchronize my gnus sessions across multiple machines using rsync. That seems to work mostly as expected within a running emacs session if I quit gnus, rsync all files and restart gnus. In particular, gnus will then use the .newsrc.eld file from the other machine. But gnus-clear-system does not clear gnus-save-newsrc-file-last-timestamp. So when gnus wants to save again the .newsrc.eld file, it compares the timestamp of the file on disk against the old timestamp of the old file from the previous gnus session. That old file is already gone anyway. - Instead of clearing gnus-save-newsrc-file-last-timestamp when quitting gnus, could it also make sense to (re)set this variable whenever .newsrc.eld is read? (I am new to the world of gnus. I hope I am not missing yet more obstacles for what I would like to achieve.) In GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2021-06-07 built on regnitz Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster)