From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85751 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: check mtime of newsrc.eld before saving it Date: Thu, 05 Feb 2015 05:59:43 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87k2zwwrmo.fsf@lifelogs.com> References: <87twzdc86f.fsf@building.gnus.org> Reply-To: ding@gnus.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423134008 4208 80.91.229.3 (5 Feb 2015 11:00:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2015 11:00:08 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33990@lists.math.uh.edu Thu Feb 05 12:00:08 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YJKAJ-0003It-Ad for ding-account@gmane.org; Thu, 05 Feb 2015 12:00:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1YJKAC-00017Z-J8; Thu, 05 Feb 2015 05:00:00 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YJKAB-00017H-6v for ding@lists.math.uh.edu; Thu, 05 Feb 2015 04:59:59 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.84) (envelope-from ) id 1YJKA6-0005zN-Pm for ding@lists.math.uh.edu; Thu, 05 Feb 2015 04:59:59 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1YJKA5-00058b-BF for ding@gnus.org; Thu, 05 Feb 2015 11:59:53 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YJKA3-0003As-Hg for ding@gnus.org; Thu, 05 Feb 2015 11:59:51 +0100 Original-Received: from c-98-229-61-72.hsd1.ma.comcast.net ([98.229.61.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Feb 2015 11:59:51 +0100 Original-Received: from tzz by c-98-229-61-72.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Feb 2015 11:59:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 18 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-61-72.hsd1.ma.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:8dAUEFHrmIH6e/mSx97saHzZguI= X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85751 Archived-At: On Tue, 27 Jan 2015 12:40:40 +1100 Lars Ingebrigtsen wrote: >> + (error "Couldn't save %s because it was updated" checkfile)))) LI> this should be a `y-or-n-p' instead, I think. That would make Gnus' LI> behaviour here be pretty consistent with how Emacs otherwise behaves LI> when writing data to files. I looked and there is a `y-or-n-p' just above. The newsrc save flow is: * if the timestamp is OK, proceed * if the timestamp is newer, `y-or-n-p' to save * if yes, proceed (overwriting) * if no, error out How should it work instead? Ted