From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#53702: 27.1; diary does not display some entries in european style Date: Wed, 02 Feb 2022 01:39:22 +0100 Message-ID: <8735l22jb9.fsf@web.de> References: <87o83q8sm5.fsf@tucano.isti.cnr.it> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3076"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 53702@debbugs.gnu.org To: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 02 03:34:52 2022 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 1nF5Tu-0000bf-Vf for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Feb 2022 03:34:51 +0100 Original-Received: from localhost ([::1]:56314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nF5Tt-00019Q-Ft for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Feb 2022 21:34:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nF3hA-0005ik-Ry for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2022 19:40:28 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57054) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nF3gn-0000ps-Uj for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2022 19:40:23 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nF3gn-0003lA-Lq for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2022 19:40:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Feb 2022 00:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53702 X-GNU-PR-Package: emacs Original-Received: via spool by 53702-submit@debbugs.gnu.org id=B53702.164376237114409 (code B ref 53702); Wed, 02 Feb 2022 00:40:01 +0000 Original-Received: (at 53702) by debbugs.gnu.org; 2 Feb 2022 00:39:31 +0000 Original-Received: from localhost ([127.0.0.1]:50951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nF3gJ-0003kL-Eb for submit@debbugs.gnu.org; Tue, 01 Feb 2022 19:39:31 -0500 Original-Received: from mout.web.de ([212.227.17.12]:46825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nF3gH-0003k7-ON for 53702@debbugs.gnu.org; Tue, 01 Feb 2022 19:39:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1643762363; bh=nzI0jcBlbDxmU6C3j6UjxyElLgSw0CM8eoqQldGD5as=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=bKypjROlT9zpnEtQl9tUMxlJYnotlY8zxGjn2Lv6FwpPrdwcuM0IHnaJ/hA6BaoFq J8w7/hZkWYrMJtKesymht8hewrtmXCJWV/MWhOfbSlXNdPpy4o1TsEW8YAazjRrP9I a/t0tjMmqbyH8MPJzFuGr/GPmiUrXONA/8x5oI84= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([84.57.248.31]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MTvw0-1mpApF1L8c-00R40V; Wed, 02 Feb 2022 01:39:23 +0100 In-Reply-To: <87o83q8sm5.fsf@tucano.isti.cnr.it> ("Francesco =?UTF-8?Q?Potort=C3=AC?="'s message of "Tue, 01 Feb 2022 17:21:54 +0100") X-Provags-ID: V03:K1:h87ptcGXNy4a2UI3gE6PfEW4+L+IxmuVohAf7shxWIeyPC1E4S1 p1+ZPdnPv27u0oTwuiUA3f0rba1nlDaLu7cSQYqxttzxCpiOQozQVQuYkw3Mi+c0YVrkQlA nJwx9MQpzEFGwRV3evVOL7bObHYpRV9ENLlayFyc6nVDGNWEH1hnG877nalpgKp3NuDAxE6 mcEqZpOZZ625iq8RupQug== X-UI-Out-Filterresults: notjunk:1;V03:K0:2YbLPvnXTgM=:CBEAxVvuoEBWuUT+w040Oq CzDZQeS5eOLmohNKhrIxINzcl+G7l/TqegBYRWn0hfIbC2NbVLxMVvVpxtvlbjBg3lIcVMuae LVIpmVKoeinQOCa38i5g1upWQxhUcaRuJcp+lvGAFHocJToDu3SJcoLFJS1/zw6j6mwathabR gwMRLHpIsrUkgU7ftIBs2LsKu5d+YMHimeR8y5zz/Ra5fGMZMQZQs60Ai3jCQpqDL4f5SBQdj 7P5tBThZUZ3Nyi4MujBKR1nvS+4M2xFYo0TJudIG/iYAf9Y7xGEit4w7Pf845PBGIC+9kKq+g RwCUGNQpWYiLKm4Bx/U+0k/I7VRfHkTyg8DWuYMWHb+G8xwZTs5UuLNtp2iAiDNu747kk8qRe dXxqdEnXO2sD1F4YYTBOretugqTYrlXGOcBwv6oBoUQ1l0m2qk8+Q0CKnjhhZgS7s7RQh9vxY 3MSKKHaIUdhK3QS5DplxQC2u1Mr6ReqiJxwgaVeYVuSC3v+N4wLtJizme4giLKyJ0XRI0Wixz iItMDfv09Fk7PnlHGlChMlabwniBiv3PEXnVlMICacqIAm688FEK5YNwVKb9C3X4tecEymG71 VJrKqrQ5fZQMWgNGxFPQUny4N5HwDsOGjWJ0B2oARdKucaoOLtVg9YuMAMr/s/xUYrPRYkzm3 Tlurg4R2ZAVTr1c+3XAuhbQWavDZ0cWSnT3YxS4ovLLk52zzuBQWPAu8mbB5QkP1ZZ+JHhpa4 NT6Ex0vUS1nIt73mIXnWT8Y30Sy01qrpsvRlEaHMH3MjCiGMFKEfgU+fuoWSZ8RY4QDUkAHe 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:225769 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Francesco Potort=C3=AC writes: > (setq diary-file "~/appt-bug-diary" > calendar-date-style 'european > ) The recipe should better call the function `calendar-set-date-style' because "setting this variable [calendar-date-style] directly does not take effect (if the calendar package is already loaded). But that doesn't prevent the issue - the report is valid nonetheless. One already sees in the diary file that the problematic lines are not fontified. The manual describes that different time formats can be mixed, and 3 Feb 18.00 t3 does not work (european) is not invalid AFAIU (`diary-entry-time': "A period (.) can be used instead of a colon (:) to separate the hour and minute parts."). The problem is actually that the date part is rejected because the time format is not recognized by `diary-european-date-forms'. This seems to fix it: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-WIP-Try-to-fix-53702.patch Content-Transfer-Encoding: quoted-printable =46rom 07a072db84ec722e4e77d02c4d6aa77cafc19354 Mon Sep 17 00:00:00 2001 From: Michael Heerdegen Date: Wed, 2 Feb 2022 01:08:43 +0100 Subject: [PATCH] WIP: Try to fix #53702 =2D-- lisp/calendar/calendar.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 48d308afad..d578d1a251 100644 =2D-- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el @@ -800,7 +800,7 @@ diary-american-date-forms (defcustom diary-european-date-forms '((day "/" month "[^/0-9]") (day "/" month "/" year "[^0-9]") - (backup day " *" monthname "\\W+\\<\\([^*0-9]\\|\\([0-9]+[:aApP]\\)\\= )") + (backup day " *" monthname "\\W+\\<\\([^*0-9]\\|\\([0-9]+[:.aApP]\\)\= \)") (day " *" monthname " *" year "[^0-9:aApP]") (dayname "\\W")) "List of pseudo-patterns describing the European style of dates. =2D- 2.30.2 --=-=-= Content-Type: text/plain See also Bug#13536 which touched that definition. We must be sure that the entries of `diary-european-date-forms' are still mutually exclusive. `year' never contains a dot "." (that regexp is built in `diary-list-entries-2'), so I guess we are save... right? Michael. --=-=-=--