GNU bug report logs -
#53702
27.1; diary does not display some entries in european style
Previous Next
Reported by: Francesco Potortì <pot <at> gnu.org>
Date: Tue, 1 Feb 2022 16:23:01 UTC
Severity: normal
Tags: patch
Found in version 27.1
Fixed in version 31.1
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Hello again,
sorry for the duplicated last message - my first message had bounced,
but apparently only from the poster's address.
Ok - small addition: the dot should be added in the subsequent line as
well:
[0001-WIP-Try-to-fix-53702.patch (text/x-diff, inline)]
From 5346b90b9884b9190cfe77310f2444ed35d182eb Mon Sep 17 00:00:00 2001
From: Michael Heerdegen <michael_heerdegen <at> web.de>
Date: Wed, 2 Feb 2022 01:08:43 +0100
Subject: [PATCH] WIP: Try to fix #53702
---
lisp/calendar/calendar.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 48d308afad..0605e4bf51 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -800,8 +800,8 @@ 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]\\)\\)")
- (day " *" monthname " *" year "[^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.
The defaults are: DAY/MONTH; DAY/MONTH/YEAR; DAY MONTHNAME;
--
2.30.2
[Message part 3 (text/plain, inline)]
I'm now a bit worried about this paragraph in
(info "(emacs) Appointments"):
| You can write times in am/pm style (with ‘12:00am’ standing for
| midnight and ‘12:00pm’ standing for noon), or 24-hour European/military
| style. You need not be consistent; your diary file can have a mixture
| of the two styles. Times must be at the beginning of diary entries if
| they are to be recognized.
Military style is 1200 for 12:00am, right? This definitely can't be
used everywhere when using the European style because lines get
ambiguous: for digits could mean a year - or a military time in a line
not specifying a year. Should that paragraph be corrected?
Michael.
This bug report was last modified 89 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.