]> git.eshelyaron.com Git - emacs.git/commitdiff
Replace easy-menu-change by easy-menu-add-item.
authorVinicius Jose Latorre <viniciusjl@ig.com.br>
Mon, 4 Dec 2006 15:04:00 +0000 (15:04 +0000)
committerVinicius Jose Latorre <viniciusjl@ig.com.br>
Mon, 4 Dec 2006 15:04:00 +0000 (15:04 +0000)
lisp/ChangeLog
lisp/printing.el

index 23871e0dd653d6238544914532eaa3ae680a6004..b0618104b625d8061a1e3a53b4d76e73043571dc 100644 (file)
@@ -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.
index 9423df972df3eeb1b1a8ea666ea46df62374907c..4a41dac8dc49e689f2ed7fff075e7d16d96473df 100644 (file)
@@ -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))