Function: calendar-event-buffer
calendar-event-buffer is a byte-compiled function defined in
calendar.el.gz.
Signature
(calendar-event-buffer EVENT)
Documentation
Return the Calendar buffer where EVENT happened.
If EVENT's start falls within a window, use that window's buffer. Otherwise, use the selected window of EVENT's frame.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/calendar.el.gz
(defun calendar-event-buffer (event)
"Return the Calendar buffer where EVENT happened.
If EVENT's start falls within a window, use that window's buffer.
Otherwise, use the selected window of EVENT's frame."
(let ((window-or-frame (posn-window (event-start event))))
(if (windowp window-or-frame)
(window-buffer window-or-frame)
(window-buffer (frame-selected-window window-or-frame)))))