Mercurial > hg > xemacs-beta
changeset 4164:79c5457563f6
[xemacs-hg @ 2007-09-05 06:50:44 by michaels]
2007-09-05 Mike Sperber <mike@xemacs.org>
* menubar.el (add-menu-item-1): Remove bogus `leaf-p' argument.
(add-menu-button): Follow above change; also remove bogus
docstring talking about "leaf node".
(add-submenu): Follow above change.
author | michaels |
---|---|
date | Wed, 05 Sep 2007 06:50:45 +0000 |
parents | 75562ac25d7b |
children | 01bad3ccedfe |
files | lisp/ChangeLog lisp/menubar.el |
diffstat | 2 files changed, 13 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Tue Sep 04 21:51:35 2007 +0000 +++ b/lisp/ChangeLog Wed Sep 05 06:50:45 2007 +0000 @@ -1,3 +1,10 @@ +2007-09-05 Mike Sperber <mike@xemacs.org> + + * menubar.el (add-menu-item-1): Remove bogus `leaf-p' argument. + (add-menu-button): Follow above change; also remove bogus + docstring talking about "leaf node". + (add-submenu): Follow above change. + 2007-09-02 Steve Youngs <steve@sxemacs.org> * byte-optimize.el (byte-optimize-featurep): New. Optimise
--- a/lisp/menubar.el Tue Sep 04 21:51:35 2007 +0000 +++ b/lisp/menubar.el Wed Sep 05 06:50:45 2007 +0000 @@ -210,7 +210,7 @@ (car item-path-list))))) (cons result parent))))) -(defun add-menu-item-1 (leaf-p menu-path new-item before in-menu) +(defun add-menu-item-1 (menu-path new-item before in-menu) ;; This code looks like it could be cleaned up some more ;; Do we really need 6 calls to find-menu-item? (let* ((item-name @@ -283,20 +283,20 @@ (set-menubar-dirty-flag) new-item)) -(defun add-menu-button (menu-path menu-leaf &optional before in-menu) +(defun add-menu-button (menu-path menu-item &optional before in-menu) "Add a menu item to some menu, creating the menu first if necessary. If the named item exists already, it is changed. MENU-PATH identifies the menu under which the new menu item should be inserted. It is a list of strings; for example, (\"File\") names the top-level \"File\" menu. (\"File\" \"Foo\") names a hypothetical submenu of \"File\". -MENU-LEAF is a menubar leaf node. See the documentation of `current-menubar'. +MENU-ITEM is a menu or menu item. See the documentation of `current-menubar'. BEFORE, if provided, is the name of a menu item before which this item should be added, if this item is not on the menu already. If the item is already present, it will not be moved. IN-MENU, if provided, means use that instead of `current-menubar' as the menu to change." ;; Note easymenu.el uses the fact that menu-leaf can be a submenu. - (add-menu-item-1 t menu-path menu-leaf before in-menu)) + (add-menu-item-1 menu-path menu-item before in-menu)) ;; I actually liked the old name better, but the interface has changed too ;; drastically to keep it. --Stig @@ -315,7 +315,8 @@ IN-MENU, if provided, means use that instead of `current-menubar' as the menu to change." (check-menu-syntax submenu nil) - (add-menu-item-1 nil menu-path submenu before in-menu)) + (add-menu-item-1 menu-path submenu before in-menu)) + ;; purespace is no more, so this function is unnecessary ;(defun purecopy-menubar (x) ; ;; this calls purecopy on the strings, and the contents of the vectors,