commit 7b36c52efc67e87fbe14a3778532468beafc829a
parent b5bb24c949ef861f033709f2dc5b61cacff413de
Author: Chris Allegretta <chrisa@asty.org>
Date: Wed, 6 Dec 2000 01:08:10 +0000
Changed --disable-spell to --disable-speller
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@389 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
6 files changed, 18 insertions(+), 15 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,4 +1,7 @@
CVS code -
+General
+ - Changed --disable-spell to --disable speller. The term is
+ "speller" for -s, so it should be --disable-speller.
- files.c:
write_file()
- Added tmp check to TMP_OPT section (how apropriate).
diff --git a/acconfig.h b/acconfig.h
@@ -34,6 +34,6 @@
#undef DISABLE_JUSTIFY
/* Define this to disable the use(full|less) spelling functions */
-#undef DISABLE_SPELL
+#undef DISABLE_SPELLER
diff --git a/config.h.in b/config.h.in
@@ -86,7 +86,7 @@
#undef DISABLE_JUSTIFY
/* Define this to disable the use(full|less) spelling functions */
-#undef DISABLE_SPELL
+#undef DISABLE_SPELLER
/* Define if you have the __argz_count function. */
#undef HAVE___ARGZ_COUNT
diff --git a/configure b/configure
@@ -1322,12 +1322,12 @@ EOF
fi
-# Check whether --enable-spell or --disable-spell was given.
-if test "${enable_spell+set}" = set; then
- enableval="$enable_spell"
+# Check whether --enable-speller or --disable-speller was given.
+if test "${enable_speller+set}" = set; then
+ enableval="$enable_speller"
if test x$enableval != xyes; then
cat >> confdefs.h <<\EOF
-#define DISABLE_SPELL 1
+#define DISABLE_SPELLER 1
EOF
fi
diff --git a/configure.in b/configure.in
@@ -39,10 +39,10 @@ AC_ARG_ENABLE(justify,
AC_DEFINE(DISABLE_JUSTIFY)
fi])
-AC_ARG_ENABLE(spell,
+AC_ARG_ENABLE(speller,
[ --disable-speller Disables spell checker function],
[if test x$enableval != xyes; then
- AC_DEFINE(DISABLE_SPELL)
+ AC_DEFINE(DISABLE_SPELLER)
fi])
AC_MSG_CHECKING(whether to use slang)
diff --git a/nano.c b/nano.c
@@ -440,8 +440,8 @@ void version(void)
#ifdef DISABLE_JUSTIFY
printf(" --disable-justify");
#endif
-#ifdef DISABLE_SPELL
- printf(" --disable-spell");
+#ifdef DISABLE_SPELLER
+ printf(" --disable-speller");
#endif
#ifdef USE_SLANG
printf(" --with-slang");
@@ -514,7 +514,7 @@ void nano_small_msg(void)
}
#endif
-#if defined(DISABLE_JUSTIFY) || defined(DISABLE_SPELL)
+#if defined(DISABLE_JUSTIFY) || defined(DISABLE_SPELLER)
void nano_disabled_msg(void)
{
statusbar("Sorry, support for this function has been disabled");
@@ -1102,7 +1102,7 @@ void wrap_reset(void)
UNSET(SAMELINEWRAP);
}
-#if !defined(NANO_SMALL) && !defined(DISABLE_SPELL)
+#if !defined(NANO_SMALL) && !defined(DISABLE_SPELLER)
int do_int_spell_fix(char *word)
{
@@ -1170,7 +1170,7 @@ int do_int_spell_fix(char *word)
}
#endif
-#if !defined(NANO_SMALL) && !defined(DISABLE_SPELL)
+#if !defined(NANO_SMALL) && !defined(DISABLE_SPELLER)
/* Integrated spell checking using 'spell' program */
int do_int_speller(char *tempfile_name)
@@ -1300,7 +1300,7 @@ int do_int_speller(char *tempfile_name)
}
#endif
-#if !defined(NANO_SMALL) && !defined(DISABLE_SPELL)
+#if !defined(NANO_SMALL) && !defined(DISABLE_SPELLER)
/* External spell checking */
int do_alt_speller(char *file_name)
@@ -1355,7 +1355,7 @@ int do_spell(void)
#if defined(NANO_SMALL)
nano_small_msg();
return (TRUE);
-#elif defined(DISABLE_SPELL)
+#elif defined(DISABLE_SPELLER)
nano_disabled_msg();
return (TRUE);
#else