From 5d595461b446f8f4b8ac05641976c3db2d273810 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 29 Apr 2008 03:35:08 +0000 Subject: [PATCH] (holiday-float): Doc fix. --- lisp/calendar/holidays.el | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/lisp/calendar/holidays.el b/lisp/calendar/holidays.el index 8a994c7e269..e945a146d30 100644 --- a/lisp/calendar/holidays.el +++ b/lisp/calendar/holidays.el @@ -689,15 +689,13 @@ STRING)). Returns nil if it is not visible in the current calendar window." (list (list (list month day y) string))))) (defun holiday-float (month dayname n string &optional day) - "Holiday on MONTH, DAYNAME (Nth occurrence) called STRING. -If the Nth DAYNAME in MONTH is visible, the value returned is the list -\(((MONTH DAY year) STRING)). - -If N<0, count backward from the end of MONTH. - -An optional parameter DAY means the Nth DAYNAME on or after/before MONTH DAY. - -Returns nil if it is not visible in the current calendar window." + "Holiday called STRING on the Nth DAYNAME after/before MONTH DAY. +DAYNAME=0 means Sunday, DAYNAME=1 means Monday, and so on. +If N>0, use the Nth DAYNAME after MONTH DAY. +If N<0, use the Nth DAYNAME before MONTH DAY. +DAY defaults to 1 if N>0, and MONTH's last day otherwise. +If the holiday is visible in the calendar window, returns a +list (((month day year) STRING)). Otherwise returns nil." ;; This is messy because the holiday may be visible, while the date ;; on which it is based is not. For example, the first Monday after ;; December 30 may be visible when January is not. For large values -- 2.39.5