Mercurial > emacs
changeset 102818:076b74f811b6
(diary-cyclic): Check for +ve N.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 02 Apr 2009 06:33:18 +0000 |
parents | 9ac80334d48b |
children | 6cae903fcecf |
files | lisp/calendar/diary-lib.el |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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))))