diff options
| author | Glenn Morris | 2009-12-05 03:08:30 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-12-05 03:08:30 +0000 |
| commit | a8a1f60e390a1eb915d395bba67e6d58eeb3b259 (patch) | |
| tree | 8153d3787b9ab1f2de2791bed562c6e8f93824fc | |
| parent | cad04c66c5ba8364cfd9dfc9bc2987fcccf1cd7e (diff) | |
| download | emacs-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.texi | 86 |
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 |
| 1078 | the diary entries for the selected date in the calendar. The mode line | 1079 | the diary entries for the selected date in the calendar. The mode line |
| 1079 | of the new window shows the date of the diary entries and any holidays | 1080 | of the new window shows the date of the diary entries. Holidays are |
| 1080 | that fall on that date. If you specify a numeric argument with @kbd{d}, | 1081 | shown either in the buffer or in the mode line, depending on the display |
| 1081 | it shows all the diary entries for that many successive days. Thus, | 1082 | method you choose |
| 1082 | @kbd{2 d} displays all the entries for the selected date and for the | 1083 | @iftex |
| 1083 | following day. | 1084 | (@pxref{Diary Display,, emacs-xtra}). |
| 1085 | @end iftex | ||
| 1086 | @ifnottex | ||
| 1087 | (@pxref{Diary Display}). | ||
| 1088 | @end ifnottex | ||
| 1089 | If you specify a numeric argument with @kbd{d}, it shows all the diary | ||
| 1090 | entries for that many successive days. Thus, @kbd{2 d} displays all the | ||
| 1091 | entries 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 |
| 1096 | the @kbd{m} command. This displays the dates that have diary entries in | 1104 | the @kbd{m} command. This marks the dates that have diary entries in |
| 1097 | a different face. | 1105 | a 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 |
| 1115 | the @kbd{s} command. | 1123 | the @kbd{s} command. |
| 1116 | 1124 | ||
| 1117 | Display of selected diary entries uses invisible text to hide entries | ||
| 1118 | that don't apply. The diary buffer as you see it is an illusion, so | ||
| 1119 | simply printing the buffer does not print what you see on your screen. | ||
| 1120 | There 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}. | ||
| 1122 | It sends the data directly to the printer. You can customize it | ||
| 1123 | like @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 |
| 1127 | date, independently of the calendar display, and optionally for the next | 1127 | date, 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 |
| 1138 | automatically displays a window with the day's diary entries, when you | 1138 | automatically displays a window with the day's diary entries, when you |
| 1139 | enter Emacs. The mode line of the displayed window shows the date and | 1139 | enter Emacs. |
| 1140 | any 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 | |||
| 1168 | entry. Lines that do not begin with valid dates and do not continue a | 1167 | entry. Lines that do not begin with valid dates and do not continue a |
| 1169 | preceding entry are ignored. | 1168 | preceding 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 | 1171 | consists only of the date or day name (with no following blanks or |
| 1173 | window; to do this, insert an ampersand @code{diary-nonmarking-symbol} | 1172 | punctuation). For example: |
| 1174 | (default @samp{&}) at the beginning of the entry, before the date. This | ||
| 1175 | has no effect on display of the entry in the diary window; it affects | ||
| 1176 | only marks on dates in the calendar window. Nonmarking entries are | ||
| 1177 | especially useful for generic entries that would otherwise mark many | ||
| 1178 | different dates. | ||
| 1179 | |||
| 1180 | If the first line of a diary entry consists only of the date or day | ||
| 1181 | name with no following blanks or punctuation, then the diary window | ||
| 1182 | display doesn't include that line; only the continuation lines appear. | ||
| 1183 | For example, this entry: | ||
| 1184 | 1173 | ||
| 1185 | @example | 1174 | @example |
| 1186 | 02/11/1989 | 1175 | 02/11/1989 |
| @@ -1193,24 +1182,27 @@ For example, this entry: | |||
| 1193 | @end example | 1182 | @end example |
| 1194 | 1183 | ||
| 1195 | @noindent | 1184 | @noindent |
| 1196 | appears in the diary window without the date line at the beginning. | 1185 | This entry will have a different appearance if you use the simple diary |
| 1197 | This style of entry looks neater when you display just a single day's | 1186 | display |
| 1198 | entries, but can cause confusion if you ask for more than one day's | 1187 | @iftex |
| 1199 | entries. | 1188 | (@pxref{Diary Display,, emacs-xtra}). |
| 1189 | @end iftex | ||
| 1190 | @ifnottex | ||
| 1191 | (@pxref{Diary Display}). | ||
| 1192 | @end ifnottex | ||
| 1193 | The simple diary display omits the date line at the beginning; only the | ||
| 1194 | continuation lines appear. This style of entry looks neater when you | ||
| 1195 | display just a single day's entries, but can cause confusion if you ask | ||
| 1196 | for 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 |
| 1202 | important to remember that the buffer displayed contains the @emph{entire} | 1199 | You can inhibit the marking of certain diary entries in the calendar |
| 1203 | diary file, with portions of it concealed from view. This means, for | 1200 | window; to do this, insert an ampersand @code{diary-nonmarking-symbol} |
| 1204 | instance, 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 |
| 1205 | at what appears to be the end of the line, but what is in reality the | 1202 | has no effect on display of the entry in the diary window; it affects |
| 1206 | middle of some concealed line. | 1203 | only marks on dates in the calendar window. Nonmarking entries are |
| 1207 | 1204 | especially useful for generic entries that would otherwise mark many | |
| 1208 | @emph{Be careful when editing the diary entries!} Inserting | 1205 | different dates. |
| 1209 | additional lines or adding/deleting characters in the middle of a | ||
| 1210 | visible line cannot cause problems, but editing at the end of a line may | ||
| 1211 | not do what you expect. Deleting a line may delete other invisible | ||
| 1212 | entries that follow it. Before editing the diary, it is best to display | ||
| 1213 | the 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 |