1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00
Commit Graph

75 Commits

Author SHA1 Message Date
Richard M. Stallman
c3a3ebc910 (calendar-goto-french-date): Fix special day
choice in non-leap years by re-reversing the list.  Fix out of
place parenthesis in prompt.
1994-01-02 19:03:36 +00:00
Richard M. Stallman
ff4373ed63 (calendar-mode-map): Put back C-v and M-v bindings. 1993-12-23 03:21:48 +00:00
Paul Eggert
238c5cc1cc (lunar-phase): Add calendar-time-zone to solar ephemeris correction.
This fixes a bug where GMT was being reported as if it were local time.
1993-12-05 18:29:24 +00:00
Richard M. Stallman
b570e6523a (appt-display-interval): New variable.
(appt-check): Obey that variable.
1993-11-16 03:30:08 +00:00
Richard M. Stallman
ce4d3fff9b (solar-equinoxes-solstices): Add autoload. 1993-11-14 22:54:45 +00:00
Richard M. Stallman
3b92bdd24e (solar-holidays): Change top-level progn to an if. 1993-11-14 22:51:17 +00:00
Richard M. Stallman
3ac14ca02a (calendar-absolute-from-time): Undo Sep 14 patch.
Fix comments instead, since they didn't match the code.
1993-11-13 23:59:53 +00:00
Richard M. Stallman
2ba08787e7 (holiday-easter-etc): Fix Ascension Day string. 1993-10-20 05:51:52 +00:00
Richard M. Stallman
3d9dece2e8 (solar-n-hemi-seasons, solar-s-hemi-seasons): New vars.
(solar-equinoxes-solstices): Use them to fix names for southern hemisphere.
1993-10-20 05:51:19 +00:00
Richard M. Stallman
d8a200a762 (calendar-week-start-day): New var (autoloaded) to
allow the calendar week to start on any day, not just Sunday.
(calendar-mod): New support function.
(calendar-cursor-to-visible-date, generate-calendar-month,
calendar-beginning-of-week, calendar-end-of-week):
Use new var calendar-week-start-day.

(calendar-day-name-array, calendar-month-name-array,
calendar-islamic-month-name-array,
calendar-hebrew-month-name-array-common-year,
calendar-hebrew-month-name-array-leap-year):  Change to defvar.
1993-10-20 05:49:24 +00:00
Brian Fox
fc68b5523c (s-hemi-seasons n-hemi-seasons): New constants are hemisphere
dependent list of season names.  The names are "international"; i.e.,
`vernal' and `autumnal' are used consistently.
(solar-equinoxes-solstices): Use new constants, allowing southern
hemisphere reports to be meaningful.
(sunrise-sunset): Use `frame-width' instead of `screen-width'.
1993-09-21 07:46:03 +00:00
Brian Fox
1b41c5d14d (calendar-absolute-from-time): Fix typo by interchanging (floor) and (%). 1993-09-21 06:51:15 +00:00
Paul Eggert
d6fc04a8ca (calendar-time-zone-daylight-rules): Remove special case for Israel.
Israel has changed its daylight savings time rules, and we don't know
what the current rules are.
1993-09-06 22:37:51 +00:00
Paul Eggert
3a2e3ab5ba Use integers instead of floating point where they will do.
(solar-equinoxes-solstices): Invert seasons in southern hemisphere.
(solar-degrees-to-quadrant): Use `floor' instead of `truncate'.
1993-08-29 17:28:19 +00:00
Paul Eggert
6bc457fea5 (calendar-time-zone-daylight-rules): Scan through the
next few years until at most one rule remains; if none remain, then
just use the first candidate rule; it's wrong in general, but it's
right for at least one year.  This is a better heuristic in case the
underlying time zone implementation has bugs (which is all too
common).  If possible, don't convert back and forth between gregorian
and absolute; this speeds things up noticeably.  This uses the new
calendar-nth-named-absday function.

(calendar-current-time-zone): Some locales start DST at a different
time of day than they end; allow for this by yielding both times.  The
performance speedups in calendar.el are great enough that we now no
longer need the "Checking time zone data..." message.  If
current-time-zone yields nil, don't bother with
calendar-next-time-zone-transition.  Use clearer names for local vars.

(calendar-time-zone, calendar-daylight-time-offset,
calendar-{standard,daylight}-time-zone-name,
calendar-daylight-savings-{starts,ends}): Default to US Eastern rules
for information that is not available.

(calendar-daylight-savings-{starts,ends}-time): New vars, replacing
calendar-daylight-savings-switchover-time, to support locales that
start DST at a different time of day than they end.

(calendar-absolute-from-time):
Fix typo by interchanging floor and mod.
1993-08-28 04:14:25 +00:00
Paul Eggert
04d5d338d2 (solar-holidays): Use new
calendar-daylight-savings-{starts,ends}-time vars instead of old
calendar-daylight-savings-switchover-time var.

(calendar-last-day-of-month): Tune by testing month before year.
(calendar-absolute-from-gregorian): Tune by computing (1- year) once.

(calendar-nth-named-absday): New function, used to improve performance
in calendar-time-zone-daylight-rules.
(calendar-nth-named-day): Use it.
1993-08-28 04:14:25 +00:00
Paul Eggert
c27a1f512c (solar-time-string):
Use new calendar-daylight-savings-{starts,ends}-time
vars instead of old calendar-daylight-savings-switchover-time var.
1993-08-28 04:14:25 +00:00
Jim Blandy
0d336f18a8 * calendar.el (calendar-absolute-from-iso,
american-calendar-display-form, european-calendar-display-form):
Fix typos in doc strings doc strings.

(calendar-mode-map): Use "[prior]" and "[next]" in key bindings.
1993-08-20 15:55:57 +00:00
Jim Blandy
808977603e * solar.el (solar-sunrise, solar-sunset, solar-longitude-of-sun):
Make both arguments to solar-mod float.

(sunrise-sunset): Change screen-width to frame-width.
1993-08-20 15:55:29 +00:00
Roland McGrath
4cc1b78aef Undo last change. 1993-08-10 17:57:31 +00:00
Roland McGrath
8bab5c187a (calendar-absolute-from-time, calendar-time-from-absolute): Use % in place
of mod.  Use (floor (/ A B)) in place of (floor A B).
1993-08-10 17:52:21 +00:00
Richard M. Stallman
d7fa63b287 (hebrew-holidays-3): Fix misspelling in var name. 1993-08-10 05:53:31 +00:00
Paul Eggert
632f9a0ea0 (calendar-/, calendar-%): Remove, since floor and mod
now subsume them.  All callers changed.
1993-08-10 04:14:17 +00:00
Paul Eggert
e7bb3aebcc solar-mod -> mod 1993-08-10 04:14:17 +00:00
Paul Eggert
12e070d17a (siolar-mode): Remove, since mod now subsumes it. ALl callers changed. 1993-08-10 04:14:17 +00:00
Richard M. Stallman
34fa2dc2e5 (diary-display-hook): Change default and fix doc string.
(diary-hook): New user variable.
(diary-date-forms, calendar-date-display-form): Don't autoload
them so the European/American style is decided at load time.
1993-08-04 23:02:10 +00:00
Richard M. Stallman
5e2a0ae4fb (calendar-mode-map): Bind C-SPC. 1993-07-29 05:13:26 +00:00
Richard M. Stallman
97344751da (hebrew-holidays): Split into 4 sub-variables. 1993-07-19 18:57:59 +00:00
Jim Blandy
2f88891677 * calendar.el (calendar-holidays): Don't autoload this; its value
must be set after the user's .emacs file is loaded.
1993-07-14 07:24:36 +00:00
Richard M. Stallman
1bd4e7608f Doc fixes. 1993-06-28 05:18:27 +00:00
Jim Blandy
3e03d7c74e * cal-dst.el: New file.
(calendar-/, calendar-%, calendar-absolute-from-time,
        calendar-time-from-absolute, calendar-next-time-zone-transition,
        calendar-time-zone-daylight-rules): New functions.
        (calendar-current-time-zone): Moved from calendar.el and rewritten.
        (calendar-current-time-zone-cache): New variable.
        (calendar-current-time-zone, calendar-time-zone,
        calendar-daylight-time-offset, calendar-standard-time-zone-name,
        calendar-daylight-time-zone-name,
        calendar-daylight-savings-starts, calendar-daylight-savings-ends,
        calendar-daylight-savings-switchover-time): Moved from calendar.el.
1993-06-22 03:25:13 +00:00
Jim Blandy
80e48f9fa8 * lunar.el (lunar-phase): Use time conversion from solar.el 1993-06-22 03:24:44 +00:00
Jim Blandy
8ec105a066 * holidays.el (calendar-holiday-function-fixed,
calendar-holiday-function-float, calendar-holiday-function-julian,
        calendar-holiday-function-islamic,
        calendar-holiday-function-hebrew, calendar-holiday-function-sexp,
        calendar-holiday-function-advent,
        calendar-holiday-function-easter-etc,
        calendar-holiday-function-greek-orthodox-easter,
        calendar-holiday-function-rosh-hashanah-etc,
        calendar-holiday-function-hanukkah,
        calendar-holiday-function-passover-etc,
        calendar-holiday-function-tisha-b-av-etc): Renamed without words
        "calendar" and "function"; changed argument from a list of values to
        individual values.  Fixed doc strings.
        (calendar-holiday-function-if): Removed.
        (calendar-holiday-solar-equinoxes-solstices): Renamed
        solar-equinoxes-solstices.
        (calendar-holiday-list): Rewrote to accomodate the name changes
        above and the unquoting of calendar-holidays.
        (calendar-cursor-holidays):  Change screen-width to frame-width.
        (holiday-sexp): Rewritten.
1993-06-22 03:24:23 +00:00
Jim Blandy
c6b6c929dc * cal-mayan.el (calendar-mayan-days-before-absolute-zero,
calendar-mayan-haab-difference, calendar-mayan-tzolkin-difference,
        calendar-mayan-tzolkin-haab-on-or-before,
        calendar-previous-calendar-round-date,
        calendar-absolute-from-mayan-long-count,
        calendar-print-mayan-date): Fix doc strings.
1993-06-22 03:23:59 +00:00
Jim Blandy
a92ade89ed * solar.el (calendar-holiday-solar-equinoxes-solstices): Renamed
solar-equinoxes-solstices.
        (calendar-time-display-form, calendar-latitude,
        calendar-longitude): Moved from calendar.el.
        (calendar-time-zone, calendar-standard-time-zone-name,
        calendar-daylight-time-zone-name,
        calendar-daylight-savings-starts, calendar-daylight-savings-ends):
        Take default values from calendar-current-time-zone, instead of
        being overwritten in open code if they were set to nil.
        (solar-time-string): Subtract calendar-daylight-time-offset when
        computing dst-ends.  Avoid rounding errors when rounding time to
        the nearest minute.
1993-06-22 03:22:40 +00:00
Jim Blandy
354d06443e * calendar.el (calendar-version): Update to 5.1. Fixed a variety
of spelling error in comments and doc strings.
        (calendar-sexp-debug): New variable to turn off error catching.
	(calendar-absolute-from-gregorian): Removed unused vars month, day.
        (view-calendar-holidays-initially, all-hebrew-calendar-holidays,
        all-christian-calendar-holidays, all-christian-islamic-holidays,
        diary-nonmarking-symbol, hebrew-diary-entry-symbol,
        islamic-diary-entry-symbol, diary-include-string,
        abbreviated-calendar-year, european-calendar-style,
        european-calendar-display-form, american-calendar-display-form,
        calendar-date-display-form, print-diary-entries-hook,
        list-diary-entries-hook, nongregorian-diary-listing-hook,
        nongregorian-diary-marking-hook, diary-list-include-blanks,
        holidays-in-diary-buffer, general-holidays,
        increment-calendar-month, calendar-sum, calendar-string-spread,
        calendar-absolute-from-iso, calendar-print-iso-date,
        hebrew-calendar-elapsed-days, list-yahrzeit-dates,
        calendar-print-astro-day-number): Fix doc strings.
        (calendar-nth-named-day): Rewritten to include optional day of month.
        (general-holidays, calendar-holidays, hebrew-holidays,
        christian-holidays, islamic-holidays,
        solar-holidays): Rewritten to include require of cal-dst.el and to
        show the time of the change to/from daylight savings time.
        (calendar-current-time-zone, calendar-time-zone,
        calendar-daylight-time-offset, calendar-standard-time-zone-name,
        calendar-daylight-time-zone-name, calendar-daylight-savings-starts,
        calendar-daylight-savings-ends,
        calendar-daylight-savings-switchover-time): Moved to cal-dst.el.
        (calendar-location-name, calendar-time-display-form, calendar-latitude,
        calendar-longitude): Moved to solar.el.
        (calendar-holidays): Unquote it!
1993-06-22 03:22:12 +00:00
Jim Blandy
e2fe2f5238 *solar.el (solar-setup, solar-ephemeris-time, sunrise-sunset): Change
Universal Time (UT) to Coordinated Universal Time (UTC).
        (solar-time-string): Use calendar-daylight-time-offset instead of
        1 hr, and use calendar-daylight-savings-switchover-time instead of
        midnight.  Add an optional parameter to allow forcing the use of
        standard or daylight savings time.  Fix code so it works in
        southern hemisphere (start of dst precedes end of dst in a
        calendar year) and when dst either starts or ends in a calendar
        year, but not both.
1993-06-16 23:12:21 +00:00
Jim Blandy
23195d9408 * calendar.el (calendar-current-time-zone): Change variable names
to make them more readable.
        (calendar-time-zone, calendar-standard-time-zone-name,
        calendar-daylight-time-zone-name, calendar-daylight-savings-ends,
        calendar-daylight-savings-starts): Don't autload them.

        * calendar.el (calendar-holidays): Quote it to delay evaluation
        until it's needed.
1993-06-16 23:10:55 +00:00
Jim Blandy
e0e8ed67ff * holidays.el: Eval calendar-holidays; don't just use its value. 1993-06-14 15:24:24 +00:00
Jim Blandy
eb8c3be94e Apply typo patches from Paul Eggert. 1993-06-09 11:59:12 +00:00
Richard M. Stallman
2ec778d095 (calendar-mode): Doc fix.
(calendar-mark-ring): New defvar.
1993-06-03 06:12:46 +00:00
Richard M. Stallman
6515fde491 (calendar-daylight-savings-starts, calendar-daylight-savings-ends):
Default to nil if the locale never has DST.
1993-05-24 00:00:19 +00:00
Jim Blandy
c8d190a5c7 * holidays.el: Update reference to the papers in S-P&E.
(filter-visible-calendar-holidays): Test for nil date.
1993-05-22 00:24:21 +00:00
Jim Blandy
facb137b9c Some time-handling patches from Paul Eggert:
* calendar.el (calendar-current-time-zone): New function.
	(calendar-time-zone, calendar-standard-time-zone-name,
	calendar-daylight-time-zone-name): Use it instead of current-time-zone.
	* sendmail.el (mail-do-fcc): Use the same absolute time for both
	current-time-string and current-time-zone.  Adjust to new format
	returned by current-time-zone.
1993-05-20 06:28:46 +00:00
Jim Blandy
2ea2ebebda * calendar.el (hebrew-calendar-yahrzeit): Correct error from S-P&E
paper in test for Adar I 30 date of death for yahrzeit in a
        non-leap year when Shevat 29 must be used.
1993-05-19 19:34:12 +00:00
Richard M. Stallman
e9c78f076c (calendar-mode-map): Add arrow key bindings. 1993-05-07 17:40:01 +00:00
Jim Blandy
e4c61e50a6 * calendar.el: Update reference to the papers in S-P&E.
(calendar-print-astro-day-number): Correct spelling error in
         message string.
1993-05-03 22:56:42 +00:00
Jim Blandy
cb0d33b2a1 * calendar.el (calendar-standard-time-zone-name,
calendar-daylight-time-zone-name): Initialize these at load-time,
	as well as calendar-time-zone.

	* calendar.el (calendar-time-zone): Fix code which initializes
	this.
1993-03-25 01:28:21 +00:00
Jim Blandy
558b2117a0 * diary-insert.el: Change the name to diary-ins.el.
* calendar.el: Change all autoload references to diary-ins.
1993-03-23 02:16:18 +00:00
Eric S. Raymond
68e6022543 Corrected Keywords header 1993-03-18 21:44:24 +00:00