* lisp/calendar/cal-move.el (calendar-scroll-left): Use
`calendar-event-buffer' instead of assuming that EVENT's
posn-window is always a window.
(interactive (list (prefix-numeric-value current-prefix-arg)
last-nonmenu-event))
(unless arg (setq arg 1))
- (save-selected-window
+ (save-current-buffer
;; Nil if called from menu-bar.
- (if (setq event (event-start event)) (select-window (posn-window event)))
+ (when (setq event (event-start event))
+ (select-buffer (calendar-event-buffer event)))
(calendar-cursor-to-nearest-date)
(unless (zerop arg)
(let ((old-date (calendar-cursor-to-date))