aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-12-05 03:08:30 +0000
committerGlenn Morris2009-12-05 03:08:30 +0000
commita8a1f60e390a1eb915d395bba67e6d58eeb3b259 (patch)
tree8153d3787b9ab1f2de2791bed562c6e8f93824fc
parentcad04c66c5ba8364cfd9dfc9bc2987fcccf1cd7e (diff)
downloademacs-a8a1f60e390a1eb915d395bba67e6d58eeb3b259.tar.gz
emacs-a8a1f60e390a1eb915d395bba67e6d58eeb3b259.zip
(Displaying the Diary): Holidays may be in the buffer
or mode line. Don't mention invisible text or the details of diary-print-entries here, only in cal-xtra. (Format of Diary File): Mention that the "date on first line" format only really affects the simple display.
-rw-r--r--doc/emacs/calendar.texi86
1 files changed, 39 insertions, 47 deletions
diff --git a/doc/emacs/calendar.texi b/doc/emacs/calendar.texi
index 8b56b656a3f..57be44ad6da 100644
--- a/doc/emacs/calendar.texi
+++ b/doc/emacs/calendar.texi
@@ -1,6 +1,7 @@
1@c This is part of the Emacs manual. 1@c This is part of the Emacs manual.
2@c Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1997, 2000, 2001, 2@c Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1997, 2000, 2001,
3@c 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 3@c 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4@c Free Software Foundation, Inc.
4@c See file emacs.texi for copying conditions. 5@c See file emacs.texi for copying conditions.
5@node Calendar/Diary, Document View, Dired, Top 6@node Calendar/Diary, Document View, Dired, Top
6@chapter The Calendar and the Diary 7@chapter The Calendar and the Diary
@@ -1076,11 +1077,18 @@ Mail yourself email reminders about upcoming diary entries.
1076@vindex calendar-view-diary-initially-flag 1077@vindex calendar-view-diary-initially-flag
1077 Displaying the diary entries with @kbd{d} shows in a separate window 1078 Displaying the diary entries with @kbd{d} shows in a separate window
1078the diary entries for the selected date in the calendar. The mode line 1079the diary entries for the selected date in the calendar. The mode line
1079of the new window shows the date of the diary entries and any holidays 1080of the new window shows the date of the diary entries. Holidays are
1080that fall on that date. If you specify a numeric argument with @kbd{d}, 1081shown either in the buffer or in the mode line, depending on the display
1081it shows all the diary entries for that many successive days. Thus, 1082method you choose
1082@kbd{2 d} displays all the entries for the selected date and for the 1083@iftex
1083following day. 1084(@pxref{Diary Display,, emacs-xtra}).
1085@end iftex
1086@ifnottex
1087(@pxref{Diary Display}).
1088@end ifnottex
1089If you specify a numeric argument with @kbd{d}, it shows all the diary
1090entries for that many successive days. Thus, @kbd{2 d} displays all the
1091entries for the selected date and for the following day.
1084 1092
1085 Another way to display the diary entries for a date is to click 1093 Another way to display the diary entries for a date is to click
1086@kbd{Mouse-3} on the date, and then choose @kbd{Diary entries} from 1094@kbd{Mouse-3} on the date, and then choose @kbd{Diary entries} from
@@ -1093,7 +1101,7 @@ current date is visible).
1093@findex diary-mark-entries 1101@findex diary-mark-entries
1094@vindex calendar-mark-diary-entries-flag 1102@vindex calendar-mark-diary-entries-flag
1095 To get a broader view of which days are mentioned in the diary, use 1103 To get a broader view of which days are mentioned in the diary, use
1096the @kbd{m} command. This displays the dates that have diary entries in 1104the @kbd{m} command. This marks the dates that have diary entries in
1097a different face. 1105a different face.
1098@iftex 1106@iftex
1099@inforef{Calendar Customizing, diary-entry-marker, emacs-xtra}. 1107@inforef{Calendar Customizing, diary-entry-marker, emacs-xtra}.
@@ -1114,14 +1122,6 @@ updating the calendar marks diary dates automatically.
1114 To see the full diary file, rather than just some of the entries, use 1122 To see the full diary file, rather than just some of the entries, use
1115the @kbd{s} command. 1123the @kbd{s} command.
1116 1124
1117 Display of selected diary entries uses invisible text to hide entries
1118that don't apply. The diary buffer as you see it is an illusion, so
1119simply printing the buffer does not print what you see on your screen.
1120There is a special command to print hard copy of the diary buffer
1121@emph{as it appears}; this command is @kbd{M-x diary-print-entries}.
1122It sends the data directly to the printer. You can customize it
1123like @code{lpr-region} (@pxref{Printing}).
1124
1125@findex diary 1125@findex diary
1126 The command @kbd{M-x diary} displays the diary entries for the current 1126 The command @kbd{M-x diary} displays the diary entries for the current
1127date, independently of the calendar display, and optionally for the next 1127date, independently of the calendar display, and optionally for the next
@@ -1136,8 +1136,7 @@ how many days to include.
1136 1136
1137 If you put @code{(diary)} in your @file{.emacs} file, this 1137 If you put @code{(diary)} in your @file{.emacs} file, this
1138automatically displays a window with the day's diary entries, when you 1138automatically displays a window with the day's diary entries, when you
1139enter Emacs. The mode line of the displayed window shows the date and 1139enter Emacs.
1140any holidays that fall on that date.
1141 1140
1142@findex diary-mail-entries 1141@findex diary-mail-entries
1143@vindex diary-mail-days 1142@vindex diary-mail-days
@@ -1168,19 +1167,9 @@ first must begin with whitespace to indicate they continue a previous
1168entry. Lines that do not begin with valid dates and do not continue a 1167entry. Lines that do not begin with valid dates and do not continue a
1169preceding entry are ignored. 1168preceding entry are ignored.
1170 1169
1171@vindex diary-nonmarking-symbol 1170 You can also use a format where the first line of a diary entry
1172 You can inhibit the marking of certain diary entries in the calendar 1171consists only of the date or day name (with no following blanks or
1173window; to do this, insert an ampersand @code{diary-nonmarking-symbol} 1172punctuation). For example:
1174(default @samp{&}) at the beginning of the entry, before the date. This
1175has no effect on display of the entry in the diary window; it affects
1176only marks on dates in the calendar window. Nonmarking entries are
1177especially useful for generic entries that would otherwise mark many
1178different dates.
1179
1180 If the first line of a diary entry consists only of the date or day
1181name with no following blanks or punctuation, then the diary window
1182display doesn't include that line; only the continuation lines appear.
1183For example, this entry:
1184 1173
1185@example 1174@example
118602/11/1989 117502/11/1989
@@ -1193,24 +1182,27 @@ For example, this entry:
1193@end example 1182@end example
1194 1183
1195@noindent 1184@noindent
1196appears in the diary window without the date line at the beginning. 1185This entry will have a different appearance if you use the simple diary
1197This style of entry looks neater when you display just a single day's 1186display
1198entries, but can cause confusion if you ask for more than one day's 1187@iftex
1199entries. 1188(@pxref{Diary Display,, emacs-xtra}).
1189@end iftex
1190@ifnottex
1191(@pxref{Diary Display}).
1192@end ifnottex
1193The simple diary display omits the date line at the beginning; only the
1194continuation lines appear. This style of entry looks neater when you
1195display just a single day's entries, but can cause confusion if you ask
1196for more than one day's entries.
1200 1197
1201 You can edit the diary entries as they appear in the window, but it is 1198@vindex diary-nonmarking-symbol
1202important to remember that the buffer displayed contains the @emph{entire} 1199 You can inhibit the marking of certain diary entries in the calendar
1203diary file, with portions of it concealed from view. This means, for 1200window; to do this, insert an ampersand @code{diary-nonmarking-symbol}
1204instance, that the @kbd{C-f} (@code{forward-char}) command can put point 1201(default @samp{&}) at the beginning of the entry, before the date. This
1205at what appears to be the end of the line, but what is in reality the 1202has no effect on display of the entry in the diary window; it affects
1206middle of some concealed line. 1203only marks on dates in the calendar window. Nonmarking entries are
1207 1204especially useful for generic entries that would otherwise mark many
1208 @emph{Be careful when editing the diary entries!} Inserting 1205different dates.
1209additional lines or adding/deleting characters in the middle of a
1210visible line cannot cause problems, but editing at the end of a line may
1211not do what you expect. Deleting a line may delete other invisible
1212entries that follow it. Before editing the diary, it is best to display
1213the entire file with @kbd{s} (@code{diary-show-all-entries}).
1214 1206
1215@node Date Formats 1207@node Date Formats
1216@subsection Date Formats 1208@subsection Date Formats