# HG changeset patch # User Vinicius Jose Latorre # Date 1165244601 0 # Node ID 25387147db14eca4070a353c6d70a5c020050b6f # Parent 0b79f231aae3c84fc8427a3dca033db9086fa69f Replace easy-menu-change by easy-menu-add-item. diff -r 0b79f231aae3 -r 25387147db14 lisp/ChangeLog.unicode --- a/lisp/ChangeLog.unicode Mon Dec 04 14:46:24 2006 +0000 +++ b/lisp/ChangeLog.unicode Mon Dec 04 15:03:21 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-01 Vinicius Jose Latorre * ps-print.el : Fix doc. diff -r 0b79f231aae3 -r 25387147db14 lisp/printing.el --- a/lisp/printing.el Mon Dec 04 14:46:24 2006 +0000 +++ b/lisp/printing.el Mon Dec 04 15:03:21 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))