aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-02-16 00:23:54 -0800
committerGlenn Morris2012-02-16 00:23:54 -0800
commitd1354af0f367540d23b83d58e002b41302ad295e (patch)
tree381c5a27264b54bf7c4c743d1a3046da07046d93
parentd68cd0870562e11ac3d16e3176af22d4785ecea6 (diff)
downloademacs-d1354af0f367540d23b83d58e002b41302ad295e.tar.gz
emacs-d1354af0f367540d23b83d58e002b41302ad295e.zip
* doc/emacs/calendar.texi: Misc small changes.
-rw-r--r--doc/emacs/ChangeLog2
-rw-r--r--doc/emacs/calendar.texi69
2 files changed, 35 insertions, 36 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index d60ae39d24f..b7e7e30c8fc 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,5 +1,7 @@
12012-02-16 Glenn Morris <rgm@gnu.org> 12012-02-16 Glenn Morris <rgm@gnu.org>
2 2
3 * calendar.texi: Misc small changes.
4
3 * vc1-xtra.texi (VC Delete/Rename, CVS Options): 5 * vc1-xtra.texi (VC Delete/Rename, CVS Options):
4 * cal-xtra.texi (Diary Display): Fix TeX cross-refs to other manuals. 6 * cal-xtra.texi (Diary Display): Fix TeX cross-refs to other manuals.
5 7
diff --git a/doc/emacs/calendar.texi b/doc/emacs/calendar.texi
index 495828d6d8a..4687c044df2 100644
--- a/doc/emacs/calendar.texi
+++ b/doc/emacs/calendar.texi
@@ -143,8 +143,7 @@ arguments in Calendar mode even without the Meta modifier. For example,
143 143
144 A week (or month, or year) is not just a quantity of days; we think of 144 A week (or month, or year) is not just a quantity of days; we think of
145weeks (months, years) as starting on particular dates. So Calendar mode 145weeks (months, years) as starting on particular dates. So Calendar mode
146provides commands to move to the beginning or end of a week, month or 146provides commands to move to the start or end of a week, month or year:
147year:
148 147
149@table @kbd 148@table @kbd
150@kindex C-a @r{(Calendar mode)} 149@kindex C-a @r{(Calendar mode)}
@@ -246,12 +245,10 @@ Scroll calendar one month forward (@code{calendar-scroll-left}).
246Scroll calendar one month backward (@code{calendar-scroll-right}). 245Scroll calendar one month backward (@code{calendar-scroll-right}).
247@item C-v 246@item C-v
248@itemx @key{next} 247@itemx @key{next}
249Scroll calendar three months forward 248Scroll three months forward (@code{calendar-scroll-left-three-months}).
250(@code{calendar-scroll-left-three-months}).
251@item M-v 249@item M-v
252@itemx @key{prior} 250@itemx @key{prior}
253Scroll calendar three months backward 251Scroll three months backward (@code{calendar-scroll-right-three-months}).
254(@code{calendar-scroll-right-three-months}).
255@end table 252@end table
256 253
257@kindex > @r{(Calendar mode)} 254@kindex > @r{(Calendar mode)}
@@ -290,7 +287,8 @@ Display the number of days in the current region
290 287
291@kindex M-= @r{(Calendar mode)} 288@kindex M-= @r{(Calendar mode)}
292@findex calendar-count-days-region 289@findex calendar-count-days-region
293 To determine the number of days in the region, type @kbd{M-=} 290 To determine the number of days in a range, set the mark on one
291date using @kbd{C-SPC}, move point to another date, and type @kbd{M-=}
294(@code{calendar-count-days-region}). The numbers of days shown is 292(@code{calendar-count-days-region}). The numbers of days shown is
295@emph{inclusive}; that is, it includes the days specified by mark and 293@emph{inclusive}; that is, it includes the days specified by mark and
296point. 294point.
@@ -342,6 +340,8 @@ buries all buffers related to the calendar, selecting other buffers.
342calendar deletes or iconifies that frame depending on the value of 340calendar deletes or iconifies that frame depending on the value of
343@code{calendar-remove-frame-by-deleting}.) 341@code{calendar-remove-frame-by-deleting}.)
344 342
343@c FIXME this mentions holidays and diary entries, albeit briefly, so
344@c should it be moved after those sections? Or at least xref them.
345@node Writing Calendar Files 345@node Writing Calendar Files
346@section Writing Calendar Files 346@section Writing Calendar Files
347 347
@@ -427,7 +427,7 @@ Generate a Filofax-style calendar for one year
427 Some of these commands print the calendar sideways (in ``landscape 427 Some of these commands print the calendar sideways (in ``landscape
428mode''), so it can be wider than it is long. Some of them use Filofax 428mode''), so it can be wider than it is long. Some of them use Filofax
429paper size (3.75in x 6.75in). All of these commands accept a prefix 429paper size (3.75in x 6.75in). All of these commands accept a prefix
430argument which specifies how many days, weeks, months or years to print 430argument, which specifies how many days, weeks, months or years to print
431(starting always with the selected one). 431(starting always with the selected one).
432 432
433 If the variable @code{cal-tex-holidays} is non-@code{nil} (the default), 433 If the variable @code{cal-tex-holidays} is non-@code{nil} (the default),
@@ -452,11 +452,10 @@ to.
452and can display them. You can add your own holidays to the default list. 452and can display them. You can add your own holidays to the default list.
453 453
454@table @kbd 454@table @kbd
455@item h 455@item Mouse-3 Holidays
456@itemx h
456Display holidays for the selected date 457Display holidays for the selected date
457(@code{calendar-cursor-holidays}). 458(@code{calendar-cursor-holidays}).
458@item Mouse-3 Holidays
459Display any holidays for the date you click on.
460@item x 459@item x
461Mark holidays in the calendar window (@code{calendar-mark-holidays}). 460Mark holidays in the calendar window (@code{calendar-mark-holidays}).
462@item u 461@item u
@@ -518,6 +517,7 @@ the calendar displays holidays in this way. If you want the list of
518holidays centered around a different month, use @kbd{C-u M-x 517holidays centered around a different month, use @kbd{C-u M-x
519holidays}, which prompts for the month and year. 518holidays}, which prompts for the month and year.
520 519
520@c FIXME can we write Baha'i properly?
521 The holidays known to Emacs include United States holidays and the 521 The holidays known to Emacs include United States holidays and the
522major Baha'i, Chinese, Christian, Islamic, and Jewish holidays; also the 522major Baha'i, Chinese, Christian, Islamic, and Jewish holidays; also the
523solstices and equinoxes. 523solstices and equinoxes.
@@ -541,11 +541,10 @@ practice}, not historical fact. For example Veteran's Day began in
541times of sunrise and sunset for any date. 541times of sunrise and sunset for any date.
542 542
543@table @kbd 543@table @kbd
544@item S 544@item Mouse-3 Sunrise/sunset
545@itemx S
545Display times of sunrise and sunset for the selected date 546Display times of sunrise and sunset for the selected date
546(@code{calendar-sunrise-sunset}). 547(@code{calendar-sunrise-sunset}).
547@item Mouse-3 Sunrise/sunset
548Display times of sunrise and sunset for the date you click on.
549@item M-x sunrise-sunset 548@item M-x sunrise-sunset
550Display times of sunrise and sunset for today's date. 549Display times of sunrise and sunset for today's date.
551@item C-u M-x sunrise-sunset 550@item C-u M-x sunrise-sunset
@@ -615,9 +614,8 @@ for how daylight saving time is determined.
615 614
616 As a user, you might find it convenient to set the calendar location 615 As a user, you might find it convenient to set the calendar location
617variables for your usual physical location in your @file{.emacs} file. 616variables for your usual physical location in your @file{.emacs} file.
618And when you install Emacs on a machine, you can create a 617If you are a system administrator, you may want to set these variables
619@file{default.el} file which sets them properly for the typical location 618for all users in a @file{default.el} file. @xref{Init File}.
620of most users of that machine. @xref{Init File}.
621 619
622@node Lunar Phases 620@node Lunar Phases
623@section Phases of the Moon 621@section Phases of the Moon
@@ -666,8 +664,8 @@ sixteenth century and was not widely used before the eighteenth century;
666it did not fully displace the Julian calendar and gain universal 664it did not fully displace the Julian calendar and gain universal
667acceptance until the early twentieth century. The Emacs calendar can 665acceptance until the early twentieth century. The Emacs calendar can
668display any month since January, year 1 of the current era, but the 666display any month since January, year 1 of the current era, but the
669calendar displayed is the Gregorian, even for a date at which the 667calendar displayed is always the Gregorian, even for a date at which
670Gregorian calendar did not exist. 668the Gregorian calendar did not exist.
671 669
672 While Emacs cannot display other calendars, it can convert dates to 670 While Emacs cannot display other calendars, it can convert dates to
673and from several other calendars. 671and from several other calendars.
@@ -680,11 +678,13 @@ and from several other calendars.
680* Mayan Calendar:: Moving to a date specified in a Mayan calendar. 678* Mayan Calendar:: Moving to a date specified in a Mayan calendar.
681@end menu 679@end menu
682 680
681@c FIXME perhaps most of the details should be moved to cal-xtra.
682@c Just list the major supported systems here?
683@node Calendar Systems 683@node Calendar Systems
684@subsection Supported Calendar Systems 684@subsection Supported Calendar Systems
685 685
686@cindex ISO commercial calendar 686@cindex ISO commercial calendar
687 The ISO commercial calendar is used largely in Europe. 687 The ISO commercial calendar is often used in business.
688 688
689@cindex Julian calendar 689@cindex Julian calendar
690 The Julian calendar, named after Julius Caesar, was the one used in Europe 690 The Julian calendar, named after Julius Caesar, was the one used in Europe
@@ -745,7 +745,8 @@ championed by Birashk, based on a 2,820-year cycle. It differs from
745the astronomical Persian calendar, which is based on astronomical 745the astronomical Persian calendar, which is based on astronomical
746events. As of this writing the first future discrepancy is projected 746events. As of this writing the first future discrepancy is projected
747to occur on March 20, 2025. It is currently not clear what the 747to occur on March 20, 2025. It is currently not clear what the
748official calendar of Iran will be that far into the future. 748official calendar of Iran will be at that time.
749@c FIXME not so far in the future now.
749 750
750@cindex Chinese calendar 751@cindex Chinese calendar
751 The Chinese calendar is a complicated system of lunar months arranged 752 The Chinese calendar is a complicated system of lunar months arranged
@@ -768,11 +769,10 @@ between the 18th and 19th months.
768in various other calendar systems: 769in various other calendar systems:
769 770
770@table @kbd 771@table @kbd
771@item Mouse-3 Other calendars
772Display the date that you click on, expressed in various other calendars.
773@kindex p @r{(Calendar mode)} 772@kindex p @r{(Calendar mode)}
774@findex calendar-print-other-dates 773@findex calendar-print-other-dates
775@item p o 774@item Mouse-3 Other calendars
775@itemx p o
776Display the selected date in various other calendars. 776Display the selected date in various other calendars.
777(@code{calendar-print-other-dates}). 777(@code{calendar-print-other-dates}).
778@findex calendar-iso-print-date 778@findex calendar-iso-print-date
@@ -821,18 +821,16 @@ Display Persian date for selected day
821Display Mayan date for selected day (@code{calendar-mayan-print-date}). 821Display Mayan date for selected day (@code{calendar-mayan-print-date}).
822@end table 822@end table
823 823
824 If you are using a graphic display, the easiest way to translate a
825date into other calendars is to click on it with @kbd{Mouse-3}, then
826choose @kbd{Other calendars} from the menu that appears. This displays
827the equivalent forms of the date in all the calendars Emacs understands,
828in the form of a menu. (Choosing an alternative from this menu doesn't
829actually do anything---the menu is used only for display.)
830
831 Otherwise, move point to the date you want to convert, then type the 824 Otherwise, move point to the date you want to convert, then type the
832appropriate command starting with @kbd{p} from the table above. The 825appropriate command starting with @kbd{p} from the table above. The
833prefix @kbd{p} is a mnemonic for ``print,'' since Emacs ``prints'' the 826prefix @kbd{p} is a mnemonic for ``print,'' since Emacs ``prints'' the
834equivalent date in the echo area. @kbd{p o} displays the 827equivalent date in the echo area. @kbd{p o} displays the
835date in all forms known to Emacs. 828date in all forms known to Emacs. You can also use @kbd{Mouse-3} and
829then choose @kbd{Other calendars} from the menu that appears. This
830displays the equivalent forms of the date in all the calendars Emacs
831understands, in the form of a menu. (Choosing an alternative from
832this menu doesn't actually do anything---the menu is used only for
833display.)
836 834
837@node From Other Calendar 835@node From Other Calendar
838@subsection Converting From Other Calendars 836@subsection Converting From Other Calendars
@@ -903,7 +901,7 @@ Islamic, or French names.
903@c FIXME move? 901@c FIXME move?
904@findex calendar-hebrew-list-yahrzeits 902@findex calendar-hebrew-list-yahrzeits
905@cindex yahrzeits 903@cindex yahrzeits
906 One common question concerning the Hebrew calendar is the computation 904 One common issue concerning the Hebrew calendar is the computation
907of the anniversary of a date of death, called a ``yahrzeit.'' The Emacs 905of the anniversary of a date of death, called a ``yahrzeit.'' The Emacs
908calendar includes a facility for such calculations. If you are in the 906calendar includes a facility for such calculations. If you are in the
909calendar, the command @kbd{M-x calendar-hebrew-list-yahrzeits} asks you for 907calendar, the command @kbd{M-x calendar-hebrew-list-yahrzeits} asks you for
@@ -1053,11 +1051,10 @@ it. You can also view today's events outside of Calendar mode. In the
1053following, key bindings refer to the Calendar buffer. 1051following, key bindings refer to the Calendar buffer.
1054 1052
1055@table @kbd 1053@table @kbd
1056@item d 1054@item Mouse-3 Diary
1055@itemx d
1057Display all diary entries for the selected date 1056Display all diary entries for the selected date
1058(@code{diary-view-entries}). 1057(@code{diary-view-entries}).
1059@item Mouse-3 Diary
1060Display all diary entries for the date you click on.
1061@item s 1058@item s
1062Display the entire diary file (@code{diary-show-all-entries}). 1059Display the entire diary file (@code{diary-show-all-entries}).
1063@item m 1060@item m