comparison lisp/calendar/calendar.el @ 13193:a25a4f1246c0

Added key definitions and autoloads for cal-tex.el (a new file).
author Edward M. Reingold <reingold@emr.cs.iit.edu>
date Thu, 12 Oct 1995 15:27:07 +0000
parents 03ef030c9e75
children 4f1d9038eb4e
comparison
equal deleted inserted replaced
13192:c7174381d5d9 13193:a25a4f1246c0
3 ;;; Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995 Free Software 3 ;;; Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995 Free Software
4 ;;; Foundation, Inc. 4 ;;; Foundation, Inc.
5 5
6 ;; Author: Edward M. Reingold <reingold@cs.uiuc.edu> 6 ;; Author: Edward M. Reingold <reingold@cs.uiuc.edu>
7 ;; Keywords: calendar 7 ;; Keywords: calendar
8 ;; Human-Keywords: calendar, Gregorian calendar, Julian calendar, 8 ;; Human-Keywords: calendar, Gregorian calendar, diary, holidays
9 ;; Julian day number, diary, holidays
10 9
11 ;; This file is part of GNU Emacs. 10 ;; This file is part of GNU Emacs.
12 11
13 ;; GNU Emacs is free software; you can redistribute it and/or modify 12 ;; GNU Emacs is free software; you can redistribute it and/or modify
14 ;; it under the terms of the GNU General Public License as published by 13 ;; it under the terms of the GNU General Public License as published by
44 ;; calendar, to the Islamic calendar, to the French Revolutionary calendar, to 43 ;; calendar, to the Islamic calendar, to the French Revolutionary calendar, to
45 ;; the Mayan calendar, to the Chinese calendar, to the Coptic calendar, to the 44 ;; the Mayan calendar, to the Chinese calendar, to the Coptic calendar, to the
46 ;; Ethiopic calendar, and to the astronomical (Julian) day number. When 45 ;; Ethiopic calendar, and to the astronomical (Julian) day number. When
47 ;; floating point is available, times of sunrise/sunset can be displayed, as 46 ;; floating point is available, times of sunrise/sunset can be displayed, as
48 ;; can the phases of the moon. Appointment notification for diary entries is 47 ;; can the phases of the moon. Appointment notification for diary entries is
49 ;; available. 48 ;; available. Calendar printing via LaTeX is available.
50 49
51 ;; The following files are part of the calendar/diary code: 50 ;; The following files are part of the calendar/diary code:
52 51
52 ;; appt.el Appointment notification
53 ;; cal-chinese.el Chinese calendar
54 ;; cal-coptic.el Coptic/Ethiopic calendars
55 ;; cal-dst.el Daylight savings time rules
56 ;; cal-hebrew.el Hebrew calendar
57 ;; cal-islamic.el Islamic calendar
58 ;; cal-iso.el ISO calendar
59 ;; cal-julian.el Julian/astronomical calendars
60 ;; cal-mayan.el Mayan calendars
53 ;; cal-menu.el Menu support 61 ;; cal-menu.el Menu support
54 ;; cal-move.el Movement in the calendar 62 ;; cal-move.el Movement in the calendar
63 ;; cal-tex.el Calendars in LaTeX
55 ;; cal-x.el X-windows dedicated frame functions 64 ;; cal-x.el X-windows dedicated frame functions
56 ;; diary.el Diary functions 65 ;; diary.el Diary functions
57 ;; holidays.el Holiday functions 66 ;; holidays.el Holiday functions
58 ;; cal-julian.el Julian/astronomical calendars 67 ;; lunar.el Phases of the moon
59 ;; cal-hebrew.el Hebrew calendar
60 ;; cal-islamic.el Islamic calendar
61 ;; cal-mayan.el Mayan calendars
62 ;; cal-chinese.el Chinese calendar
63 ;; cal-coptic.el Coptic/Ethiopic calendars
64 ;; cal-dst.el Daylight savings time rules
65 ;; solar.el Sunrise/sunset, equinoxes/solstices 68 ;; solar.el Sunrise/sunset, equinoxes/solstices
66 ;; lunar.el Phases of the moon
67 ;; appt.el Appointment notification
68 69
69 ;; Comments, corrections, and improvements should be sent to 70 ;; Comments, corrections, and improvements should be sent to
70 ;; Edward M. Reingold Department of Computer Science 71 ;; Edward M. Reingold Department of Computer Science
71 ;; (217) 333-6733 University of Illinois at Urbana-Champaign 72 ;; (217) 333-6733 University of Illinois at Urbana-Champaign
72 ;; reingold@cs.uiuc.edu 1304 West Springfield Avenue 73 ;; reingold@cs.uiuc.edu 1304 West Springfield Avenue
87 88
88 ;;; Code: 89 ;;; Code:
89 90
90 (defun calendar-version () 91 (defun calendar-version ()
91 (interactive) 92 (interactive)
92 (message "Version 6, September 17, 1995")) 93 (message "Version 6, October 12, 1995"))
93 94
94 ;;;###autoload 95 ;;;###autoload
95 (defvar calendar-week-start-day 0 96 (defvar calendar-week-start-day 0
96 "*The day of the week on which a week in the calendar begins. 97 "*The day of the week on which a week in the calendar begins.
97 0 means Sunday (default), 1 means Monday, and so on.") 98 0 means Sunday (default), 1 means Monday, and so on.")
1440 (autoload 'list-calendar-holidays "holidays" 1441 (autoload 'list-calendar-holidays "holidays"
1441 "Create a buffer containing the holidays for the current calendar window. 1442 "Create a buffer containing the holidays for the current calendar window.
1442 The holidays are those in the list `calendar-notable-days'. Returns t if any 1443 The holidays are those in the list `calendar-notable-days'. Returns t if any
1443 holidays are found, nil if not." 1444 holidays are found, nil if not."
1444 t) 1445 t)
1446
1447 (autoload 'cal-tex-cursor-month "cal-tex"
1448 "Make a buffer with LaTeX commands for the month cursor is on.
1449 Optional prefix argument specifies number of months to be produced.
1450 Calendar is condensed onto one page.")
1451
1452 (autoload 'cal-tex-cursor-month-landscape "cal-tex"
1453 "Make a buffer with LaTeX commands for the month cursor is on.
1454 Optional prefix argument specifies number of months to be produced.")
1455
1456 (autoload 'cal-tex-cursor-day "cal-tex"
1457 "Make a buffer with LaTeX commands for the day cursor is on.")
1458
1459 (autoload 'cal-tex-cursor-week "cal-tex"
1460 "Make a buffer with LaTeX commands for a one page weekly calendar.
1461 Optional prefix argument specifies number of weeks.")
1462
1463 (autoload 'cal-tex-cursor-week2 "cal-tex"
1464 "Make a buffer with LaTeX commands for a two page weekly calendar.
1465 Optional prefix argument specifies number of weeks.")
1466
1467 (autoload 'cal-tex-cursor-week3 "cal-tex"
1468 "Make a buffer with LaTeX commands for a one page weekly calendar.
1469 Optional prefix argument specifies number of weeks.")
1470
1471 (autoload 'cal-tex-cursor-week4 "cal-tex"
1472 "Make a buffer with LaTeX commands for a one page weekly calendar.
1473 Optional prefix argument specifies number of weeks.")
1474
1475 (autoload 'cal-tex-cursor-week5 "cal-tex"
1476 "Make a buffer with LaTeX commands for a Filofax one page weekly calendar.
1477 Optional prefix argument specifies number of weeks.")
1478
1479 (autoload 'cal-tex-cursor-week6 "cal-tex"
1480 "Make a buffer with LaTeX commands for a Filofax two page weekly calendar.
1481 Optional prefix argument specifies number of weeks.")
1482
1483 (autoload 'cal-tex-cursor-year "cal-tex"
1484 "Make a buffer with LaTeX commands for a year's calendar.
1485 Optional prefix argument specifies numeber of years.")
1486
1487 (autoload 'cal-tex-cursor-year-landscape "cal-tex"
1488 "Make a buffer with LaTeX commands for a year's calendar (landscape).
1489 Optional prefix argument specifies number of years.")
1490
1491 (autoload 'cal-tex-cursor-filofax-year "cal-tex"
1492 "Make a buffer with LaTeX commands for a year's calendar (Filofax).
1493 Optional prefix argument specifies number of years.")
1445 1494
1446 (autoload 'mark-calendar-holidays "holidays" 1495 (autoload 'mark-calendar-holidays "holidays"
1447 "Mark notable days in the calendar window." 1496 "Mark notable days in the calendar window."
1448 t) 1497 t)
1449 1498
1662 (define-key calendar-mode-map "ihm" 'insert-monthly-hebrew-diary-entry) 1711 (define-key calendar-mode-map "ihm" 'insert-monthly-hebrew-diary-entry)
1663 (define-key calendar-mode-map "ihy" 'insert-yearly-hebrew-diary-entry) 1712 (define-key calendar-mode-map "ihy" 'insert-yearly-hebrew-diary-entry)
1664 (define-key calendar-mode-map "iid" 'insert-islamic-diary-entry) 1713 (define-key calendar-mode-map "iid" 'insert-islamic-diary-entry)
1665 (define-key calendar-mode-map "iim" 'insert-monthly-islamic-diary-entry) 1714 (define-key calendar-mode-map "iim" 'insert-monthly-islamic-diary-entry)
1666 (define-key calendar-mode-map "iiy" 'insert-yearly-islamic-diary-entry) 1715 (define-key calendar-mode-map "iiy" 'insert-yearly-islamic-diary-entry)
1667 (define-key calendar-mode-map "?" 'calendar-goto-info-node)) 1716 (define-key calendar-mode-map "?" 'calendar-goto-info-node)
1717 (define-key calendar-mode-map "tm" 'cal-tex-cursor-month)
1718 (define-key calendar-mode-map "tM" 'cal-tex-cursor-month-landscape)
1719 (define-key calendar-mode-map "td" 'cal-tex-cursor-day)
1720 (define-key calendar-mode-map "tw1" 'cal-tex-cursor-week)
1721 (define-key calendar-mode-map "tw2" 'cal-tex-cursor-week2)
1722 (define-key calendar-mode-map "tw3" 'cal-tex-cursor-week3)
1723 (define-key calendar-mode-map "tw4" 'cal-tex-cursor-week4)
1724 (define-key calendar-mode-map "tfw" 'cal-tex-cursor-week5)
1725 (define-key calendar-mode-map "tfW" 'cal-tex-cursor-week6)
1726 (define-key calendar-mode-map "tfy" 'cal-tex-cursor-filofax-year)
1727 (define-key calendar-mode-map "ty" 'cal-tex-cursor-year)
1728 (define-key calendar-mode-map "tY" 'cal-tex-cursor-year-landscape))
1668 1729
1669 (defun describe-calendar-mode () 1730 (defun describe-calendar-mode ()
1670 "Create a help buffer with a brief description of the calendar-mode." 1731 "Create a help buffer with a brief description of the calendar-mode."
1671 (interactive) 1732 (interactive)
1672 (with-output-to-temp-buffer "*Help*" 1733 (with-output-to-temp-buffer "*Help*"