diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 23871e0dd653d6238544914532eaa3ae680a6004..b0618104b625d8061a1e3a53b4d76e73043571dc 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 9423df972df3eeb1b1a8ea666ea46df62374907c..4a41dac8dc49e689f2ed7fff075e7d16d96473df 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))