Function: calendar-dedicate-diary

calendar-dedicate-diary is a byte-compiled function defined in cal-x.el.gz.

Signature

(calendar-dedicate-diary)

Documentation

Display and dedicate the window associated with the diary buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/cal-x.el.gz
(defun calendar-dedicate-diary ()
  "Display and dedicate the window associated with the diary buffer."
  (set-window-dedicated-p
   (display-buffer
    (if (eq diary-display-function 'diary-fancy-display)
        (progn
          ;; If there are no diary entries, there won't be a buffer
          ;; to dedicate, so make a basic one.
          (or (get-buffer diary-fancy-buffer)
              (calendar-in-read-only-buffer diary-fancy-buffer
                (calendar-set-mode-line "Diary Entries")))
          diary-fancy-buffer)
      (get-file-buffer diary-file)))
   t))