Function: diary-insert-block-entry
diary-insert-block-entry is an autoloaded, interactive and
byte-compiled function defined in diary-lib.el.gz.
Signature
(diary-insert-block-entry ARG)
Documentation
Insert a block diary entry for the days between the point and marked date.
Prefix argument ARG makes the entry nonmarking.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/diary-lib.el.gz
;;;###cal-autoload
(defun diary-insert-block-entry (arg)
"Insert a block diary entry for the days between the point and marked date.
Prefix argument ARG makes the entry nonmarking."
(interactive "P")
(let ((calendar-date-display-form (diary-date-display-form))
(cursor (calendar-cursor-to-date t))
(mark (or (car calendar-mark-ring)
(error "No mark set in this buffer")))
start end)
(if (< (calendar-absolute-from-gregorian mark)
(calendar-absolute-from-gregorian cursor))
(setq start mark
end cursor)
(setq start cursor
end mark))
(diary-make-entry
(format "%s(diary-block %s %s)"
diary-sexp-entry-symbol
(calendar-date-string start nil t)
(calendar-date-string end nil t))
arg)))