From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.bugs Subject: Re: change-log-redate Date: Fri, 15 Jun 2007 22:54:57 +1200 Message-ID: <18034.28673.345234.364756@kahikatea.snap.net.nz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1181904919 10463 80.91.229.12 (15 Jun 2007 10:55:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Jun 2007 10:55:19 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: John Darrington Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 15 12:55:16 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hz9SU-0007Xx-MW for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jun 2007 12:55:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hz9ST-0004BL-Sr for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jun 2007 06:55:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hz9SR-0004BG-D0 for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2007 06:55:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hz9SQ-0004B4-M8 for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2007 06:55:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hz9SQ-0004B1-HL for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2007 06:55:10 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hz9SP-0001L6-Sb for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2007 06:55:10 -0400 Original-Received: from kahikatea.snap.net.nz (115.60.255.123.dynamic.snap.net.nz [123.255.60.115]) by viper.snap.net.nz (Postfix) with ESMTP id 029663D9E2B; Fri, 15 Jun 2007 22:55:07 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 749028FBF6; Fri, 15 Jun 2007 22:55:01 +1200 (NZST) In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.1.50.1 X-detected-kernel: Linux 2.4-2.6 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15886 Archived-At: > Running change-log-redate on a ChangeLog file which > contains strings like: > > Tue Jan 9 07:20:05 WST 2007 John Darrington > > Changes them to > > 1999-11-30 WST 2007 John Darrington > > which is not what I expected. Yes this fails in Emacs 22/CVS Emacs too. I don't see how this could ever have worked as it doesn't seem to match on the timezone or year - perhaps you're the first person to ever use it. I could change it to work for your case but that might break the case that the original author tested it on. Why not just use 'C-x 4 a' (add-change-log-entry-other-window) which gives the new style date format. This just gives the date. I've not seen hours/mins/seconds in a Changelog as you can get these from cvs log, if needed, I presume. Perhaps we should remove change-log-redate as it appears broken. -- Nick http://www.inet.net.nz/~nickrob