# HG changeset patch # User Vinicius Jose Latorre # Date 1165244640 0 # Node ID caef05bf3e3fd62b6ceaaea1f04e9c1d6e48254e # Parent 8c9e156de39258425c989bf56fdf9d3d1f80798c Replace easy-menu-change by easy-menu-add-item. diff -r 8c9e156de392 -r caef05bf3e3f lisp/ChangeLog --- a/lisp/ChangeLog Mon Dec 04 14:38:15 2006 +0000 +++ b/lisp/ChangeLog Mon Dec 04 15:04:00 2006 +0000 @@ -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 -r 8c9e156de392 -r caef05bf3e3f lisp/printing.el --- a/lisp/printing.el Mon Dec 04 14:38:15 2006 +0000 +++ b/lisp/printing.el Mon Dec 04 15:04:00 2006 +0000 @@ -3112,7 +3112,9 @@ (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))