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