mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-05 11:45:45 +00:00
(calendar-event-to-date): Set buffer in case calendar isn't current.
This commit is contained in:
parent
e2bb905e9e
commit
be6231e3d1
@ -177,8 +177,9 @@
|
||||
(put 'insert-weekly-diary-entry 'menu-enable '(calendar-cursor-to-date))
|
||||
|
||||
(defun calendar-event-to-date ()
|
||||
"Date of last event. Nil if last event was not done on a date."
|
||||
"Date of last event. Value is nil if last event was not done on a date."
|
||||
(save-excursion
|
||||
(set-buffer (window-buffer (posn-window (event-start last-input-event))))
|
||||
(goto-char (posn-point (event-start last-input-event)))
|
||||
(calendar-cursor-to-date)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user