GNU bug report logs - #74848
[PATCH] calendar: check for presuppositions in `calendar-date-is-valid-p'

Previous Next

Package: emacs;

Reported by: Richard Lawrence <rwl <at> recursewithless.net>

Date: Fri, 13 Dec 2024 12:03:01 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Richard Lawrence <rwl <at> recursewithless.net>
Cc: 74848 <at> debbugs.gnu.org
Subject: bug#74848: [PATCH] calendar: check for presuppositions in `calendar-date-is-valid-p'
Date: Sat, 14 Dec 2024 13:06:00 +0200
> From: Richard Lawrence <rwl <at> recursewithless.net>
> Date: Fri, 13 Dec 2024 13:02:36 +0100
> 
> Here is a patch to make calendar-date-is-valid-p return nil, instead of
> signaling an error, when it is passed a value that isn't a list of the
> form (MONTH DAY YEAR).
> 
> This (a) makes the function a proper predicate, as its name suggests,
> which (b) is necessary in some of the new iCalendar code I've been
> working on (to be posted soon).

Thanks.

> This is my first time submitting a patch with submit-emacs-patch, so
> please let me know if I did anything wrong.

The commit log message should include the file and the function(s)
where the changes are done, as well as a short description of the
changes.  See CONTRIBUTE for more details, and see "git log" for the
examples of how we format commit log messages.  Please don't forget to
mention the bug number in the commit log message.

P.S. I presume you've run the relevant parts of the test suite and
verified that they still succeed.  If not, please do.




This bug report was last modified 221 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.