changeset 90711:25387147db14

Replace easy-menu-change by easy-menu-add-item.
author Vinicius Jose Latorre <viniciusjl@ig.com.br>
date Mon, 04 Dec 2006 15:03:21 +0000
parents 0b79f231aae3
children 8594053c8fec
files lisp/ChangeLog.unicode lisp/printing.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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  <viniciusjl@ig.com.br>
 
 	* ps-print.el : Fix doc.
--- 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))