Function: diary-block
diary-block is a byte-compiled function defined in diary-lib.el.gz.
Signature
(diary-block M1 D1 Y1 M2 D2 Y2 &optional MARK)
Documentation
Block diary entry.
Entry applies if date is between, or on one of, two dates. The order
of the input parameters changes according to calendar-date-style
(e.g. to D1, M1, Y1, D2, M2, Y2 in the European style).
An optional parameter MARK specifies a face or single-character string to use when highlighting the day in the calendar.
Probably introduced at or before Emacs version 22.1.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/diary-lib.el.gz
;; To be called from diary-sexp-entry, where DATE, ENTRY are bound.
(defun diary-block (m1 d1 y1 m2 d2 y2 &optional mark)
"Block diary entry.
Entry applies if date is between, or on one of, two dates. The order
of the input parameters changes according to `calendar-date-style'
\(e.g. to D1, M1, Y1, D2, M2, Y2 in the European style).
An optional parameter MARK specifies a face or single-character string
to use when highlighting the day in the calendar."
(with-no-warnings (defvar date) (defvar entry))
(let ((date1 (calendar-absolute-from-gregorian
(diary-make-date m1 d1 y1)))
(date2 (calendar-absolute-from-gregorian
(diary-make-date m2 d2 y2)))
(d (calendar-absolute-from-gregorian date)))
(and (<= date1 d) (<= d date2)
(cons mark entry))))