changeset 74418:caef05bf3e3f

Replace easy-menu-change by easy-menu-add-item.
author Vinicius Jose Latorre <viniciusjl@ig.com.br>
date Mon, 04 Dec 2006 15:04:00 +0000
parents 8c9e156de392
children 9d28e2b1c05c
files lisp/ChangeLog lisp/printing.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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  <stephen_leake@stephe-leake.org>
 
 	* progmodes/ada-xref.el (ada-check-current): Doc fix.
--- 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))