comparison lisp/calendar/calendar.el @ 3591:507f64624555

Apply typo patches from Paul Eggert.
author Jim Blandy <jimb@redhat.com>
date Wed, 09 Jun 1993 11:59:12 +0000
parents b7d345eaae47
children 747d54c5e139
comparison
equal deleted inserted replaced
3590:d5f22061277d 3591:507f64624555
46 ;; calendar to the day of the year/days remaining in year, to the ISO 46 ;; calendar to the day of the year/days remaining in year, to the ISO
47 ;; commercial calendar, to the Julian (old style) calendar, to the Hebrew 47 ;; commercial calendar, to the Julian (old style) calendar, to the Hebrew
48 ;; calendar, to the Islamic calendar, to the French Revolutionary calendar, 48 ;; calendar, to the Islamic calendar, to the French Revolutionary calendar,
49 ;; to the Mayan calendar, and to the astronomical (Julian) day number. 49 ;; to the Mayan calendar, and to the astronomical (Julian) day number.
50 ;; When floating point is available, times of sunrise/sunset can be displayed, 50 ;; When floating point is available, times of sunrise/sunset can be displayed,
51 ;; as can the phases of the moon. Appointment notication for diary entries 51 ;; as can the phases of the moon. Appointment notification for diary entries
52 ;; is available. 52 ;; is available.
53 53
54 ;; The following files are part of the calendar/diary code: 54 ;; The following files are part of the calendar/diary code:
55 55
56 ;; diary.el, diary-ins.el Diary functions 56 ;; diary.el, diary-ins.el Diary functions
358 (month "/" day "/" year "[^0-9]") 358 (month "/" day "/" year "[^0-9]")
359 (monthname " *" day "[^,0-9]") 359 (monthname " *" day "[^,0-9]")
360 (monthname " *" day ", *" year "[^0-9]") 360 (monthname " *" day ", *" year "[^0-9]")
361 (dayname "\\W")) 361 (dayname "\\W"))
362 "*List of pseudo-patterns describing the American patterns of date used. 362 "*List of pseudo-patterns describing the American patterns of date used.
363 See the documentation of diary-date-forms for an explanantion.") 363 See the documentation of diary-date-forms for an explanation.")
364 364
365 ;;;###autoload 365 ;;;###autoload
366 (defvar european-date-diary-pattern 366 (defvar european-date-diary-pattern
367 '((day "/" month "[^/0-9]") 367 '((day "/" month "[^/0-9]")
368 (day "/" month "/" year "[^0-9]") 368 (day "/" month "/" year "[^0-9]")
369 (backup day " *" monthname "\\W+\\<[^*0-9]") 369 (backup day " *" monthname "\\W+\\<[^*0-9]")
370 (day " *" monthname " *" year "[^0-9]") 370 (day " *" monthname " *" year "[^0-9]")
371 (dayname "\\W")) 371 (dayname "\\W"))
372 "*List of pseudo-patterns describing the European patterns of date used. 372 "*List of pseudo-patterns describing the European patterns of date used.
373 See the documentation of diary-date-forms for an explanantion.") 373 See the documentation of diary-date-forms for an explanation.")
374 374
375 ;;;###autoload 375 ;;;###autoload
376 (defvar diary-date-forms 376 (defvar diary-date-forms
377 (if european-calendar-style 377 (if european-calendar-style
378 european-date-diary-pattern 378 european-date-diary-pattern
403 ;;;###autoload 403 ;;;###autoload
404 (defvar european-calendar-display-form 404 (defvar european-calendar-display-form
405 '((if dayname (concat dayname ", ")) day " " monthname " " year) 405 '((if dayname (concat dayname ", ")) day " " monthname " " year)
406 "*The pseudo-pattern that governs the way a Gregorian date is formatted 406 "*The pseudo-pattern that governs the way a Gregorian date is formatted
407 in the European style. See the documentation of calendar-date-display-forms 407 in the European style. See the documentation of calendar-date-display-forms
408 for an explanantion.") 408 for an explanation.")
409 409
410 ;;;###autoload 410 ;;;###autoload
411 (defvar american-calendar-display-form 411 (defvar american-calendar-display-form
412 '((if dayname (concat dayname ", ")) monthname " " day ", " year) 412 '((if dayname (concat dayname ", ")) monthname " " day ", " year)
413 "*The pseudo-pattern that governs the way a Gregorian date is formatted 413 "*The pseudo-pattern that governs the way a Gregorian date is formatted
414 in the American style. See the documentation of calendar-date-display-forms 414 in the American style. See the documentation of calendar-date-display-forms
415 for an explanantion.") 415 for an explanation.")
416 416
417 ;;;###autoload 417 ;;;###autoload
418 (defvar calendar-date-display-form 418 (defvar calendar-date-display-form
419 (if european-calendar-style 419 (if european-calendar-style
420 european-calendar-display-form 420 european-calendar-display-form
960 960
961 (julian 4 2 \"Jefferson's Birthday\") 961 (julian 4 2 \"Jefferson's Birthday\")
962 962
963 To include a holiday conditionally, use the if or the sexp form. For example, 963 To include a holiday conditionally, use the if or the sexp form. For example,
964 to include American presidential elections, which occur on the first Tuesday 964 to include American presidential elections, which occur on the first Tuesday
965 after the first Monday in November of years divisble by 4, add 965 after the first Monday in November of years divisible by 4, add
966 966
967 (sexp (if (zerop (% year 4)) 967 (sexp (if (zerop (% year 4))
968 (calendar-gregorian-from-absolute 968 (calendar-gregorian-from-absolute
969 (1+ (calendar-dayname-on-or-before 969 (1+ (calendar-dayname-on-or-before
970 1 (+ 6 (calendar-absolute-from-gregorian 970 1 (+ 6 (calendar-absolute-from-gregorian
1745 \\[calendar-print-hebrew-date] show equivalent date on the Hebrew calendar 1745 \\[calendar-print-hebrew-date] show equivalent date on the Hebrew calendar
1746 \\[calendar-print-islamic-date] show equivalent date on the Islamic calendar 1746 \\[calendar-print-islamic-date] show equivalent date on the Islamic calendar
1747 \\[calendar-print-french-date] show equivalent date on the French Revolutionary calendar 1747 \\[calendar-print-french-date] show equivalent date on the French Revolutionary calendar
1748 \\[calendar-print-mayan-date] show equivalent date on the Mayan calendar 1748 \\[calendar-print-mayan-date] show equivalent date on the Mayan calendar
1749 1749
1750 The astromonical (Julian) day number of a date is found with 1750 The astronomical (Julian) day number of a date is found with
1751 1751
1752 \\[calendar-print-astro-day-number] show equivalent astronomical (Julian) day number 1752 \\[calendar-print-astro-day-number] show equivalent astronomical (Julian) day number
1753 1753
1754 To find the times of sunrise and sunset and lunar phases use 1754 To find the times of sunrise and sunset and lunar phases use
1755 1755
3110 3110
3111 (defun calendar-goto-astro-day-number (daynumber &optional noecho) 3111 (defun calendar-goto-astro-day-number (daynumber &optional noecho)
3112 "Move cursor to astronomical (Julian) DAYNUMBER. 3112 "Move cursor to astronomical (Julian) DAYNUMBER.
3113 Echo astronomical (Julian) day number unless NOECHO is t." 3113 Echo astronomical (Julian) day number unless NOECHO is t."
3114 (interactive (list (calendar-read 3114 (interactive (list (calendar-read
3115 "Astromonical (Julian) day number (>1721425): " 3115 "Astronomical (Julian) day number (>1721425): "
3116 '(lambda (x) (> x 1721425))))) 3116 '(lambda (x) (> x 1721425)))))
3117 (calendar-goto-date (calendar-gregorian-from-absolute (- daynumber 1721425))) 3117 (calendar-goto-date (calendar-gregorian-from-absolute (- daynumber 1721425)))
3118 (or noecho (calendar-print-astro-day-number))) 3118 (or noecho (calendar-print-astro-day-number)))
3119 3119
3120 (run-hooks 'calendar-load-hook) 3120 (run-hooks 'calendar-load-hook)