Mercurial > hg > xemacs-beta
diff lisp/custom/cus-edit.el @ 32:e04119814345 r19-15b99
Import from CVS: tag r19-15b99
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:52:56 +0200 |
parents | ec9a17fef872 |
children | d620409f5eb8 |
line wrap: on
line diff
--- a/lisp/custom/cus-edit.el Mon Aug 13 08:52:30 2007 +0200 +++ b/lisp/custom/cus-edit.el Mon Aug 13 08:52:56 2007 +0200 @@ -4,7 +4,7 @@ ;; ;; Author: Per Abrahamsen <abraham@dina.kvl.dk> ;; Keywords: help, faces -;; Version: 1.59 +;; Version: 1.63 ;; X-URL: http://www.dina.kvl.dk/~abraham/custom/ ;;; Commentary: @@ -1835,17 +1835,23 @@ item))) ;;;###autoload -(defun custom-menu-update () +(defun custom-menu-update (event) "Update customize menu." - (interactive) + (interactive "e") (add-hook 'custom-define-hook 'custom-menu-reset) - (let ((menu `(,(car custom-help-menu) - ,(widget-apply '(custom-group) :custom-menu 'emacs) + (let* ((emacs (widget-apply '(custom-group) :custom-menu 'emacs)) + (menu `(,(car custom-help-menu) + ,emacs ,@(cdr (cdr custom-help-menu))))) (if (fboundp 'add-submenu) - (add-submenu '("Options") menu) - (define-key global-map [menu-bar help-menu customize-menu] - (cons (car menu) (easy-menu-create-keymaps (car menu) (cdr menu))))))) + (progn + (add-submenu '("Options") menu) + (cdr emacs)) + (let ((map (easy-menu-create-keymaps (car menu) (cdr menu)))) + (define-key global-map [menu-bar help-menu customize-menu] + (cons (car menu) map)) + (when (fboundp 'x-popup-menu) + (x-popup-menu event map)))))) ;;; Dependencies.