Mercurial > emacs
comparison lispref/calendar.texi @ 54123:30685d763c2d
Matthew Mundell <matt@mundell.ukfsn.org>
(Holiday Customizing): Quote arg of holiday-sexp.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sun, 22 Feb 2004 15:24:22 +0000 |
parents | 2d72c05c1ea8 |
children | 7322b3a75ca3 |
comparison
equal
deleted
inserted
replaced
54122:327b565d5d2b | 54123:30685d763c2d |
---|---|
253 @code{holiday-sexp} form. For example, American presidential elections | 253 @code{holiday-sexp} form. For example, American presidential elections |
254 occur on the first Tuesday after the first Monday in November of years | 254 occur on the first Tuesday after the first Monday in November of years |
255 divisible by 4: | 255 divisible by 4: |
256 | 256 |
257 @smallexample | 257 @smallexample |
258 (holiday-sexp (if (= 0 (% year 4)) | 258 (holiday-sexp '(if (= 0 (% year 4)) |
259 (calendar-gregorian-from-absolute | 259 (calendar-gregorian-from-absolute |
260 (1+ (calendar-dayname-on-or-before | 260 (1+ (calendar-dayname-on-or-before |
261 1 (+ 6 (calendar-absolute-from-gregorian | 261 1 (+ 6 (calendar-absolute-from-gregorian |
262 (list 11 1 year))))))) | 262 (list 11 1 year))))))) |
263 "US Presidential Election") | 263 "US Presidential Election") |