Function: calendar-holiday-list

calendar-holiday-list is an autoloaded and byte-compiled function defined in holidays.el.gz.

Signature

(calendar-holiday-list)

Documentation

Form the list of holidays that occur on dates in the calendar window.

The holidays are those in the list calendar-holidays.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/holidays.el.gz
;;; End of user options.


;; FIXME name that makes sense
;;;###diary-autoload
(defun calendar-holiday-list ()
  "Form the list of holidays that occur on dates in the calendar window.
The holidays are those in the list `calendar-holidays'."
  (let (res h)
    (sort
     (dolist (p calendar-holidays res)
       (if (setq h (if calendar-debug-sexp
                       (let ((debug-on-error t))
                         (eval p t))
                     (condition-case err
                         (eval p t)
                       (error
                        (display-warning
                         'holidays
                         (format "Bad holiday list item: %s\nError: %s\n"
                                 p err)
                         :error)
                        nil))))
           (setq res (append h res))))
     'calendar-date-compare)))