Function: smart-calendar-assist

smart-calendar-assist is an interactive and byte-compiled function defined in hui-mouse.el.

Signature

(smart-calendar-assist)

Documentation

Use the assist key or mouse assist key to manipulate the scrolling calendar.

Invoked via an assist key press when in calendar-mode. It assumes that its caller has already checked that the assist key was pressed in an appropriate buffer and has moved the cursor there.

If assist key is pressed:
 (1) at the end of the buffer, the calendar is scrolled backward 3 months;
 (2) to the left of any dates on a calendar line, the calendar is scrolled
     forward 3 months;
 (3) anywhere else, all dates with marking diary entries are marked in the
     calendar window.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-mouse.el
(defun smart-calendar-assist ()
  "Use the assist key or mouse assist key to manipulate the scrolling calendar.

Invoked via an assist key press when in `calendar-mode'.  It assumes that its
caller has already checked that the assist key was pressed in an appropriate
buffer and has moved the cursor there.

If assist key is pressed:
 (1) at the end of the buffer, the calendar is scrolled backward 3 months;
 (2) to the left of any dates on a calendar line, the calendar is scrolled
     forward 3 months;
 (3) anywhere else, all dates with marking diary entries are marked in the
     calendar window."

  (interactive)
  (cond ((smart-eobp) (calendar-cursor-to-nearest-date)
	 (calendar-scroll-right-three-months 1))
	((< (current-column) 5) (calendar-cursor-to-nearest-date)
	 (calendar-scroll-left-three-months 1))
	(t (diary-mark-entries))))