mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.4.538
Problem: Tests fail with small features plus Python. Solution: Disallow weird combination of options. Do not set "fdm" when folding is disabled.
This commit is contained in:
parent
76440e2efe
commit
0b10541606
12
src/auto/configure
vendored
12
src/auto/configure
vendored
@ -5728,6 +5728,10 @@ fi
|
|||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
|
||||||
$as_echo "$enable_pythoninterp" >&6; }
|
$as_echo "$enable_pythoninterp" >&6; }
|
||||||
if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
|
if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
|
||||||
|
if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
|
||||||
|
as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
|
||||||
|
fi
|
||||||
|
|
||||||
for ac_prog in python2 python
|
for ac_prog in python2 python
|
||||||
do
|
do
|
||||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||||
@ -6044,6 +6048,10 @@ fi
|
|||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
|
||||||
$as_echo "$enable_python3interp" >&6; }
|
$as_echo "$enable_python3interp" >&6; }
|
||||||
if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
|
if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
|
||||||
|
if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
|
||||||
|
as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
|
||||||
|
fi
|
||||||
|
|
||||||
for ac_prog in python3 python
|
for ac_prog in python3 python
|
||||||
do
|
do
|
||||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||||
@ -6929,6 +6937,10 @@ fi
|
|||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
|
||||||
$as_echo "$enable_rubyinterp" >&6; }
|
$as_echo "$enable_rubyinterp" >&6; }
|
||||||
if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
|
if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
|
||||||
|
if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
|
||||||
|
as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5
|
||||||
|
fi
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
|
||||||
$as_echo_n "checking --with-ruby-command argument... " >&6; }
|
$as_echo_n "checking --with-ruby-command argument... " >&6; }
|
||||||
|
|
||||||
|
@ -1041,6 +1041,10 @@ AC_ARG_ENABLE(pythoninterp,
|
|||||||
[enable_pythoninterp="no"])
|
[enable_pythoninterp="no"])
|
||||||
AC_MSG_RESULT($enable_pythoninterp)
|
AC_MSG_RESULT($enable_pythoninterp)
|
||||||
if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
|
if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
|
||||||
|
if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
|
||||||
|
AC_MSG_ERROR([cannot use Python with tiny or small features])
|
||||||
|
fi
|
||||||
|
|
||||||
dnl -- find the python executable
|
dnl -- find the python executable
|
||||||
AC_PATH_PROGS(vi_cv_path_python, python2 python)
|
AC_PATH_PROGS(vi_cv_path_python, python2 python)
|
||||||
if test "X$vi_cv_path_python" != "X"; then
|
if test "X$vi_cv_path_python" != "X"; then
|
||||||
@ -1243,6 +1247,10 @@ AC_ARG_ENABLE(python3interp,
|
|||||||
[enable_python3interp="no"])
|
[enable_python3interp="no"])
|
||||||
AC_MSG_RESULT($enable_python3interp)
|
AC_MSG_RESULT($enable_python3interp)
|
||||||
if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
|
if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
|
||||||
|
if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
|
||||||
|
AC_MSG_ERROR([cannot use Python with tiny or small features])
|
||||||
|
fi
|
||||||
|
|
||||||
dnl -- find the python3 executable
|
dnl -- find the python3 executable
|
||||||
AC_PATH_PROGS(vi_cv_path_python3, python3 python)
|
AC_PATH_PROGS(vi_cv_path_python3, python3 python)
|
||||||
if test "X$vi_cv_path_python3" != "X"; then
|
if test "X$vi_cv_path_python3" != "X"; then
|
||||||
@ -1720,6 +1728,10 @@ AC_ARG_ENABLE(rubyinterp,
|
|||||||
[enable_rubyinterp="no"])
|
[enable_rubyinterp="no"])
|
||||||
AC_MSG_RESULT($enable_rubyinterp)
|
AC_MSG_RESULT($enable_rubyinterp)
|
||||||
if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
|
if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
|
||||||
|
if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
|
||||||
|
AC_MSG_ERROR([cannot use Ruby with tiny or small features])
|
||||||
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING(--with-ruby-command argument)
|
AC_MSG_CHECKING(--with-ruby-command argument)
|
||||||
AC_SUBST(vi_cv_path_ruby)
|
AC_SUBST(vi_cv_path_ruby)
|
||||||
AC_ARG_WITH(ruby-command, [ --with-ruby-command=RUBY name of the Ruby command (default: ruby)],
|
AC_ARG_WITH(ruby-command, [ --with-ruby-command=RUBY name of the Ruby command (default: ruby)],
|
||||||
|
@ -6200,9 +6200,11 @@ prepare_help_buffer()
|
|||||||
(void)buf_init_chartab(curbuf, FALSE);
|
(void)buf_init_chartab(curbuf, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef FEAT_FOLDING
|
||||||
/* Don't use the global foldmethod.*/
|
/* Don't use the global foldmethod.*/
|
||||||
set_string_option_direct((char_u *)"fdm", -1, (char_u *)"manual",
|
set_string_option_direct((char_u *)"fdm", -1, (char_u *)"manual",
|
||||||
OPT_FREE|OPT_LOCAL, 0);
|
OPT_FREE|OPT_LOCAL, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
curbuf->b_p_ts = 8; /* 'tabstop' is 8 */
|
curbuf->b_p_ts = 8; /* 'tabstop' is 8 */
|
||||||
curwin->w_p_list = FALSE; /* no list mode */
|
curwin->w_p_list = FALSE; /* no list mode */
|
||||||
|
@ -384,13 +384,6 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* +python and +python3 require FEAT_EVAL.
|
|
||||||
*/
|
|
||||||
#if !defined(FEAT_EVAL) && (defined(FEAT_PYTHON3) || defined(FEAT_PYTHON))
|
|
||||||
# define FEAT_EVAL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* +profile Profiling for functions and scripts.
|
* +profile Profiling for functions and scripts.
|
||||||
*/
|
*/
|
||||||
|
@ -5575,6 +5575,7 @@ set_string_option_direct(name, opt_idx, val, opt_flags, set_sid)
|
|||||||
if (idx < 0) /* not found (should not happen) */
|
if (idx < 0) /* not found (should not happen) */
|
||||||
{
|
{
|
||||||
EMSG2(_(e_intern2), "set_string_option_direct()");
|
EMSG2(_(e_intern2), "set_string_option_direct()");
|
||||||
|
EMSG2(_("For option %s"), name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
538,
|
||||||
/**/
|
/**/
|
||||||
537,
|
537,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user