X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/34c6724464237db4bfd5b3fa57e8b0f66a92f618..b12f6e85a068462962d1bf012260e2b55aabd4e7:/src/xmenu.c diff --git a/src/xmenu.c b/src/xmenu.c index 228c89f9aa..bf9a9101ef 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -6,7 +6,7 @@ This file is part of GNU Emacs. GNU Emacs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) +the Free Software Foundation; either version 3, or (at your option) any later version. GNU Emacs is distributed in the hope that it will be useful, @@ -82,7 +82,11 @@ Boston, MA 02110-1301, USA. */ #include #include #ifdef USE_LUCID +#ifdef HAVE_XAW3D +#include +#else /* !HAVE_XAW3D */ #include +#endif /* HAVE_XAW3D */ #endif /* USE_LUCID */ #include "../lwlib/lwlib.h" #else /* not USE_X_TOOLKIT */ @@ -325,7 +329,7 @@ restore_menu_items (saved) menu_items_used = XINT (XCAR (saved)); saved = XCDR (saved); menu_items_n_panes = XINT (XCAR (saved)); - saved = XCDR (saved); + saved = XCDR (saved); menu_items_submenu_depth = XINT (XCAR (saved)); return Qnil; } @@ -3470,7 +3474,7 @@ menu_help_callback (help_string, pane, item) pane_name = first_item[MENU_ITEMS_PANE_NAME]; else if (EQ (first_item[0], Qquote)) /* This shouldn't happen, see xmenu_show. */ - pane_name = empty_string; + pane_name = empty_unibyte_string; else pane_name = first_item[MENU_ITEMS_ITEM_NAME];