mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-21 18:23:59 +00:00
(diary-cyclic): Check for +ve N.
This commit is contained in:
parent
74fcd0b19c
commit
6f8eab73b4
@ -1912,6 +1912,8 @@ and %s by the ordinal ending of that number (that is, `st', `nd',
|
||||
|
||||
An optional parameter MARK specifies a face or single-character
|
||||
string to use when highlighting the day in the calendar."
|
||||
(or (> n 0)
|
||||
(error "Day count must be positive"))
|
||||
(let* ((diff (- (calendar-absolute-from-gregorian date)
|
||||
(calendar-absolute-from-gregorian
|
||||
(diary-make-date month day year))))
|
||||
|
Loading…
Reference in New Issue
Block a user