aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2008-06-08 08:59:47 +0000
committerAndreas Schwab2008-06-08 08:59:47 +0000
commit01ef9d3692c4c30f331691a94f509a0b7c31a482 (patch)
tree0f5ea1205fa2f75ed856837a35cfc59225bc59a4 /src
parent73f60406a53b36431d1e6142f7d32b36fea0157d (diff)
downloademacs-01ef9d3692c4c30f331691a94f509a0b7c31a482.tar.gz
emacs-01ef9d3692c4c30f331691a94f509a0b7c31a482.zip
* Makefile.in (obj): Always add menu.o
* emacs.c (main): Always call syms_of_menu. * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/Makefile.in6
-rw-r--r--src/emacs.c2
-rw-r--r--src/keyboard.h7
4 files changed, 9 insertions, 12 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ca30ad93e71..1d128f77fb3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12008-06-08 Andreas Schwab <schwab@suse.de>
2
3 * Makefile.in (obj): Always add menu.o
4 * emacs.c (main): Always call syms_of_menu.
5 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
6
12008-06-08 Chong Yidong <cyd@stupidchicken.com> 72008-06-08 Chong Yidong <cyd@stupidchicken.com>
2 8
3 * Makefile.in: Compile menu.c. 9 * Makefile.in: Compile menu.c.
diff --git a/src/Makefile.in b/src/Makefile.in
index 95251960bd1..a38f7661a42 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -539,13 +539,9 @@ FONT_DRIVERS = xfont.o
539#endif /* HAVE_X_WINDOWS */ 539#endif /* HAVE_X_WINDOWS */
540#endif /* HAVE_WINDOW_SYSTEM */ 540#endif /* HAVE_WINDOW_SYSTEM */
541 541
542#ifdef HAVE_X_WINDOWS
543MENU_OBJ = menu.o
544#endif
545
546/* lastfile must follow all files 542/* lastfile must follow all files
547 whose initialized data areas should be dumped as pure by dump-emacs. */ 543 whose initialized data areas should be dumped as pure by dump-emacs. */
548obj= dispnew.o frame.o scroll.o xdisp.o $(MENU_OBJ) $(XMENU_OBJ) window.o \ 544obj= dispnew.o frame.o scroll.o xdisp.o menu.o $(XMENU_OBJ) window.o \
549 charset.o coding.o category.o ccl.o character.o chartab.o \ 545 charset.o coding.o category.o ccl.o character.o chartab.o \
550 cm.o term.o terminal.o xfaces.o $(XOBJ) $(GTK_OBJ) $(DBUS_OBJ) \ 546 cm.o term.o terminal.o xfaces.o $(XOBJ) $(GTK_OBJ) $(DBUS_OBJ) \
551 emacs.o keyboard.o macros.o keymap.o sysdep.o \ 547 emacs.o keyboard.o macros.o keymap.o sysdep.o \
diff --git a/src/emacs.c b/src/emacs.c
index 92ba9978c4b..517b39e828d 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1607,9 +1607,7 @@ main (argc, argv
1607#endif 1607#endif
1608#endif /* HAVE_X_WINDOWS */ 1608#endif /* HAVE_X_WINDOWS */
1609 1609
1610#ifdef HAVE_X_WINDOWS
1611 syms_of_menu (); 1610 syms_of_menu ();
1612#endif
1613 1611
1614#ifndef HAVE_NTGUI 1612#ifndef HAVE_NTGUI
1615#ifndef MAC_OS 1613#ifndef MAC_OS
diff --git a/src/keyboard.h b/src/keyboard.h
index 6f18e37b948..2f0f434909a 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -253,8 +253,6 @@ extern Lisp_Object item_properties;
253/* Not nil if item is enabled. */ 253/* Not nil if item is enabled. */
254#define ITEM_PROPERTY_ENABLE 8 254#define ITEM_PROPERTY_ENABLE 8
255 255
256#ifdef HAVE_X_WINDOWS
257
258/* This holds a Lisp vector that holds the results of decoding 256/* This holds a Lisp vector that holds the results of decoding
259 the keymaps or alist-of-alists that specify a menu. 257 the keymaps or alist-of-alists that specify a menu.
260 258
@@ -315,7 +313,7 @@ extern Lisp_Object unuse_menu_items P_ ((Lisp_Object dummy));
315 isn't defined. The use of HAVE_MULTILINGUAL_MENU could probably be 313 isn't defined. The use of HAVE_MULTILINGUAL_MENU could probably be
316 confined to an extended version of this with sections of code below 314 confined to an extended version of this with sections of code below
317 using it unconditionally. */ 315 using it unconditionally. */
318#ifdef HAVE_X_WINDOWS 316#ifndef HAVE_NTGUI
319#ifdef USE_GTK 317#ifdef USE_GTK
320/* gtk just uses utf-8. */ 318/* gtk just uses utf-8. */
321# define ENCODE_MENU_STRING(str) ENCODE_UTF_8 (str) 319# define ENCODE_MENU_STRING(str) ENCODE_UTF_8 (str)
@@ -324,10 +322,9 @@ extern Lisp_Object unuse_menu_items P_ ((Lisp_Object dummy));
324#else 322#else
325#define ENCODE_MENU_STRING(str) string_make_unibyte (str) 323#define ENCODE_MENU_STRING(str) string_make_unibyte (str)
326#endif /* USE_GTK */ 324#endif /* USE_GTK */
327#elif defined (HAVE_NTGUI) 325#else /* HAVE_NTGUI */
328#define ENCODE_MENU_STRING(str) (str) 326#define ENCODE_MENU_STRING(str) (str)
329#endif 327#endif
330#endif /* HAVE_X_WINDOWS */
331 328
332/* Macros for dealing with lispy events. */ 329/* Macros for dealing with lispy events. */
333 330