|
|
073263 |
To: vim_dev@googlegroups.com
|
|
|
073263 |
Subject: Patch 7.4.538
|
|
|
073263 |
Fcc: outbox
|
|
|
073263 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
073263 |
Mime-Version: 1.0
|
|
|
073263 |
Content-Type: text/plain; charset=UTF-8
|
|
|
073263 |
Content-Transfer-Encoding: 8bit
|
|
|
073263 |
------------
|
|
|
073263 |
|
|
|
073263 |
Patch 7.4.538
|
|
|
073263 |
Problem: Tests fail with small features plus Python.
|
|
|
073263 |
Solution: Disallow weird combination of options. Do not set "fdm" when
|
|
|
073263 |
folding is disabled.
|
|
|
073263 |
Files: src/option.c, src/ex_cmds.c, src/configure.in, src/auto/configure,
|
|
|
073263 |
src/feature.h
|
|
|
073263 |
|
|
|
073263 |
|
|
|
073263 |
*** ../vim-7.4.537/src/option.c 2014-11-19 19:33:13.369532180 +0100
|
|
|
073263 |
--- src/option.c 2014-11-30 12:56:25.150896626 +0100
|
|
|
073263 |
***************
|
|
|
073263 |
*** 5575,5580 ****
|
|
|
073263 |
--- 5575,5581 ----
|
|
|
073263 |
if (idx < 0) /* not found (should not happen) */
|
|
|
073263 |
{
|
|
|
073263 |
EMSG2(_(e_intern2), "set_string_option_direct()");
|
|
|
073263 |
+ EMSG2(_("For option %s"), name);
|
|
|
073263 |
return;
|
|
|
073263 |
}
|
|
|
073263 |
}
|
|
|
073263 |
*** ../vim-7.4.537/src/ex_cmds.c 2014-11-12 19:28:12.682661756 +0100
|
|
|
073263 |
--- src/ex_cmds.c 2014-11-30 12:58:01.761820052 +0100
|
|
|
073263 |
***************
|
|
|
073263 |
*** 6200,6208 ****
|
|
|
073263 |
--- 6200,6210 ----
|
|
|
073263 |
(void)buf_init_chartab(curbuf, FALSE);
|
|
|
073263 |
}
|
|
|
073263 |
|
|
|
073263 |
+ #ifdef FEAT_FOLDING
|
|
|
073263 |
/* Don't use the global foldmethod.*/
|
|
|
073263 |
set_string_option_direct((char_u *)"fdm", -1, (char_u *)"manual",
|
|
|
073263 |
OPT_FREE|OPT_LOCAL, 0);
|
|
|
073263 |
+ #endif
|
|
|
073263 |
|
|
|
073263 |
curbuf->b_p_ts = 8; /* 'tabstop' is 8 */
|
|
|
073263 |
curwin->w_p_list = FALSE; /* no list mode */
|
|
|
073263 |
*** ../vim-7.4.537/src/configure.in 2014-10-11 14:47:22.817275547 +0200
|
|
|
073263 |
--- src/configure.in 2014-11-30 13:16:17.549623303 +0100
|
|
|
073263 |
***************
|
|
|
073263 |
*** 1041,1046 ****
|
|
|
073263 |
--- 1041,1050 ----
|
|
|
073263 |
[enable_pythoninterp="no"])
|
|
|
073263 |
AC_MSG_RESULT($enable_pythoninterp)
|
|
|
073263 |
if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
|
|
|
073263 |
+ if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
|
|
|
073263 |
+ AC_MSG_ERROR([cannot use Python with tiny or small features])
|
|
|
073263 |
+ fi
|
|
|
073263 |
+
|
|
|
073263 |
dnl -- find the python executable
|
|
|
073263 |
AC_PATH_PROGS(vi_cv_path_python, python2 python)
|
|
|
073263 |
if test "X$vi_cv_path_python" != "X"; then
|
|
|
073263 |
***************
|
|
|
073263 |
*** 1243,1248 ****
|
|
|
073263 |
--- 1247,1256 ----
|
|
|
073263 |
[enable_python3interp="no"])
|
|
|
073263 |
AC_MSG_RESULT($enable_python3interp)
|
|
|
073263 |
if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
|
|
|
073263 |
+ if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
|
|
|
073263 |
+ AC_MSG_ERROR([cannot use Python with tiny or small features])
|
|
|
073263 |
+ fi
|
|
|
073263 |
+
|
|
|
073263 |
dnl -- find the python3 executable
|
|
|
073263 |
AC_PATH_PROGS(vi_cv_path_python3, python3 python)
|
|
|
073263 |
if test "X$vi_cv_path_python3" != "X"; then
|
|
|
073263 |
***************
|
|
|
073263 |
*** 1720,1725 ****
|
|
|
073263 |
--- 1728,1737 ----
|
|
|
073263 |
[enable_rubyinterp="no"])
|
|
|
073263 |
AC_MSG_RESULT($enable_rubyinterp)
|
|
|
073263 |
if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
|
|
|
073263 |
+ if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
|
|
|
073263 |
+ AC_MSG_ERROR([cannot use Ruby with tiny or small features])
|
|
|
073263 |
+ fi
|
|
|
073263 |
+
|
|
|
073263 |
AC_MSG_CHECKING(--with-ruby-command argument)
|
|
|
073263 |
AC_SUBST(vi_cv_path_ruby)
|
|
|
073263 |
AC_ARG_WITH(ruby-command, [ --with-ruby-command=RUBY name of the Ruby command (default: ruby)],
|
|
|
073263 |
*** ../vim-7.4.537/src/auto/configure 2014-10-11 14:47:22.825275547 +0200
|
|
|
073263 |
--- src/auto/configure 2014-11-30 13:16:24.781542840 +0100
|
|
|
073263 |
***************
|
|
|
073263 |
*** 5728,5733 ****
|
|
|
073263 |
--- 5728,5737 ----
|
|
|
073263 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
|
|
|
073263 |
$as_echo "$enable_pythoninterp" >&6; }
|
|
|
073263 |
if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
|
|
|
073263 |
+ if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
|
|
|
073263 |
+ as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
|
|
|
073263 |
+ fi
|
|
|
073263 |
+
|
|
|
073263 |
for ac_prog in python2 python
|
|
|
073263 |
do
|
|
|
073263 |
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
073263 |
***************
|
|
|
073263 |
*** 6044,6049 ****
|
|
|
073263 |
--- 6048,6057 ----
|
|
|
073263 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
|
|
|
073263 |
$as_echo "$enable_python3interp" >&6; }
|
|
|
073263 |
if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
|
|
|
073263 |
+ if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
|
|
|
073263 |
+ as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
|
|
|
073263 |
+ fi
|
|
|
073263 |
+
|
|
|
073263 |
for ac_prog in python3 python
|
|
|
073263 |
do
|
|
|
073263 |
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
073263 |
***************
|
|
|
073263 |
*** 6929,6934 ****
|
|
|
073263 |
--- 6937,6946 ----
|
|
|
073263 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
|
|
|
073263 |
$as_echo "$enable_rubyinterp" >&6; }
|
|
|
073263 |
if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
|
|
|
073263 |
+ if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
|
|
|
073263 |
+ as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5
|
|
|
073263 |
+ fi
|
|
|
073263 |
+
|
|
|
073263 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
|
|
|
073263 |
$as_echo_n "checking --with-ruby-command argument... " >&6; }
|
|
|
073263 |
|
|
|
073263 |
*** ../vim-7.4.537/src/feature.h 2014-03-23 15:12:29.943264337 +0100
|
|
|
073263 |
--- src/feature.h 2014-11-30 13:22:11.997681089 +0100
|
|
|
073263 |
***************
|
|
|
073263 |
*** 385,397 ****
|
|
|
073263 |
#endif
|
|
|
073263 |
|
|
|
073263 |
/*
|
|
|
073263 |
- * +python and +python3 require FEAT_EVAL.
|
|
|
073263 |
- */
|
|
|
073263 |
- #if !defined(FEAT_EVAL) && (defined(FEAT_PYTHON3) || defined(FEAT_PYTHON))
|
|
|
073263 |
- # define FEAT_EVAL
|
|
|
073263 |
- #endif
|
|
|
073263 |
-
|
|
|
073263 |
- /*
|
|
|
073263 |
* +profile Profiling for functions and scripts.
|
|
|
073263 |
*/
|
|
|
073263 |
#if defined(FEAT_HUGE) \
|
|
|
073263 |
--- 385,390 ----
|
|
|
073263 |
*** ../vim-7.4.537/src/version.c 2014-11-27 19:14:45.080940970 +0100
|
|
|
073263 |
--- src/version.c 2014-11-30 13:22:33.565441297 +0100
|
|
|
073263 |
***************
|
|
|
073263 |
*** 743,744 ****
|
|
|
073263 |
--- 743,746 ----
|
|
|
073263 |
{ /* Add new patch number below this line */
|
|
|
073263 |
+ /**/
|
|
|
073263 |
+ 538,
|
|
|
073263 |
/**/
|
|
|
073263 |
|
|
|
073263 |
--
|
|
|
073263 |
Computers make very fast, very accurate, mistakes.
|
|
|
073263 |
|
|
|
073263 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
073263 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
073263 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
073263 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|