unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51052: 27.2; gnus-save-newsrc-file-last-timestamp not cleared when quitting gnus
@ 2021-10-06  4:24 Roland Winkler
  2021-10-06  9:19 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Roland Winkler @ 2021-10-06  4:24 UTC (permalink / raw)
  To: 51052


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)






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#51052: 27.2; gnus-save-newsrc-file-last-timestamp not cleared when quitting gnus
  2021-10-06  4:24 bug#51052: 27.2; gnus-save-newsrc-file-last-timestamp not cleared when quitting gnus Roland Winkler
@ 2021-10-06  9:19 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-10-06  9:19 UTC (permalink / raw)
  To: Roland Winkler; +Cc: 51052

"Roland Winkler" <winkler@gnu.org> writes:

> - 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 tried following the gnus-save-newsrc-file-last-timestamp logic, and I
think that makes sense, so I've now made gnus-clear-system clear that
variable, too (in Emacs 29).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-06  9:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-06  4:24 bug#51052: 27.2; gnus-save-newsrc-file-last-timestamp not cleared when quitting gnus Roland Winkler
2021-10-06  9:19 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).