Function: diary

diary is an autoloaded, interactive and byte-compiled function defined in diary-lib.el.gz.

Signature

(diary &optional ARG)

Documentation

Generate the diary window for ARG days starting with the current date.

If no argument is provided, the number of days of diary entries is governed by the variable diary-number-of-entries. A value of ARG less than 1 does nothing. This function is suitable for execution in an init file.

View in manual

Probably introduced at or before Emacs version 19.26.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/diary-lib.el.gz
;;;###autoload
(defun diary (&optional arg)
  "Generate the diary window for ARG days starting with the current date.
If no argument is provided, the number of days of diary entries is governed
by the variable `diary-number-of-entries'.  A value of ARG less than 1
does nothing.  This function is suitable for execution in an init file."
  (interactive "P")
  (diary-check-diary-file)
  (diary-list-entries (calendar-current-date)
                      (if arg (prefix-numeric-value arg))))