# HG changeset patch # User Glenn Morris # Date 1238653998 0 # Node ID 076b74f811b620751214e166c1606d0ff7e9d56c # Parent 9ac80334d48bbc5e52f810917f979ab571d644bf (diary-cyclic): Check for +ve N. diff -r 9ac80334d48b -r 076b74f811b6 lisp/calendar/diary-lib.el --- a/lisp/calendar/diary-lib.el Thu Apr 02 02:50:06 2009 +0000 +++ b/lisp/calendar/diary-lib.el Thu Apr 02 06:33:18 2009 +0000 @@ -1912,6 +1912,8 @@ 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))))