From: Vinicius Jose Latorre Date: Mon, 4 Dec 2006 15:04:00 +0000 (+0000) Subject: Replace easy-menu-change by easy-menu-add-item. X-Git-Tag: emacs-pretest-22.0.92~305 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=36222e78c68d2536091ff95122a06af264457026;p=emacs.git Replace easy-menu-change by easy-menu-add-item. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 23871e0dd65..b0618104b62 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -14,6 +14,9 @@ * ps-mule.el: * ps-print.el: Remove 'Time-stamp' comment mark. + * printing.el (pr-menu-bind): Replace 'easy-menu-change' by + 'easy-menu-add-item' when called in Emacs 21 or higher. + 2006-12-04 Stephen Leake * progmodes/ada-xref.el (ada-check-current): Doc fix. diff --git a/lisp/printing.el b/lisp/printing.el index 9423df972df..4a41dac8dc4 100644 --- a/lisp/printing.el +++ b/lisp/printing.el @@ -3112,7 +3112,9 @@ Calls `pr-update-menus' to adjust menus." (pr-get-symbol (nth 1 menu-file)) (pr-get-symbol "Print")))) (t - (easy-menu-change (cdr menu-file) "Print" pr-menu-spec)))))))) + (easy-menu-add-item global-map menu-file + (easy-menu-create-menu "Print" pr-menu-spec))) + )))))) (pr-update-menus t))