From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Francesco =?UTF-8?Q?Potort=C3=AC?= Newsgroups: gmane.emacs.bugs Subject: bug#53702: 27.1; diary does not display some entries in european style Date: Tue, 01 Feb 2022 17:21:54 +0100 Organization: The GNU project Message-ID: <87o83q8sm5.fsf@tucano.isti.cnr.it> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12302"; mail-complaints-to="usenet@ciao.gmane.io" To: 53702@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 01 19:13:17 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 1nExeX-00035t-Gl for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Feb 2022 19:13:17 +0100 Original-Received: from localhost ([::1]:43842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nExeW-0003In-J6 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Feb 2022 13:13:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEvvq-0001De-8i for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2022 11:23:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51018) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEvvp-0006z3-Td for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2022 11:23:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nEvvp-0001bG-Q8 for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2022 11:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Feb 2022 16:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53702 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16437325236042 (code B ref -1); Tue, 01 Feb 2022 16:23:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Feb 2022 16:22:03 +0000 Original-Received: from localhost ([127.0.0.1]:43915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEvut-0001ZO-DO for submit@debbugs.gnu.org; Tue, 01 Feb 2022 11:22:03 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:59248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEvur-0001Yv-34 for submit@debbugs.gnu.org; Tue, 01 Feb 2022 11:22:01 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEvuq-0008Kv-QS for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2022 11:22:00 -0500 Original-Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:46304) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEvuo-0006qP-Ur for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2022 11:22:00 -0500 Original-Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102]) by plesklin7.if1.ehiweb.it (Postfix) with ESMTPSA id A54D010904F for ; Tue, 1 Feb 2022 17:21:54 +0100 (CET) X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 X-PPP-Message-ID: <20220201162154.11154.75982@plesklin7.if1.ehiweb.it> X-PPP-Vhost: potorti.it Received-SPF: softfail client-ip=79.98.45.16; envelope-from=pot@gnu.org; helo=plesklin7.if1.ehiweb.it X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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:225758 Archived-At: Diary entries are not parsed by M-x diary if: - calendar-date-style is set to european (rather than american) AND - the date is written as "3 Feb" (rather than 3/2) AND - the time is written as "18.00" (rather than 18:00) At least, this is what I have found by trial and error. I looked at the code in appt.el and diary-lib.el but was not able to find the culprit... To reproduce: $ emacs -Q -nw --load=appt-bug.el You will see that only two european entries are shown (t1 and t2). Then exit Emacs, comment out the second line in appt-bug-el and rerun Emacs as above: you will see four american entries (t1, t2, t3, t4). ================ appt-bug.el (setq diary-file "~/appt-bug-diary" calendar-date-style 'european ) (load-library "diary-lib") (diary-list-entries (list 2 3 (decoded-time-year (decode-time))) 1) ================ appt-bug-diary -*-diary-*- 3 Feb 18:00 t1 works (european) 3/2 18.00 t2 works (european) 3 Feb 18.00 t3 does not work (european) 3 Feb 18.00 t4 does not work (european) Feb 3 18:00 t1 works (american) 2/3 18.00 t2 works (american) Feb 3 18.00 t3 works (american) Feb 3 18.00 t4 works (american)