all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#53702: 27.1; diary does not display some entries in european style
@ 2022-02-01 16:21 Francesco Potortì
  2022-02-02  0:39 ` Michael Heerdegen
  2022-02-02  0:39 ` Michael Heerdegen
  0 siblings, 2 replies; 10+ messages in thread
From: Francesco Potortì @ 2022-02-01 16:21 UTC (permalink / raw)
  To: 53702

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)





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-09-09 17:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-01 16:21 bug#53702: 27.1; diary does not display some entries in european style Francesco Potortì
2022-02-02  0:39 ` Michael Heerdegen
2022-02-02  3:41   ` Michael Heerdegen
2022-03-04  2:00     ` Michael Heerdegen
2022-09-08 13:29       ` Lars Ingebrigtsen
2022-09-08 13:41         ` Francesco Potortì
2022-09-08 13:45           ` Lars Ingebrigtsen
2022-09-09  4:13         ` Michael Heerdegen
2022-09-09 17:08           ` Lars Ingebrigtsen
2022-02-02  0:39 ` Michael Heerdegen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.