+2004-07-29 Daiki Ueno <ueno@unixuser.org>
+
+ * riece-menu.el: Do not support enable/disable addon since
+ easy-menu-remove is not working.
+
2004-07-19 Daiki Ueno <ueno@unixuser.org>
* riece-server.el (riece-open-server): Call protocol interface.
("Servers" :filter riece-menu-create-servers-menu))
"Menu used in command mode.")
-(defvar riece-menu-enabled nil)
-
(defconst riece-menu-description
"Setup command menus on menubar")
riece-server-alist))
(defvar riece-command-mode-map)
-
+(defvar riece-menu)
(defun riece-menu-insinuate ()
(add-hook 'riece-command-mode-hook
(lambda ()
(easy-menu-define riece-menu
riece-command-mode-map
"Riece Menu"
- riece-menu-items))))
-
-(defvar riece-menu)
-(defun riece-menu-enable ()
- (with-current-buffer riece-command-buffer
- (easy-menu-add riece-menu))
- (setq riece-menu-enabled t))
-
-(defun riece-menu-disable ()
- (with-current-buffer riece-command-buffer
- (easy-menu-remove riece-menu))
- (setq riece-menu-enabled nil))
+ riece-menu-items)
+ (easy-menu-add riece-menu))))
(provide 'riece-menu)