X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=lisp%2Fmenubar.el;h=44c5b6adc38cbe240057fc60cf3c6104ccd06159;hp=a971530ff910bd945a49c0123f970afe0b37879c;hb=82f6d62ee211b1d36e8f45fed3ee3edde82b6916;hpb=a40368ea9486a5da02004feb1254b9cceb857228 diff --git a/lisp/menubar.el b/lisp/menubar.el index a971530..44c5b6a 100644 --- a/lisp/menubar.el +++ b/lisp/menubar.el @@ -361,8 +361,7 @@ the menu hierarchy. (\"File\" \"Save\") means the menu item called \"Save\" under the toplevel \"File\" menu. (\"Menu\" \"Foo\" \"Item\") means the menu item called \"Item\" under the \"Foo\" submenu of \"Menu\". NEW-NAME is the string that the menu item will be printed as from now on." - (or (stringp new-name) - (setq new-name (wrong-type-argument 'stringp new-name))) + (check-type new-name string) (let* ((menubar current-menubar) (pair (find-menu-item menubar path)) (item (car pair))