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