Function: calendar--show-month-at-edge
calendar--show-month-at-edge is a byte-compiled function defined in
cal-move.el.gz.
Signature
(calendar--show-month-at-edge MONTH YEAR ARG)
Documentation
Regenerate the calendar with MONTH, YEAR at the left or right edge.
This function is mainly used when MONTH, YEAR is invisible. The new month is placed at the right edge if ARG is positive, and the left edge otherwise.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/cal-move.el.gz
(defun calendar--show-month-at-edge (month year arg)
"Regenerate the calendar with MONTH, YEAR at the left or right edge.
This function is mainly used when MONTH, YEAR is invisible. The new
month is placed at the right edge if ARG is positive, and the left edge
otherwise."
(pcase-let* ((`(,m1 ,y1 ,m2 ,y2) (calendar-get-month-range))
(offset (if (> arg 0)
(calendar-interval m2 y2 month year)
(calendar-interval m1 y1 month year))))
(calendar-increment-month m1 y1 (1+ offset))
(calendar-generate-window m1 y1)))