]> code.delx.au - gnu-emacs/blobdiff - lispref/calendar.texi
(calendar-mouse-view-other-diary-entries): Fix name
[gnu-emacs] / lispref / calendar.texi
index 851155fb38ce22c5e7a9e8a94af266a27e1c6f73..4b60a19505bc67e680a8ab533ed5ac519f9a0f66 100644 (file)
@@ -1,8 +1,8 @@
 @c -*-texinfo-*-
 @c This is part of the GNU Emacs Lisp Reference Manual.
-@c Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation, Inc. 
+@c Copyright (C) 1990, 1991, 1992, 1993, 1995, 1998 Free Software Foundation, Inc. 
 @c See the file elisp.texi for copying conditions.
-@node Calendar, Tips, Display, Top
+@node Calendar, System Interface, Display, Top
 @chapter Customizing the Calendar and Diary
 
   There are many customizations that you can use to make the calendar and
@@ -30,7 +30,7 @@ diary suit your personal tastes.
 @code{t}, calling up the calendar automatically displays the diary
 entries for the current date as well.  The diary dates appear only if
 the current date is visible.  If you add both of the following lines to
-your @file{.emacs} file:@refill
+your init file:@refill
 
 @example
 (setq view-diary-entries-initially t)
@@ -52,8 +52,7 @@ window.
 @code{t} in order to mark any dates with diary entries.  This takes
 effect whenever the calendar window contents are recomputed.  There are
 two ways of marking these dates: by changing the face (@pxref{Faces}),
-if the display supports that, or by placing a plus sign (@samp{+})
-beside the date otherwise.
+or by placing a plus sign (@samp{+}) beside the date.
 
 @vindex mark-holidays-in-calendar
   Similarly, setting the variable @code{mark-holidays-in-calendar} to
@@ -68,8 +67,7 @@ the date, or a face name to use for displaying the date.  Likewise, the
 variable @code{diary-entry-marker} specifies how to mark a date that has
 diary entries.  The calendar creates faces named @code{holiday-face} and
 @code{diary-face} for these purposes; those symbols are the default
-values of these variables, when Emacs supports multiple faces on your
-terminal.
+values of these variables.
 
 @vindex calendar-load-hook
   The variable @code{calendar-load-hook} is a normal hook run when the
@@ -109,14 +107,17 @@ The variable @code{calendar-today-marker} specifies how to mark today's
 date.  Its value should be a character to insert next to the date or a
 face name to use for displaying the date.  A face named
 @code{calendar-today-face} is provided for this purpose; that symbol is
-the default for this variable when Emacs supports multiple faces on your
-terminal.
+the default for this variable.
 
 @vindex today-invisible-calendar-hook
 @noindent
   A similar normal hook, @code{today-invisible-calendar-hook} is run if
 the current date is @emph{not} visible in the window.
 
+@vindex calendar-move-hook
+  Starting in Emacs 21, each of the calendar cursor motion commands
+runs the hook @code{calendar-move-hook} after it moves the cursor.
+
 @node Holiday Customizing
 @section Customizing the Holidays
 
@@ -577,7 +578,7 @@ HHeshvan 25 Happy Hebrew birthday!
 
 @noindent
 and would appear in the diary for any date that corresponds to Heshvan 25
-on the Hebrew calendar.  And here is  Islamic-date diary entry  that matches
+on the Hebrew calendar.  And here is an Islamic-date diary entry that matches
 Dhu al-Qada 25:
 
 @smallexample
@@ -653,8 +654,8 @@ the entries by the dates they apply to.
 
   As with simple diary display, you can print a hard copy of the buffer
 with @code{print-diary-entries}.  To print a hard copy of a day-by-day
-diary for a week by positioning point on Sunday of that week, type
-@kbd{7 d} and then do @kbd{M-x print-diary-entries}.  As usual, the
+diary for a week, position point on Sunday of that week, type
+@kbd{7 d}, and then do @kbd{M-x print-diary-entries}.  As usual, the
 inclusion of the holidays slows down the display slightly; you can speed
 things up by setting the variable @code{holidays-in-diary-buffer} to
 @code{nil}.
@@ -668,7 +669,7 @@ shown in the fancy diary buffer, set the variable
 @cindex sorting diary entries
   If you use the fancy diary display, you can use the normal hook
 @code{list-diary-entries-hook} to sort each day's diary entries by their
-time of day.  Here's how
+time of day.  Here's how:
 
 @findex sort-diary-entries
 @example
@@ -770,13 +771,13 @@ can use
 
 @findex diary-remind
 @smallexample
-%%(diary-remind '(diary-anniversary 12 22 1968) 7) Ruth & Ed's anniversary
+%%(diary-remind '(diary-anniversary 12 22 1968) 7) Ed's anniversary
 @end smallexample
 
 @noindent
 and the fancy diary will show
 @smallexample
-Ruth & Ed's anniversary
+Ed's anniversary
 @end smallexample
 @noindent
 both on December 15 and on December 22.
@@ -811,7 +812,7 @@ so on.  If @var{n} is negative it counts backward from the end of
 @var{month}.  The value of @var{month} can be a list of months, a single
 month, or @code{t} to specify all months.  You can also use an optional
 parameter @var{day} to specify the @var{n}th @var{dayname} of
-@var{month} on or after/before @var{day}; the value of @{day} defaults
+@var{month} on or after/before @var{day}; the value of @var{day} defaults
 to 1 if @var{n} is positive and to the last day of @var{month} if
 @var{n} is negative.  For example,