[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 3e6c69de 2/9: Fix icalendar time zone parsing glitch
From: |
Paul Eggert |
Subject: |
master 3e6c69de 2/9: Fix icalendar time zone parsing glitch |
Date: |
Thu, 16 Dec 2021 14:17:36 -0500 (EST) |
branch: master
commit 3e6c69de9d1ae99ebb71eb2ed04bdb9ee42cbb80
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>
Fix icalendar time zone parsing glitch
* lisp/calendar/icalendar.el (icalendar--decode-isodatetime):
Use pcase instead of cl-case, as cl-macs might not be loaded.
Otherwise, a build complains “calendar/icalendar.el:618:57:
Warning: ‘90’ is a malformed function” and some
icalendar--decode-isodatetime tests fail. This fixes a bug
introduced in 2021-11-21T08:18:57Z!dick.r.chiang@gmail.com.
---
lisp/calendar/icalendar.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/calendar/icalendar.el b/lisp/calendar/icalendar.el
index 7a483d4..15778ea 100644
--- a/lisp/calendar/icalendar.el
+++ b/lisp/calendar/icalendar.el
@@ -645,10 +645,10 @@ FIXME: multiple comma-separated values should be allowed!"
(setq second (read (substring isodatetimestring 13 15))))
;; FIXME: Support subseconds.
(when (> (length isodatetimestring) 15)
- (cl-case (aref isodatetimestring 15)
+ (pcase (aref isodatetimestring 15)
(?Z
(setq source-zone t))
- ((?- ?+)
+ ((or ?- ?+)
(setq source-zone
(concat "UTC" (substring isodatetimestring 15))))))
;; shift if necessary
- master updated (e726a00 -> 9e131f5), Paul Eggert, 2021/12/16
- master cea0d61 4/9: Prefer format-time-string to current-time-string, Paul Eggert, 2021/12/16
- master e0ca8f7 6/9: Prefer format-time-string to current-time-zone, Paul Eggert, 2021/12/16
- master 73d6b19 8/9: Omit temporary warning re obsolete timestamps, Paul Eggert, 2021/12/16
- master 34e3ad5 1/9: Fix encode-time doc string, Paul Eggert, 2021/12/16
- master fc520f8 5/9: Minor nndiary simplificatiuon with time zone, Paul Eggert, 2021/12/16
- master 3e6c69de 2/9: Fix icalendar time zone parsing glitch,
Paul Eggert <=
- master dd0727e 3/9: encode-time simplifications, Paul Eggert, 2021/12/16
- master f25ad39 7/9: Assume current-time-zone exists, Paul Eggert, 2021/12/16
- master 9e131f5 9/9: Simplify epa-ks--parse-buffer timestamp handling, Paul Eggert, 2021/12/16