]> git.eshelyaron.com Git - emacs.git/commit
Check for presuppositions in `calendar-date-is-valid-p'
authorRichard Lawrence <rwl@recursewithless.net>
Fri, 13 Dec 2024 09:41:02 +0000 (10:41 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 15 Dec 2024 21:05:29 +0000 (22:05 +0100)
commitac288e15092bad38c2a13d36908def87258a63af
tree69612dea10411f3557ac2df58ccbbed8e747cd9e
parentca50405b6f561178097ce1c88ed02272e4b4306e
Check for presuppositions in `calendar-date-is-valid-p'

Do not signal an error in `calendar-date-is-valid-p' if passed a
value which is not a three-element list of integers.  Signaling
an error makes the function unusable as a predicate for valid
date values. (Bug#74848)
* lisp/calendar/calendar.el (calendar-date-is-valid-p): Add the
check that input is a 3-element list.
* test/lisp/calendar/calendar-tests.el: New file with tests.

(cherry picked from commit 77f73abd92f1a627ddec0648dcfe14e56b525f4d)
lisp/calendar/calendar.el
test/lisp/calendar/calendar-tests.el [new file with mode: 0644]