diff options
| author | Glenn Morris | 2012-02-16 00:23:54 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-02-16 00:23:54 -0800 |
| commit | d1354af0f367540d23b83d58e002b41302ad295e (patch) | |
| tree | 381c5a27264b54bf7c4c743d1a3046da07046d93 | |
| parent | d68cd0870562e11ac3d16e3176af22d4785ecea6 (diff) | |
| download | emacs-d1354af0f367540d23b83d58e002b41302ad295e.tar.gz emacs-d1354af0f367540d23b83d58e002b41302ad295e.zip | |
* doc/emacs/calendar.texi: Misc small changes.
| -rw-r--r-- | doc/emacs/ChangeLog | 2 | ||||
| -rw-r--r-- | doc/emacs/calendar.texi | 69 |
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 @@ | |||
| 1 | 2012-02-16 Glenn Morris <rgm@gnu.org> | 1 | 2012-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 |
| 145 | weeks (months, years) as starting on particular dates. So Calendar mode | 145 | weeks (months, years) as starting on particular dates. So Calendar mode |
| 146 | provides commands to move to the beginning or end of a week, month or | 146 | provides commands to move to the start or end of a week, month or year: |
| 147 | year: | ||
| 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}). | |||
| 246 | Scroll calendar one month backward (@code{calendar-scroll-right}). | 245 | Scroll calendar one month backward (@code{calendar-scroll-right}). |
| 247 | @item C-v | 246 | @item C-v |
| 248 | @itemx @key{next} | 247 | @itemx @key{next} |
| 249 | Scroll calendar three months forward | 248 | Scroll 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} |
| 253 | Scroll calendar three months backward | 251 | Scroll 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 |
| 291 | date 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 |
| 296 | point. | 294 | point. |
| @@ -342,6 +340,8 @@ buries all buffers related to the calendar, selecting other buffers. | |||
| 342 | calendar deletes or iconifies that frame depending on the value of | 340 | calendar 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 |
| 428 | mode''), so it can be wider than it is long. Some of them use Filofax | 428 | mode''), so it can be wider than it is long. Some of them use Filofax |
| 429 | paper size (3.75in x 6.75in). All of these commands accept a prefix | 429 | paper size (3.75in x 6.75in). All of these commands accept a prefix |
| 430 | argument which specifies how many days, weeks, months or years to print | 430 | argument, 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. | |||
| 452 | and can display them. You can add your own holidays to the default list. | 452 | and 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 | ||
| 456 | Display holidays for the selected date | 457 | Display holidays for the selected date |
| 457 | (@code{calendar-cursor-holidays}). | 458 | (@code{calendar-cursor-holidays}). |
| 458 | @item Mouse-3 Holidays | ||
| 459 | Display any holidays for the date you click on. | ||
| 460 | @item x | 459 | @item x |
| 461 | Mark holidays in the calendar window (@code{calendar-mark-holidays}). | 460 | Mark 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 | |||
| 518 | holidays centered around a different month, use @kbd{C-u M-x | 517 | holidays centered around a different month, use @kbd{C-u M-x |
| 519 | holidays}, which prompts for the month and year. | 518 | holidays}, 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 |
| 522 | major Baha'i, Chinese, Christian, Islamic, and Jewish holidays; also the | 522 | major Baha'i, Chinese, Christian, Islamic, and Jewish holidays; also the |
| 523 | solstices and equinoxes. | 523 | solstices and equinoxes. |
| @@ -541,11 +541,10 @@ practice}, not historical fact. For example Veteran's Day began in | |||
| 541 | times of sunrise and sunset for any date. | 541 | times 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 | ||
| 545 | Display times of sunrise and sunset for the selected date | 546 | Display 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 | ||
| 548 | Display times of sunrise and sunset for the date you click on. | ||
| 549 | @item M-x sunrise-sunset | 548 | @item M-x sunrise-sunset |
| 550 | Display times of sunrise and sunset for today's date. | 549 | Display 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 |
| 617 | variables for your usual physical location in your @file{.emacs} file. | 616 | variables for your usual physical location in your @file{.emacs} file. |
| 618 | And when you install Emacs on a machine, you can create a | 617 | If 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 | 618 | for all users in a @file{default.el} file. @xref{Init File}. |
| 620 | of 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; | |||
| 666 | it did not fully displace the Julian calendar and gain universal | 664 | it did not fully displace the Julian calendar and gain universal |
| 667 | acceptance until the early twentieth century. The Emacs calendar can | 665 | acceptance until the early twentieth century. The Emacs calendar can |
| 668 | display any month since January, year 1 of the current era, but the | 666 | display any month since January, year 1 of the current era, but the |
| 669 | calendar displayed is the Gregorian, even for a date at which the | 667 | calendar displayed is always the Gregorian, even for a date at which |
| 670 | Gregorian calendar did not exist. | 668 | the 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 |
| 673 | and from several other calendars. | 671 | and 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 | |||
| 745 | the astronomical Persian calendar, which is based on astronomical | 745 | the astronomical Persian calendar, which is based on astronomical |
| 746 | events. As of this writing the first future discrepancy is projected | 746 | events. As of this writing the first future discrepancy is projected |
| 747 | to occur on March 20, 2025. It is currently not clear what the | 747 | to occur on March 20, 2025. It is currently not clear what the |
| 748 | official calendar of Iran will be that far into the future. | 748 | official 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. | |||
| 768 | in various other calendar systems: | 769 | in various other calendar systems: |
| 769 | 770 | ||
| 770 | @table @kbd | 771 | @table @kbd |
| 771 | @item Mouse-3 Other calendars | ||
| 772 | Display 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 | ||
| 776 | Display the selected date in various other calendars. | 776 | Display 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 | |||
| 821 | Display Mayan date for selected day (@code{calendar-mayan-print-date}). | 821 | Display 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 | ||
| 825 | date into other calendars is to click on it with @kbd{Mouse-3}, then | ||
| 826 | choose @kbd{Other calendars} from the menu that appears. This displays | ||
| 827 | the equivalent forms of the date in all the calendars Emacs understands, | ||
| 828 | in the form of a menu. (Choosing an alternative from this menu doesn't | ||
| 829 | actually 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 |
| 832 | appropriate command starting with @kbd{p} from the table above. The | 825 | appropriate command starting with @kbd{p} from the table above. The |
| 833 | prefix @kbd{p} is a mnemonic for ``print,'' since Emacs ``prints'' the | 826 | prefix @kbd{p} is a mnemonic for ``print,'' since Emacs ``prints'' the |
| 834 | equivalent date in the echo area. @kbd{p o} displays the | 827 | equivalent date in the echo area. @kbd{p o} displays the |
| 835 | date in all forms known to Emacs. | 828 | date in all forms known to Emacs. You can also use @kbd{Mouse-3} and |
| 829 | then choose @kbd{Other calendars} from the menu that appears. This | ||
| 830 | displays the equivalent forms of the date in all the calendars Emacs | ||
| 831 | understands, in the form of a menu. (Choosing an alternative from | ||
| 832 | this menu doesn't actually do anything---the menu is used only for | ||
| 833 | display.) | ||
| 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 |
| 907 | of the anniversary of a date of death, called a ``yahrzeit.'' The Emacs | 905 | of the anniversary of a date of death, called a ``yahrzeit.'' The Emacs |
| 908 | calendar includes a facility for such calculations. If you are in the | 906 | calendar includes a facility for such calculations. If you are in the |
| 909 | calendar, the command @kbd{M-x calendar-hebrew-list-yahrzeits} asks you for | 907 | calendar, 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 | |||
| 1053 | following, key bindings refer to the Calendar buffer. | 1051 | following, 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 | ||
| 1057 | Display all diary entries for the selected date | 1056 | Display all diary entries for the selected date |
| 1058 | (@code{diary-view-entries}). | 1057 | (@code{diary-view-entries}). |
| 1059 | @item Mouse-3 Diary | ||
| 1060 | Display all diary entries for the date you click on. | ||
| 1061 | @item s | 1058 | @item s |
| 1062 | Display the entire diary file (@code{diary-show-all-entries}). | 1059 | Display the entire diary file (@code{diary-show-all-entries}). |
| 1063 | @item m | 1060 | @item m |