]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/calendar/cal-move.el (calendar-scroll-left): Fix last change.
authorPo Lu <luangruo@yahoo.com>
Thu, 10 Aug 2023 05:32:30 +0000 (13:32 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 10 Aug 2023 05:33:17 +0000 (13:33 +0800)
lisp/calendar/cal-move.el

index 35adb2d80dfa614a0936d798f804cf4fc28e6a52..b494659a8eea7dcf2ff6d9d5afcf4011f6fd570d 100644 (file)
@@ -158,9 +158,8 @@ EVENT is an event like `last-nonmenu-event'."
                      last-nonmenu-event))
   (unless arg (setq arg 1))
   (save-current-buffer
-    ;; Nil if called from menu-bar.
-    (when (setq event (event-start event))
-      (select-buffer (calendar-event-buffer event)))
+    (when (event-start event)
+      (set-buffer (calendar-event-buffer event)))
     (calendar-cursor-to-nearest-date)
     (unless (zerop arg)
       (let ((old-date (calendar-cursor-to-date))