aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorOliver Seidel1997-08-06 09:14:25 +0000
committerOliver Seidel1997-08-06 09:14:25 +0000
commit49c48a1b9db7d5e3192360f6945e922bb4001c2b (patch)
treec4dfa2a142d5a05d590ebd9a8364841d993306fe /lisp
parent03944ca7d7da34eccdfd70680cee0d66d30c355b (diff)
downloademacs-49c48a1b9db7d5e3192360f6945e922bb4001c2b.tar.gz
emacs-49c48a1b9db7d5e3192360f6945e922bb4001c2b.zip
Applied patch from Istvan Marko <istvan@cmdmail.amd.com>
to make menus work anywhere.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/calendar/todo-mode.el24
1 files changed, 15 insertions, 9 deletions
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el
index bae7b6a10fd..1d787fe8cf3 100644
--- a/lisp/calendar/todo-mode.el
+++ b/lisp/calendar/todo-mode.el
@@ -1,6 +1,6 @@
1;; todomode.el -- major mode for editing TODO list files 1;; todomode.el -- major mode for editing TODO list files
2 2
3;; $Id: todomode.el,v 1.9 1997/08/06 08:12:03 os10000 Exp os10000 $ 3;; $Id: todomode.el,v 1.10 1997/08/06 08:56:03 os10000 Exp os10000 $
4 4
5;; --------------------------------------------------------------------------- 5;; ---------------------------------------------------------------------------
6 6
@@ -178,6 +178,10 @@
178 178
179;; 179;;
180;; $Log: todomode.el,v $ 180;; $Log: todomode.el,v $
181;; Revision 1.10 1997/08/06 08:56:03 os10000
182;; Acted upon suggestion from Shane Holder <holder@rsn.hp.com>:
183;; Cancelling the editing of an entry will not delete it any more.
184;;
181;; Revision 1.9 1997/08/06 08:12:03 os10000 185;; Revision 1.9 1997/08/06 08:12:03 os10000
182;; Improved documentation. Broke some lines to comply with 186;; Improved documentation. Broke some lines to comply with
183;; Richard Stallman's email to please keep in sync with the 187;; Richard Stallman's email to please keep in sync with the
@@ -224,7 +228,12 @@
224 228
225;; --------------------------------------------------------------------------- 229;; ---------------------------------------------------------------------------
226 230
231;; Get some outside help ...
232
227(require 'time-stamp) 233(require 'time-stamp)
234(require 'easymenu)
235
236;; ---------------------------------------------------------------------------
228 237
229(defvar todo-mode-map nil "TODO mode keymap. See `todo-mode'") 238(defvar todo-mode-map nil "TODO mode keymap. See `todo-mode'")
230(if todo-mode-map 239(if todo-mode-map
@@ -488,8 +497,8 @@
488 497
489;; --------------------------------------------------------------------------- 498;; ---------------------------------------------------------------------------
490 499
491(defvar todo-mode-popup-menu 500(easy-menu-define todo-menu todo-mode-map "Todo Menu"
492 (purecopy '("Todo Mode Menu" 501 '("Todo"
493 ["Forward item" todo-cmd-forw t] 502 ["Forward item" todo-cmd-forw t]
494 ["Backward item" todo-cmd-back t] 503 ["Backward item" todo-cmd-back t]
495 "---" 504 "---"
@@ -507,9 +516,7 @@
507 ["Save" todo-cmd-save t] 516 ["Save" todo-cmd-save t]
508 "---" 517 "---"
509 ["Quit" todo-cmd-done t] 518 ["Quit" todo-cmd-done t]
510 ) 519 ))
511 )
512 )
513 520
514(defvar todo-cats nil "TODO categories.") 521(defvar todo-cats nil "TODO categories.")
515(defvar todo-category-number 0 "TODO category number.") 522(defvar todo-category-number 0 "TODO category number.")
@@ -519,9 +526,8 @@
519 (setq major-mode 'todo-mode) 526 (setq major-mode 'todo-mode)
520 (setq mode-name "TODO") 527 (setq mode-name "TODO")
521 (use-local-map todo-mode-map) 528 (use-local-map todo-mode-map)
522 (setq mode-popup-menu todo-mode-popup-menu) 529 (easy-menu-add todo-menu)
523 (run-hooks 'todo-mode-hook) 530 (run-hooks 'todo-mode-hook))
524 )
525 531
526(defun todo-show () "Show TODO list." 532(defun todo-show () "Show TODO list."
527 (interactive) 533 (interactive)