From: Juanma Barranquero Date: Fri, 23 Jul 2010 10:32:02 +0000 (+0200) Subject: * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS". X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~51^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=94da839793affa2a270bc26cee9c4d95d4dc4708;p=emacs.git * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS". --- diff --git a/src/ChangeLog b/src/ChangeLog index 2e8b8484a1b..6a0475f5741 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2010-07-23 Juanma Barranquero + * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS"; + it is called only from NS code. + * w32term.c (my_set_focus): #ifdef away; it is called only from "#ifdef 0" code. diff --git a/src/menu.c b/src/menu.c index a424200fb3e..321dc2677a1 100644 --- a/src/menu.c +++ b/src/menu.c @@ -133,12 +133,14 @@ discard_menu_items (void) xassert (NILP (menu_items_inuse)); } +#ifdef HAVE_NS static Lisp_Object cleanup_popup_menu (Lisp_Object arg) { discard_menu_items (); return Qnil; } +#endif /* This undoes save_menu_items, and it is called by the specpdl unwind mechanism. */