Function: holiday-after

holiday-after is a byte-compiled function defined in holidays.el.gz.

Signature

(holiday-after REF N STRING)

Documentation

Holiday called STRING on the Nth day after/before REF in the calendar.

REF is a function that accepts the Year as the argument and returns the absolute date of the reference day. Negative values of N are interpreted as days before the reference day.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/holidays.el.gz
(defun holiday-after (ref n string)
  "Holiday called STRING on the Nth day after/before REF in the calendar.
REF is a function that accepts the Year as the argument and returns the
absolute date of the reference day.  Negative values of N are
interpreted as days before the reference day."
  (pcase-let ((`(,_ ,y1 ,_ ,y2) (calendar-get-month-range)))
    (holiday-filter-visible-calendar
     (list
      (list (calendar-gregorian-from-absolute (+ n (funcall ref y1)))
            string)
      (when (/= y1 y2)
        (list (calendar-gregorian-from-absolute (+ n (funcall ref y2)))
              string))))))