diff options
| author | Glenn Morris | 2007-09-15 19:59:25 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-09-15 19:59:25 +0000 |
| commit | 5fceaf9cab889a1c15d332f1a6485faec0bfda5e (patch) | |
| tree | f564ce619d092ce429c327bebda14c742ad8dc03 | |
| parent | 24c6be9f956a54bd72eddfdef9e60869583c6cea (diff) | |
| download | emacs-5fceaf9cab889a1c15d332f1a6485faec0bfda5e.tar.gz emacs-5fceaf9cab889a1c15d332f1a6485faec0bfda5e.zip | |
(holiday-list): Rename it back to `list-holidays', but leave
`holiday-list' as an alias.
| -rw-r--r-- | doc/emacs/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calendar/holidays.el | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index c005fbaca03..5cc472a1d9e 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-09-15 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * calendar.texi (Holidays): Change all instances of `holiday-list' back | ||
| 4 | to `list-holidays'. | ||
| 5 | |||
| 1 | 2007-09-14 Glenn Morris <rgm@gnu.org> | 6 | 2007-09-14 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * calendar.texi: Update all instances of mark-calendar-holidays, | 8 | * calendar.texi: Update all instances of mark-calendar-holidays, |
diff --git a/lisp/calendar/holidays.el b/lisp/calendar/holidays.el index a86fdad4d6e..eaa6e4cb474 100644 --- a/lisp/calendar/holidays.el +++ b/lisp/calendar/holidays.el | |||
| @@ -109,15 +109,17 @@ This function is suitable for execution in a .emacs file." | |||
| 109 | (displayed-year (extract-calendar-year date))) | 109 | (displayed-year (extract-calendar-year date))) |
| 110 | (calendar-list-holidays)))) | 110 | (calendar-list-holidays)))) |
| 111 | 111 | ||
| 112 | ;; rms: "Emacs commands to display a list of something generally start | ||
| 113 | ;; with `list-'. Please make `list-holidays' the principal name." | ||
| 112 | ;;;###autoload | 114 | ;;;###autoload |
| 113 | (defun holiday-list (y1 y2 &optional l label) | 115 | (defun list-holidays (y1 y2 &optional l label) |
| 114 | "Display holidays for years Y1 to Y2 (inclusive). | 116 | "Display holidays for years Y1 to Y2 (inclusive). |
| 115 | 117 | ||
| 116 | The optional list of holidays L defaults to `calendar-holidays'. | 118 | The optional list of holidays L defaults to `calendar-holidays'. |
| 117 | If you want to control what holidays are displayed, use a | 119 | If you want to control what holidays are displayed, use a |
| 118 | different list. For example, | 120 | different list. For example, |
| 119 | 121 | ||
| 120 | (holiday-list 2006 2006 | 122 | (list-holidays 2006 2006 |
| 121 | (append general-holidays local-holidays other-holidays)) | 123 | (append general-holidays local-holidays other-holidays)) |
| 122 | 124 | ||
| 123 | will display holidays for the year 2006 defined in the 3 | 125 | will display holidays for the year 2006 defined in the 3 |
| @@ -206,6 +208,7 @@ The optional LABEL is used to label the buffer created." | |||
| 206 | (display-buffer holiday-buffer) | 208 | (display-buffer holiday-buffer) |
| 207 | (message "Computing holidays...done")))) | 209 | (message "Computing holidays...done")))) |
| 208 | 210 | ||
| 211 | (defalias 'holiday-list 'list-holidays) | ||
| 209 | 212 | ||
| 210 | (defun calendar-check-holidays (date) | 213 | (defun calendar-check-holidays (date) |
| 211 | "Check the list of holidays for any that occur on DATE. | 214 | "Check the list of holidays for any that occur on DATE. |