Mercurial > emacs
changeset 7412:f067e1a5ceb4
(calendar-mouse-set-mark): New function.
(calendar-mouse-date-menu): Bind it to key.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 09 May 1994 03:20:21 +0000 |
parents | 266b18250120 |
children | 39ba97525390 |
files | lisp/calendar/cal-menu.el |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/calendar/cal-menu.el Sun May 08 22:24:11 1994 +0000 +++ b/lisp/calendar/cal-menu.el Mon May 09 03:20:21 1994 +0000 @@ -230,6 +230,13 @@ (calendar-goto-date (calendar-event-to-date)) (view-diary-entries 1))) +(defun calendar-mouse-set-mark () + "Mark the date under the cursor." + (interactive) + (save-excursion + (calendar-goto-date (calendar-event-to-date)) + (calendar-set-mark nil))) + (defun calendar-mouse-print-dates () "Pop up menu of equivalent dates to mouse selected date." (interactive) @@ -272,7 +279,7 @@ t t) '("Diary entries" . calendar-mouse-view-diary-entries) '("Holidays" . calendar-mouse-holidays) - '("Mark date" . calendar-set-mark) + '("Mark date" . calendar-mouse-set-mark) '("Sunrise/sunset" . calendar-mouse-sunrise/sunset) '("Other calendars" . calendar-mouse-print-dates))) (list "Menu"