# HG changeset patch # User Richard M. Stallman # Date 1114274283 0 # Node ID ce71dc9ea46fffaddc0a9bf85cdd21b222f0deac # Parent eb47388912945af23983c0c9c6156d9a872abd07 (easy-menu-do-define): Use defalias, not fset. diff -r eb4738891294 -r ce71dc9ea46f lisp/emacs-lisp/easymenu.el --- a/lisp/emacs-lisp/easymenu.el Sat Apr 23 16:36:53 2005 +0000 +++ b/lisp/emacs-lisp/easymenu.el Sat Apr 23 16:38:03 2005 +0000 @@ -160,18 +160,18 @@ (let ((keymap (easy-menu-create-menu (car menu) (cdr menu)))) (when symbol (set symbol keymap) - (fset symbol - `(lambda (event) ,doc (interactive "@e") - ;; FIXME: XEmacs uses popup-menu which calls the binding - ;; while x-popup-menu only returns the selection. - (x-popup-menu event - (or (and (symbolp ,symbol) - (funcall - (or (plist-get (get ,symbol 'menu-prop) - :filter) - 'identity) - (symbol-function ,symbol))) - ,symbol))))) + (defalias symbol + `(lambda (event) ,doc (interactive "@e") + ;; FIXME: XEmacs uses popup-menu which calls the binding + ;; while x-popup-menu only returns the selection. + (x-popup-menu event + (or (and (symbolp ,symbol) + (funcall + (or (plist-get (get ,symbol 'menu-prop) + :filter) + 'identity) + (symbol-function ,symbol))) + ,symbol))))) (mapcar (lambda (map) (define-key map (vector 'menu-bar (easy-menu-intern (car menu))) (cons 'menu-item