]> git.eshelyaron.com Git - emacs.git/commitdiff
Applied patch from Istvan Marko <istvan@cmdmail.amd.com>
authorOliver Seidel <os10000@seidel-space.de>
Wed, 6 Aug 1997 09:14:25 +0000 (09:14 +0000)
committerOliver Seidel <os10000@seidel-space.de>
Wed, 6 Aug 1997 09:14:25 +0000 (09:14 +0000)
to make menus work anywhere.

lisp/calendar/todo-mode.el

index bae7b6a10fdad02681e8aa81274091e4a5b9a187..1d787fe8cf342abf79db459922e3b5e229e884c6 100644 (file)
@@ -1,6 +1,6 @@
 ;; todomode.el -- major mode for editing TODO list files
 
-;; $Id: todomode.el,v 1.9 1997/08/06 08:12:03 os10000 Exp os10000 $
+;; $Id: todomode.el,v 1.10 1997/08/06 08:56:03 os10000 Exp os10000 $
 
 ;; ---------------------------------------------------------------------------
 
 
 ;;
 ;; $Log: todomode.el,v $
+;; Revision 1.10  1997/08/06  08:56:03  os10000
+;; Acted upon suggestion from Shane Holder <holder@rsn.hp.com>:
+;; Cancelling the editing of an entry will not delete it any more.
+;;
 ;; Revision 1.9  1997/08/06 08:12:03  os10000
 ;; Improved documentation.  Broke some lines to comply with
 ;; Richard Stallman's email to please keep in sync with the
 
 ;; ---------------------------------------------------------------------------
 
+;; Get some outside help ...
+
 (require 'time-stamp)
+(require 'easymenu)
+
+;; ---------------------------------------------------------------------------
 
 (defvar todo-mode-map nil "TODO mode keymap.  See `todo-mode'")
 (if todo-mode-map
 
 ;; ---------------------------------------------------------------------------
 
-(defvar todo-mode-popup-menu
-  (purecopy '("Todo Mode Menu"
+(easy-menu-define todo-menu todo-mode-map "Todo Menu"
+               '("Todo"
               ["Forward item"         todo-cmd-forw t]
               ["Backward item"        todo-cmd-back t]
               "---"
               ["Save"                 todo-cmd-save t]
               "---"
               ["Quit"                 todo-cmd-done t]
-              )
-           )
-  )
+              ))
 
 (defvar todo-cats nil "TODO categories.")
 (defvar todo-category-number 0 "TODO category number.")
   (setq major-mode 'todo-mode)
   (setq mode-name "TODO")
   (use-local-map todo-mode-map)
-  (setq mode-popup-menu todo-mode-popup-menu)
-  (run-hooks 'todo-mode-hook)
-  )
+  (easy-menu-add todo-menu)
+  (run-hooks 'todo-mode-hook))
 
 (defun todo-show () "Show TODO list."
   (interactive)