aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-08-10 01:51:23 +0000
committerGlenn Morris2008-08-10 01:51:23 +0000
commita43a8a2e815da1aa665e67b229d438259890fc32 (patch)
tree8fc9ac37cbbe26d4c2d71421b8cb359117f4feeb
parent5c94b31cbcebc400e64b14b7b60666d5995780e4 (diff)
downloademacs-a43a8a2e815da1aa665e67b229d438259890fc32.tar.gz
emacs-a43a8a2e815da1aa665e67b229d438259890fc32.zip
(Calendar Customizing): Mention whitespace variables and intermonth text.
(Holiday Customizing): Add holiday-chinese.
-rw-r--r--doc/emacs/ChangeLog6
-rw-r--r--doc/emacs/cal-xtra.texi20
-rw-r--r--etc/NEWS4
3 files changed, 29 insertions, 1 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 703974c1362..280aceeb569 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,9 @@
12008-08-10 Glenn Morris <rgm@gnu.org>
2
3 * cal-xtra.texi (Calendar Customizing): Mention whitespace variables
4 and intermonth text.
5 (Holiday Customizing): Add holiday-chinese.
6
12008-08-08 Eli Zaretskii <eliz@gnu.org> 72008-08-08 Eli Zaretskii <eliz@gnu.org>
2 8
3 * files.texi (Log Buffer, Diff Mode): Fix last changes. Add indexing. 9 * files.texi (Log Buffer, Diff Mode): Fix last changes. Add indexing.
diff --git a/doc/emacs/cal-xtra.texi b/doc/emacs/cal-xtra.texi
index b7a9795e401..32a0f7b4d72 100644
--- a/doc/emacs/cal-xtra.texi
+++ b/doc/emacs/cal-xtra.texi
@@ -27,6 +27,21 @@ diary suit your personal tastes.
27 27
28@node Calendar Customizing 28@node Calendar Customizing
29@subsection Customizing the Calendar 29@subsection Customizing the Calendar
30
31@vindex calendar-intermonth-text
32@cindex calendar layout
33@cindex showing week numbers in the calendar
34 The layout of the calendar is to some extent customizable. The
35display is unfortunately limited to three months (due to some
36deep-rooted and widespread assumptions in the code), but you can
37customize the whitespace used in the display by setting the variables:
38@code{calendar-left-margin}, @code{calendar-intermonth-spacing},
39@code{calendar-column-width}, @code{calendar-day-header-width}, and
40@code{calendar-day-digit-width}. To display text between the months,
41for example week numbers, customize the variables
42@code{calendar-intermonth-header} and @code{calendar-intermonth-text} as
43described in their documentation.
44
30@vindex calendar-holiday-marker 45@vindex calendar-holiday-marker
31@vindex diary-entry-marker 46@vindex diary-entry-marker
32 The variable @code{calendar-holiday-marker} specifies how to mark a 47 The variable @code{calendar-holiday-marker} specifies how to mark a
@@ -159,6 +174,9 @@ The @var{k}th @var{dayname} in @var{month} on the Gregorian calendar
159(@var{dayname}=0 for Sunday, and so on); negative @var{k} means count back 174(@var{dayname}=0 for Sunday, and so on); negative @var{k} means count back
160from the end of the month. 175from the end of the month.
161 176
177@item (holiday-chinese @var{month} @var{day} @var{string})
178A fixed date on the Chinese calendar.
179
162@item (holiday-hebrew @var{month} @var{day} @var{string}) 180@item (holiday-hebrew @var{month} @var{day} @var{string})
163A fixed date on the Hebrew calendar. 181A fixed date on the Hebrew calendar.
164 182
@@ -210,7 +228,7 @@ the month (1 specifies the first occurrence, 2 the second occurrence,
210so on). 228so on).
211 229
212 You can specify holidays that occur on fixed days of the Baha'i, 230 You can specify holidays that occur on fixed days of the Baha'i,
213Hebrew, Islamic, and Julian calendars too. For example, 231Chinese, Hebrew, Islamic, and Julian calendars too. For example,
214 232
215@smallexample 233@smallexample
216(setq other-holidays 234(setq other-holidays
diff --git a/etc/NEWS b/etc/NEWS
index f8c021c41f7..db33c03eef0 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -614,17 +614,21 @@ prefixes, eg `calendar-french-'. The old names you are likely to use
614directly still exist, for the time being, as aliases, but please start 614directly still exist, for the time being, as aliases, but please start
615using the new names. 615using the new names.
616 616
617+++
617*** The whitespace in the calendar layout can be customized. 618*** The whitespace in the calendar layout can be customized.
618See the variables: 619See the variables:
619calendar-left-margin, calendar-intermonth-spacing, calendar-column-width, 620calendar-left-margin, calendar-intermonth-spacing, calendar-column-width,
620calendar-day-header-width, and calendar-day-digit-width. 621calendar-day-header-width, and calendar-day-digit-width.
621 622
623+++
622*** Text (e.g. ISO weeks) can be displayed between the calendar months. 624*** Text (e.g. ISO weeks) can be displayed between the calendar months.
623See the variables calendar-intermonth-header and calendar-intermonth-text. 625See the variables calendar-intermonth-header and calendar-intermonth-text.
624 626
627+++
625*** The function `holiday-chinese' computes holidays on the Chinese calendar. 628*** The function `holiday-chinese' computes holidays on the Chinese calendar.
626It has been used to add items to the list `holiday-oriental-holidays'. 629It has been used to add items to the list `holiday-oriental-holidays'.
627 630
631---
628*** `diary-remind' accepts a negative number -DAYS as a shorthand for 632*** `diary-remind' accepts a negative number -DAYS as a shorthand for
629the list (1 2 ... DAYS). 633the list (1 2 ... DAYS).
630 634