diff options
| author | Richard M. Stallman | 1994-02-07 20:49:35 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-02-07 20:49:35 +0000 |
| commit | 56e7830d68e9908a0155d74b0283c8ba61533af5 (patch) | |
| tree | 7cec1cc782fc0d6b2b6a5d61d4a953a2fa4ff861 | |
| parent | c33579cba6d4e29d95b6f8c8d9dd81dbdb5b251a (diff) | |
| download | emacs-56e7830d68e9908a0155d74b0283c8ba61533af5.tar.gz emacs-56e7830d68e9908a0155d74b0283c8ba61533af5.zip | |
(calendar-cursor-holidays): Use new error arg
to calendar-cursor-to-date.
| -rw-r--r-- | lisp/calendar/holidays.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/calendar/holidays.el b/lisp/calendar/holidays.el index addd8f80ac7..5f6be12695b 100644 --- a/lisp/calendar/holidays.el +++ b/lisp/calendar/holidays.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; holidays.el --- holiday functions for the calendar package | 1 | ;;; holidays.el --- holiday functions for the calendar package |
| 2 | 2 | ||
| 3 | ;;; Copyright (C) 1989, 1990, 1992 Free Software Foundation, Inc. | 3 | ;;; Copyright (C) 1989, 1990, 1992, 1993 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Edward M. Reingold <reingold@cs.uiuc.edu> | 5 | ;; Author: Edward M. Reingold <reingold@cs.uiuc.edu> |
| 6 | ;; Keywords: holidays, calendar | 6 | ;; Keywords: holidays, calendar |
| @@ -102,8 +102,7 @@ The holidays are those in the list calendar-holidays." | |||
| 102 | "Find holidays for the date specified by the cursor in the calendar window." | 102 | "Find holidays for the date specified by the cursor in the calendar window." |
| 103 | (interactive) | 103 | (interactive) |
| 104 | (message "Checking holidays...") | 104 | (message "Checking holidays...") |
| 105 | (let* ((date (or (calendar-cursor-to-date) | 105 | (let* ((date (calendar-cursor-to-date t)) |
| 106 | (error "Cursor is not on a date!"))) | ||
| 107 | (date-string (calendar-date-string date)) | 106 | (date-string (calendar-date-string date)) |
| 108 | (holiday-list (check-calendar-holidays date)) | 107 | (holiday-list (check-calendar-holidays date)) |
| 109 | (holiday-string (mapconcat 'identity holiday-list "; ")) | 108 | (holiday-string (mapconcat 'identity holiday-list "; ")) |