(initz-list-mode-menu): New variable.
(initz-list-mode-map): Use it.
(initz-list-mode): Ditto.
* lisp/initz-error.el (initz-error-mode-menu): Require `easymenu'.
(initz-error-mode-menu): New variable.
(initz-error-mode-map): Use it.
(initz-error-mode): Ditto.
+2002-05-10 OHASHI Akira <bg66@koka-in.org>
+
+ * lisp/initz-list.el (toplevel): Require `easymenu'.
+ (initz-list-mode-menu): New variable.
+ (initz-list-mode-map): Use it.
+ (initz-list-mode): Ditto.
+ * lisp/initz-error.el (initz-error-mode-menu): Require `easymenu'.
+ (initz-error-mode-menu): New variable.
+ (initz-error-mode-map): Use it.
+ (initz-error-mode): Ditto.
+
2002-05-03 OHASHI Akira <bg66@koka-in.org>
* README (Development): Fix typo.
;;; Code:
(require 'emu)
+(require 'easymenu)
(require 'initz-globals)
(require 'initz)
(require 'initz-list)
+(defvar initz-error-mode-menu
+ '("Initz"
+ ["View" initz-error-find-file t]
+ ["Byte-compile" initz-error-byte-compile-file t]
+ ["Delete" initz-error-delete-file t]
+ ["Load" initz-error-load-file t]
+ "----"
+ ["Startup" initz-startup t]
+ "----"
+ ["Quit" initz-error-quit t]))
+
(defvar initz-error-mode-map nil
"Local map for initz error buffers.")
(unless initz-error-mode-map
(define-key map "L" 'initz-error-load-file)
(define-key map "S" 'initz-startup)
(define-key map "q" 'initz-error-quit)
+ (easy-menu-define initz-error-mode-nemu map
+ "Menu Used in 'initz-error-mode'."
+ initz-error-mode-menu)
(setq initz-error-mode-map map)))
(defvar initz-error-node-map nil)
(use-local-map initz-error-mode-map)
(setq mode-name initz-error-mode-name)
(setq major-mode 'initz-error-mode)
+ (easy-menu-add initz-error-mode-menu)
(when (or (featurep 'xemacs) (< emacs-major-version 21))
(make-local-hook 'post-command-hook))
(add-hook 'post-command-hook 'initz-error-print-file)
;;; Code:
(require 'emu)
+(require 'easymenu)
(require 'initz-globals)
(require 'initz)
+(defvar initz-list-mode-menu
+ '("Initz"
+ ["View" initz-list-find-file t]
+ ["Byte-compile" initz-list-byte-compile-file t]
+ ["Delete" initz-list-delete-file t]
+ ["Load" initz-list-load-file t]
+ ["Make new file" initz-list-new-file t]
+ "----"
+ ["Startup" initz-startup t]
+ "----"
+ ["Quit" initz-list-quit t]))
+
(defvar initz-list-mode-map nil
"Local map for initz list buffers.")
(unless initz-list-mode-map
(define-key map "N" 'initz-list-new-file)
(define-key map "S" 'initz-startup)
(define-key map "q" 'initz-list-quit)
+ (easy-menu-define initz-list-mode-nemu map
+ "Menu Used in 'initz-list-mode'."
+ initz-list-mode-menu)
(setq initz-list-mode-map map)))
(defvar initz-list-node-map nil)
(use-local-map initz-list-mode-map)
(setq mode-name initz-list-mode-name)
(setq major-mode 'initz-list-mode)
+ (easy-menu-add initz-list-mode-menu)
(when (or (featurep 'xemacs) (< emacs-major-version 21))
(make-local-hook 'post-command-hook))
(add-hook 'post-command-hook 'initz-list-print-file)