Function: cal-html-cursor-year
cal-html-cursor-year is an autoloaded, interactive and byte-compiled
function defined in cal-html.el.gz.
Signature
(cal-html-cursor-year YEAR DIR &optional EVENT)
Documentation
Write HTML calendar files (index and monthly pages) for four-digit YEAR.
The output directory DIR is created if necessary. Interactively, YEAR is taken from the calendar cursor position. Note that any existing output files are overwritten.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/cal-html.el.gz
;;;###cal-autoload
(defun cal-html-cursor-year (year dir &optional _event)
"Write HTML calendar files (index and monthly pages) for four-digit YEAR.
The output directory DIR is created if necessary. Interactively,
YEAR is taken from the calendar cursor position.
Note that any existing output files are overwritten."
(interactive (let* ((event last-nonmenu-event)
(year (calendar-extract-year
(calendar-cursor-to-date t event))))
(list year (cal-html-year-dir-ask-user year) event)))
(make-directory dir t)
(with-temp-buffer
(cal-html-insert-year-minicals year cal-html-year-index-cols)
(write-file (expand-file-name "index.html" dir)))
(dotimes (i 12)
(cal-html-one-month (1+ i) year dir)))