From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69894: 29.1; Icalendar export conflict with calendar iso date Date: Thu, 28 Mar 2024 11:53:31 +0200 Message-ID: <86edbuheck.fsf@gnu.org> References: <86ttl3rnkm.fsf@mailo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6080"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69894@debbugs.gnu.org To: RwN , Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 28 10:54:26 2024 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 1rpmSo-0001LO-2r for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Mar 2024 10:54:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpmSb-0000hA-7x; Thu, 28 Mar 2024 05:54:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpmSP-0000gf-VK for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 05:54:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rpmSP-00021V-Mw for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 05:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rpmSQ-0005L2-AK for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 05:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Mar 2024 09:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69894 X-GNU-PR-Package: emacs Original-Received: via spool by 69894-submit@debbugs.gnu.org id=B69894.171161962420411 (code B ref 69894); Thu, 28 Mar 2024 09:54:02 +0000 Original-Received: (at 69894) by debbugs.gnu.org; 28 Mar 2024 09:53:44 +0000 Original-Received: from localhost ([127.0.0.1]:39115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpmS8-0005J9-FV for submit@debbugs.gnu.org; Thu, 28 Mar 2024 05:53:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpmS6-0005Il-Nt for 69894@debbugs.gnu.org; Thu, 28 Mar 2024 05:53:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpmRz-0001vo-9D; Thu, 28 Mar 2024 05:53:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Qz9mQFj/kY7Z378EZjhbyXbV2FW4hRpLgrY4cXbnjzI=; b=JPMnq1RSRiMK nGRLM6nLveHaGZDp9ai3FxiZ2oLSZbnPomGTglRlc9D0Y3Ed0pt9iDSpoEiDQhpNjQAC61TkWpPlB 2zU6jCHS9Fm7zVEzgcTlw1W8xuFU/nAoI71QG8oIIK3deYtZ17rooM2ZnEb+W1Ssf5JnOF/0I6SNY W3j3mf1hX9N7R2C0C9K7rTa0Rt+2nQv2dHHvK95244P/vZTM2jI4mlU2QdKL6A4aP4PGgz0detjrd H0MKfYiQ0MOXmKzrAhS40VupTidr5hP+VjyFNo+h+qCaZBXycTJBT97774GXK6i0MKMy30t1gE7ve SHzF2xnVdZsOUfOcByGIoQ==; In-Reply-To: <86ttl3rnkm.fsf@mailo.com> (bug-gnu-emacs@gnu.org) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:282203 Archived-At: > Date: Tue, 19 Mar 2024 02:56:57 +0100 > From: RwN via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > Dear All, > > In a diary file, with a simple entry entry "2024-03-19 10:00 Appointment", icalendar-export-file process to an error: "Could not parse date". The entry is provided by the default value of calendar-iso-date-display-form. > > I solve the problem with the following patch mathchin '-' has a separator in the function icalendar--datestring-to-isodate : > > diff -u --label /usr/local/share/emacs/29.1/lisp/calendar/icalendar.el.gz --label /tmp/icalendar.el /tmp/jka-commHr8dl /tmp/icalendar.el > --- /usr/local/share/emacs/29.1/lisp/calendar/icalendar.el.gz > +++ /tmp/icalendar.el > @@ -894,8 +894,8 @@ > (save-match-data > (cond ( ;; iso-style numeric date > (string-match (concat "\\s-*" > - "\\([0-9]\\{4\\}\\)[ \t/]\\s-*" > - "0?\\([1-9][0-9]?\\)[ \t/]\\s-*" > + "\\([0-9]\\{4\\}\\)[ \t/-]\\s-*" > + "0?\\([1-9][0-9]?\\)[ \t/-]\\s-*" > "0?\\([1-9][0-9]?\\)") > datestring) > (setq year (read (substring datestring (match-beginning 1) > > Diff finished. Tue Mar 19 02:40:06 2024 > > Is it a correct solution to proposed? Paul, WDYT about the proposed change?