aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2013-09-05 11:33:03 +0300
committerEli Zaretskii2013-09-05 11:33:03 +0300
commit50a5f95ec5e610e8edbe09b03388c83684d87fd7 (patch)
tree5444c58409120e482b06b3053ae317cf8c798dd3
parent41306318777a942420bc4feadbfacf662ea179dc (diff)
downloademacs-50a5f95ec5e610e8edbe09b03388c83684d87fd7.tar.gz
emacs-50a5f95ec5e610e8edbe09b03388c83684d87fd7.zip
Made HAVE_MENUS the default; comment fix in term.c.
-rw-r--r--configure.ac17
-rw-r--r--src/term.c2
2 files changed, 4 insertions, 15 deletions
diff --git a/configure.ac b/configure.ac
index cfec49e5645..1e650105244 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1836,11 +1836,8 @@ to configure.])
1836 fi 1836 fi
1837fi 1837fi
1838 1838
1839### If we're using X11, we should use the X menu package. 1839### We always support menus.
1840HAVE_MENUS=no 1840HAVE_MENUS=yes
1841case ${HAVE_X11} in
1842 yes ) HAVE_MENUS=yes ;;
1843esac
1844 1841
1845# Does the opsystem file prohibit the use of the GNU malloc? 1842# Does the opsystem file prohibit the use of the GNU malloc?
1846# Assume not, until told otherwise. 1843# Assume not, until told otherwise.
@@ -3122,15 +3119,9 @@ if test "${HAVE_NS}" = "yes"; then
3122 ## Extra CFLAGS applied to src/*.m files. 3119 ## Extra CFLAGS applied to src/*.m files.
3123 GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" 3120 GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
3124 fi 3121 fi
3125 # We also have mouse menus.
3126 HAVE_MENUS=yes
3127 OTHER_FILES=ns-app 3122 OTHER_FILES=ns-app
3128fi 3123fi
3129 3124
3130if test "${HAVE_W32}" = "yes"; then
3131 HAVE_MENUS=yes
3132fi
3133
3134### Use session management (-lSM -lICE) if available 3125### Use session management (-lSM -lICE) if available
3135HAVE_X_SM=no 3126HAVE_X_SM=no
3136LIBXSM= 3127LIBXSM=
@@ -4609,9 +4600,7 @@ AC_SUBST(OLDXMENU_DEPS)
4609 4600
4610if test "${HAVE_MENUS}" = "yes" ; then 4601if test "${HAVE_MENUS}" = "yes" ; then
4611 AC_DEFINE(HAVE_MENUS, 1, 4602 AC_DEFINE(HAVE_MENUS, 1,
4612 [Define to 1 if you have mouse menus. 4603 [Define to 1 if you have mouse menus. (This is supported in all configurations, but the option to specify it remains.)])
4613 (This is automatic if you use X, but the option to specify it remains.)
4614 It is also defined with other window systems that support xmenu.c.])
4615fi 4604fi
4616 4605
4617if test "${GNU_MALLOC}" = "yes" ; then 4606if test "${GNU_MALLOC}" = "yes" ; then
diff --git a/src/term.c b/src/term.c
index 73d7585e8f5..806e038da9a 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3227,7 +3227,7 @@ tty_menu_activate (tty_menu *menu, int *pane, int *selidx,
3227 faces[1], 1); 3227 faces[1], 1);
3228 3228
3229 /* Make sure the menu title is always displayed with 3229 /* Make sure the menu title is always displayed with
3230 `msdos-menu-active-face', no matter where the mouse pointer is. */ 3230 `tty-menu-selected-face', no matter where the mouse pointer is. */
3231 for (i = 0; i < 4; i++) 3231 for (i = 0; i < 4; i++)
3232 title_faces[i] = faces[3]; 3232 title_faces[i] = faces[3];
3233 3233