Mercurial > emacs
changeset 9710:b5fb08fb2cb3
Put insertion of diary entry on daily menu.
author | Edward M. Reingold <reingold@emr.cs.iit.edu> |
---|---|
date | Wed, 26 Oct 1994 15:28:56 +0000 |
parents | 3ece524b8ea3 |
children | be6a59921f85 |
files | lisp/calendar/cal-menu.el |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/calendar/cal-menu.el Wed Oct 26 15:26:22 1994 +0000 +++ b/lisp/calendar/cal-menu.el Wed Oct 26 15:28:56 1994 +0000 @@ -238,6 +238,13 @@ (calendar-goto-date (calendar-event-to-date)) (view-diary-entries 1))) +(defun calendar-mouse-insert-diary-entry () + "Insert diary entry for mouse-selected date." + (interactive) + (save-excursion + (calendar-goto-date (calendar-event-to-date)) + (insert-diary-entry nil))) + (defun calendar-mouse-set-mark () "Mark the date under the cursor." (interactive) @@ -284,6 +291,7 @@ (list (calendar-date-string date t t) '("Diary entries" . calendar-mouse-view-diary-entries) + '("Insert diary entry" . calendar-mouse-insert-diary-entry) '("Holidays" . calendar-mouse-holidays) '("Mark date" . calendar-mouse-set-mark) '("Sunrise/sunset" . calendar-mouse-sunrise/sunset)