]> granicus.if.org Git - vim/commitdiff
patch 9.0.0657: too many #ifdefs v9.0.0657
authorMartin Tournoij <martin@arp242.net>
Tue, 4 Oct 2022 15:28:45 +0000 (16:28 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 4 Oct 2022 15:28:45 +0000 (16:28 +0100)
Problem:    Too many #ifdefs.
Solution:   Graduate the +cmdwin feature.  Now the tiny and small builds are
            equal, drop the small build.  (Martin Tournoij, closes #11268)

46 files changed:
.appveyor.yml
runtime/doc/cmdline.txt
runtime/doc/various.txt
src/INSTALLvms.txt
src/Make_ami.mak
src/Make_cyg_ming.mak
src/Make_mvc.mak
src/Make_vms.mms
src/Makefile
src/arglist.c
src/auto/configure
src/config.h.in
src/configure.ac
src/drawline.c
src/drawscreen.c
src/edit.c
src/errors.h
src/evalfunc.c
src/evalwindow.c
src/ex_cmds.c
src/ex_docmd.c
src/ex_getln.c
src/feature.h
src/getchar.c
src/globals.h
src/gui.c
src/gui_gtk_x11.c
src/gui_motif.c
src/gui_w32.c
src/if_mzsch.c
src/insexpand.c
src/main.c
src/map.c
src/mouse.c
src/move.c
src/normal.c
src/option.c
src/option.h
src/optiondefs.h
src/optionstr.c
src/terminal.c
src/testdir/Make_all.mak
src/textformat.c
src/version.c
src/vim.h
src/window.c

index c98bd5e7cd5a77bd1cc20343402cdb833793252a..18259abea78ad76e3beed7162e7a10e323a2fc4d 100644 (file)
@@ -7,7 +7,6 @@ environment:
     - FEATURE: HUGE
 # disabled
 #    - FEATURE: TINY
-#    - FEATURE: SMALL
 #    - FEATURE: NORMAL
 #    - FEATURE: BIG
 
index a9d3b36422f34bf38c0ab045e4c4251861adea09..8b37870102a0f93e9b17a389e93497ee94cd0554 100644 (file)
@@ -1124,7 +1124,6 @@ Also see |`=|.
 In the command-line window the command line can be edited just like editing
 text in any window.  It is a special kind of window, because you cannot leave
 it in a normal way.
-{not available when compiled without the |+cmdwin| feature}
 
 
 OPEN                                           *c_CTRL-F* *q:* *q/* *q?*
index 448091ec438a8d86dd25a741e365ae96134b957b..fdb744cb9f0ddaca0ed2ddcb9cc70677be561c6e 100644 (file)
@@ -349,14 +349,14 @@ T  *++builtin_terms*      maximal terminals builtin |builtin-terms| Always
 N  *+byte_offset*      support for 'o' flag in 'statusline' option, "go"
                        and ":goto" commands.
 m  *+channel*          inter process communication |channel|
-6  *+cindent*          |'cindent'|, C indenting
+T  *+cindent*          |'cindent'|, C indenting; Always enabled
 N  *+clientserver*     Unix and Win32: Remote invocation |clientserver|
    *+clipboard*                |clipboard| support compiled-in
    *+clipboard_working*        |clipboard| support compiled-in and working
 T  *+cmdline_compl*    command line completion |cmdline-completion|
 T  *+cmdline_hist*     command line history |cmdline-history|
 N  *+cmdline_info*     |'showcmd'| and |'ruler'|
-S  *+cmdwin*           |cmdline-window| support
+T  *+cmdwin*           |cmdline-window| support; Always enabled since 9.0.0657
 T  *+comments*         |'comments'| support
 B  *+conceal*          "conceal" support, see |conceal| |:syn-conceal| etc.
 N  *+cryptv*           encryption support |encryption|
index e336da4cbe2aec6edf8f6dec818fac3fe31a4d94..de1446b2cb0155a3a08836f1c9aa597d691263f6 100644 (file)
@@ -77,9 +77,7 @@ from CVS mirror ftp://ftp.polarhome.com/pub/cvs/SOURCE/
 
        Parameter name  : MODEL
        Description     : Build model selection
-       Options:        : TINY    - Almost no features enabled, not even
-                         multiple windows
-                         SMALL   - Few features enabled, as basic as possible
+       Options:        : TINY    - No optional features enabled
                          NORMAL  - A default selection of features enabled
                          BIG     - Many features enabled, as rich as possible.
                          (OpenVMS default)
index 77ec32cfcb5ea6b852ec72ad8bcd685f084fd3ae..a889ebd46fb57b2792915c78a1482ee8da8a6760 100644 (file)
@@ -45,9 +45,9 @@ CFLAGS +=\
        -DFEAT_NORMAL
 else
 
-# Vim 'small' build
+# Vim 'small' build - now an alias for 'tiny'
 ifeq ($(BUILD),small)
-CFLAGS += -DFEAT_SMALL
+CFLAGS += -DFEAT_TINY
 else
 
 # Vim 'tiny' build
index 55d13b105c927f8ad87bca9688c385236c5fcd4f..dfc540375b52b7265f19a276b5945f2e0ca98524 100644 (file)
@@ -28,8 +28,8 @@
 # Updated 2014 Oct 13.
 
 #>>>>> choose options:
-# FEATURES=[TINY | SMALL | NORMAL | BIG | HUGE]
-# Set to TINY to make minimal version (few features).
+# FEATURES=[TINY | NORMAL | BIG | HUGE]
+# Set to TINY to make a minimal version (no optional features).
 FEATURES=HUGE
 
 # Set to yes for a debug build.
index 9529d0aac8422eb2b25e5dec35a224a382288c60..be08c6fd5e09ebbdddb417ec75c3cdb30911634e 100644 (file)
@@ -16,7 +16,7 @@
 #
 #      !!!!  After changing any features do "nmake clean" first  !!!!
 #
-#      Feature Set: FEATURES=[TINY, SMALL, NORMAL, BIG, HUGE] (default is HUGE)
+#      Feature Set: FEATURES=[TINY, NORMAL, BIG, HUGE] (default is HUGE)
 #
 #      Name to add to the version: MODIFIED_BY=[name of modifier]
 #
@@ -1124,7 +1124,7 @@ CFLAGS = $(CFLAGS) -DMSWINPS
 !endif # POSTSCRIPT
 
 #
-# FEATURES: TINY, SMALL, NORMAL, BIG or HUGE
+# FEATURES: TINY, NORMAL, BIG or HUGE
 #
 CFLAGS = $(CFLAGS) -DFEAT_$(FEATURES)
 
index f1689bef3c9dba68c911bdfff27b22b29f833e72..4e945e534ad0cbb8207c320c2d7cc331e30b1c6f 100644 (file)
@@ -27,8 +27,7 @@
 DECC = YES
 
 # Build model selection
-# TINY   - Almost no features enabled, not even multiple windows
-# SMALL  - Few features enabled, as basic as possible
+# TINY   - No optional features enabled
 # NORMAL - A default selection of features enabled
 # BIG    - Many features enabled, as rich as possible. (default)
 # HUGE   - All possible features enabled.
index 14601a2473793f39cbfe4db22845f8b1a79a2da7..8ac6e4f84d59a4d5aa8fd4b49413535185a3f233 100644 (file)
@@ -386,7 +386,7 @@ CClink = $(CC)
 # "liblua5.4-dev".
 # Use --with-luajit if you want to use LuaJIT instead of Lua.
 # Set PATH environment variable to find lua or luajit executable.
-# This requires at least "normal" features, "tiny" and "small" don't work.
+# This requires at least "normal" features, "tiny" doesn't work.
 #CONF_OPT_LUA = --enable-luainterp
 #CONF_OPT_LUA = --enable-luainterp=dynamic
 #CONF_OPT_LUA = --enable-luainterp --with-luajit
@@ -415,14 +415,14 @@ CClink = $(CC)
 # the next line.
 # When you get an error for a missing "perl.exp" file, try creating an empty
 # one: "touch perl.exp".
-# This requires at least "normal" features, "tiny" and "small" don't work.
+# This requires at least "normal" features, "tiny" doesn't work.
 #CONF_OPT_PERL = --enable-perlinterp
 #CONF_OPT_PERL = --enable-perlinterp=dynamic
 
 # PYTHON
 # Uncomment lines here when you want to include the Python interface.
 # Debian package is "libpython3-dev".
-# This requires at least "normal" features, "tiny" and "small" don't work.
+# This requires at least "normal" features, "tiny" doesn't work.
 # Python 3 is preferred, Python 2 (often referred to as "Python") has been
 # deprecated for a long time.
 # NOTE: This may cause threading to be enabled, which has side effects (such
@@ -444,7 +444,7 @@ CClink = $(CC)
 # Uncomment this when you want to include the Ruby interface.
 # First one for static linking, second one for loading when used.
 # Debian package is "ruby-dev".
-# This requires at least "normal" features, "tiny" and "small" don't work.
+# This requires at least "normal" features, "tiny" doesn't work.
 #CONF_OPT_RUBY = --enable-rubyinterp
 #CONF_OPT_RUBY = --enable-rubyinterp=dynamic
 #CONF_OPT_RUBY = --enable-rubyinterp --with-ruby-command=ruby1.9.1
@@ -453,6 +453,7 @@ CClink = $(CC)
 # Uncomment this when you want to include the Tcl interface.
 # First one is for static linking, second one for dynamic loading.
 # Debian package is "tcl-dev".
+# This requires at least "normal" features, "tiny" doesn't work.
 #CONF_OPT_TCL = --enable-tclinterp
 #CONF_OPT_TCL = --enable-tclinterp=dynamic
 #CONF_OPT_TCL = --enable-tclinterp --with-tclsh=tclsh8.4
@@ -530,7 +531,6 @@ CClink = $(CC)
 # Uncomment one of these lines when you want to include few to many features.
 # The default is "huge" for most systems.
 #CONF_OPT_FEAT = --with-features=tiny
-#CONF_OPT_FEAT = --with-features=small
 #CONF_OPT_FEAT = --with-features=normal
 #CONF_OPT_FEAT = --with-features=big
 #CONF_OPT_FEAT = --with-features=huge
index 06398e2070a969f35eebe5baf5438f2e482aa860..4c64d2ab547895fdc642087c357f71aa4500f0d6 100644 (file)
@@ -1186,13 +1186,11 @@ do_arg_all(
     tabpage_T          *last_curtab;
     int                        prev_arglist_locked = arglist_locked;
 
-#ifdef FEAT_CMDWIN
     if (cmdwin_type != 0)
     {
        emsg(_(e_invalid_in_cmdline_window));
        return;
     }
-#endif
     if (ARGCOUNT <= 0)
     {
        // Don't give an error message.  We don't want it when the ":all"
index 4bec8a7201410eaf2641be399b2ba73d5735afe5..9e2512dad2fa7f0057a37a7c2b9266be89adff12 100755 (executable)
@@ -1523,7 +1523,7 @@ Optional Packages:
   --with-view-name=NAME   what to call the View executable
   --with-global-runtime=DIR    global runtime directory in 'runtimepath', comma-separated for multiple directories
   --with-modified-by=NAME       name of who modified a release version
-  --with-features=TYPE    tiny, small, normal, big or huge (default: huge)
+  --with-features=TYPE    tiny, normal, big or huge (default: huge)
   --with-compiledby=NAME  name to show in :version message
   --with-lua-prefix=PFX   Prefix where Lua is installed.
   --with-luajit           Link with LuaJIT instead of Lua.
@@ -5219,12 +5219,14 @@ $as_echo "Defaulting to huge" >&6; }
 fi
 
 
+case "$features" in
+  small) features="tiny" ;;
+esac
+
 dovimdiff=""
 dogvimdiff=""
 case "$features" in
   tiny)                $as_echo "#define FEAT_TINY 1" >>confdefs.h
- ;;
-  small)       $as_echo "#define FEAT_SMALL 1" >>confdefs.h
  ;;
   normal)      $as_echo "#define FEAT_NORMAL 1" >>confdefs.h
  dovimdiff="installvimdiff";
@@ -5242,7 +5244,7 @@ esac
 
 
 
-if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
+if test "x$features" = "xtiny"; then
   has_eval=no
 else
   has_eval=yes
@@ -5300,7 +5302,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking diff feature" >&5
 $as_echo_n "checking diff feature... " >&6; }
-if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
+if test "x$features" = "xtiny"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled in $features version" >&5
 $as_echo "disabled in $features version" >&6; }
 else
@@ -5326,7 +5328,7 @@ $as_echo "$enable_luainterp" >&6; }
 
 if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
   if test "$has_eval" = "no"; then
-    as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5
+    as_fn_error $? "cannot use Lua with tiny features" "$LINENO" 5
   fi
 
 
@@ -6096,7 +6098,7 @@ fi
 $as_echo "$enable_perlinterp" >&6; }
 if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
   if test "$has_eval" = "no"; then
-    as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5
+    as_fn_error $? "cannot use Perl with tiny features" "$LINENO" 5
   fi
 
   # Extract the first word of "perl", so it can be a program name with args.
@@ -6301,7 +6303,7 @@ fi
 $as_echo "$enable_pythoninterp" >&6; }
 if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
   if test "$has_eval" = "no"; then
-    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
+    as_fn_error $? "cannot use Python with tiny features" "$LINENO" 5
   fi
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python-command argument" >&5
@@ -6652,7 +6654,7 @@ fi
 $as_echo "$enable_python3interp" >&6; }
 if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
   if test "$has_eval" = "no"; then
-    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
+    as_fn_error $? "cannot use Python with tiny features" "$LINENO" 5
   fi
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python3-command argument" >&5
@@ -7580,7 +7582,7 @@ fi
 $as_echo "$enable_rubyinterp" >&6; }
 if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
   if test "$has_eval" = "no"; then
-    as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5
+    as_fn_error $? "cannot use Ruby with tiny features" "$LINENO" 5
   fi
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
@@ -7758,8 +7760,8 @@ fi
 
 if test "$enable_netbeans" = "yes"; then
   if test "$has_eval" = "no"; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5
-$as_echo "cannot use NetBeans with tiny or small features" >&6; }
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny features" >&5
+$as_echo "cannot use NetBeans with tiny features" >&6; }
     enable_netbeans="no"
   else
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
@@ -7781,8 +7783,8 @@ fi
 
 if test "$enable_channel" = "yes"; then
   if test "$has_eval" = "no"; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5
-$as_echo "cannot use channels with tiny or small features" >&6; }
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny features" >&5
+$as_echo "cannot use channels with tiny features" >&6; }
     enable_channel="no"
   else
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
@@ -8085,8 +8087,8 @@ fi
 
 if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then
   if test "$has_eval" = "no"; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5
-$as_echo "cannot use terminal emulator with tiny or small features" >&6; }
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny features" >&5
+$as_echo "cannot use terminal emulator with tiny features" >&6; }
     enable_terminal="no"
   else
     if test "$enable_terminal" = "auto"; then
@@ -12892,8 +12894,8 @@ $as_echo "Defaulting to no" >&6; }
   fi
 else
   if test "$enable_canberra" = "yes" -a "$has_eval" = "no"; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use sound with tiny or small features" >&5
-$as_echo "cannot use sound with tiny or small features" >&6; }
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use sound with tiny features" >&5
+$as_echo "cannot use sound with tiny features" >&6; }
     enable_canberra="no"
   else
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_canberra" >&5
@@ -14721,7 +14723,7 @@ rm -f core conftest.err conftest.$ac_objext \
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
 $as_echo "msgfmt not found - disabled" >&6; };
     fi
-    if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then
+    if test $have_gettext = "yes" -a "x$features" != "xtiny"; then
       $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
 
       MAKEMO=yes
index 875d9afd54a6761690b7a7c54c620a0c2c1a36cf..89e6f2380cfd35cf9ddd2043ba3a6b13843ed2f5 100644 (file)
 /* Define if you want tiny features. */
 #undef FEAT_TINY
 
-/* Define if you want small features. */
-#undef FEAT_SMALL
-
 /* Define if you want normal features. */
 #undef FEAT_NORMAL
 
index f9d6e42c197b1bc9b9b8b1568a0028351f13e1be..a588ad6e5fecce98ebc21147df66e80e516cfe91 100644 (file)
@@ -522,15 +522,19 @@ fi
 dnl Check user requested features.
 
 AC_MSG_CHECKING(--with-features argument)
-AC_ARG_WITH(features, [  --with-features=TYPE    tiny, small, normal, big or huge (default: huge)],
+AC_ARG_WITH(features, [  --with-features=TYPE    tiny, normal, big or huge (default: huge)],
        features="$withval"; AC_MSG_RESULT($features),
        features="huge"; AC_MSG_RESULT(Defaulting to huge))
 
+dnl "small" is supported for backwards compatibility, now an alias for "tiny"
+case "$features" in
+  small) features="tiny" ;;
+esac
+
 dovimdiff=""
 dogvimdiff=""
 case "$features" in
   tiny)                AC_DEFINE(FEAT_TINY) ;;
-  small)       AC_DEFINE(FEAT_SMALL) ;;
   normal)      AC_DEFINE(FEAT_NORMAL) dovimdiff="installvimdiff";
                        dogvimdiff="installgvimdiff" ;;
   big)         AC_DEFINE(FEAT_BIG) dovimdiff="installvimdiff";
@@ -543,7 +547,7 @@ esac
 AC_SUBST(dovimdiff)
 AC_SUBST(dogvimdiff)
 
-if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
+if test "x$features" = "xtiny"; then
   has_eval=no
 else
   has_eval=yes
@@ -577,7 +581,7 @@ else
 fi
 
 AC_MSG_CHECKING([diff feature])
-if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
+if test "x$features" = "xtiny"; then
   AC_MSG_RESULT([disabled in $features version])
 else
   AC_MSG_RESULT(enabled)
@@ -595,7 +599,7 @@ AC_MSG_RESULT($enable_luainterp)
 
 if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
   if test "$has_eval" = "no"; then
-    AC_MSG_ERROR([cannot use Lua with tiny or small features])
+    AC_MSG_ERROR([cannot use Lua with tiny features])
   fi
 
   dnl -- find the lua executable
@@ -1082,7 +1086,7 @@ AC_ARG_ENABLE(perlinterp,
 AC_MSG_RESULT($enable_perlinterp)
 if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
   if test "$has_eval" = "no"; then
-    AC_MSG_ERROR([cannot use Perl with tiny or small features])
+    AC_MSG_ERROR([cannot use Perl with tiny features])
   fi
   AC_SUBST(vi_cv_path_perl)
   AC_PATH_PROG(vi_cv_path_perl, perl)
@@ -1231,7 +1235,7 @@ AC_ARG_ENABLE(pythoninterp,
 AC_MSG_RESULT($enable_pythoninterp)
 if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
   if test "$has_eval" = "no"; then
-    AC_MSG_ERROR([cannot use Python with tiny or small features])
+    AC_MSG_ERROR([cannot use Python with tiny features])
   fi
 
   dnl -- find the python executable
@@ -1466,7 +1470,7 @@ AC_ARG_ENABLE(python3interp,
 AC_MSG_RESULT($enable_python3interp)
 if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
   if test "$has_eval" = "no"; then
-    AC_MSG_ERROR([cannot use Python with tiny or small features])
+    AC_MSG_ERROR([cannot use Python with tiny features])
   fi
 
   dnl -- find the python3 executable
@@ -1979,7 +1983,7 @@ AC_ARG_ENABLE(rubyinterp,
 AC_MSG_RESULT($enable_rubyinterp)
 if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
   if test "$has_eval" = "no"; then
-    AC_MSG_ERROR([cannot use Ruby with tiny or small features])
+    AC_MSG_ERROR([cannot use Ruby with tiny features])
   fi
 
   AC_MSG_CHECKING(--with-ruby-command argument)
@@ -2092,7 +2096,7 @@ AC_ARG_ENABLE(netbeans,
        , [enable_netbeans="yes"])
 if test "$enable_netbeans" = "yes"; then
   if test "$has_eval" = "no"; then
-    AC_MSG_RESULT([cannot use NetBeans with tiny or small features])
+    AC_MSG_RESULT([cannot use NetBeans with tiny features])
     enable_netbeans="no"
   else
     AC_MSG_RESULT(no)
@@ -2107,7 +2111,7 @@ AC_ARG_ENABLE(channel,
        , [enable_channel="yes"])
 if test "$enable_channel" = "yes"; then
   if test "$has_eval" = "no"; then
-    AC_MSG_RESULT([cannot use channels with tiny or small features])
+    AC_MSG_RESULT([cannot use channels with tiny features])
     enable_channel="no"
   else
     AC_MSG_RESULT(no)
@@ -2215,7 +2219,7 @@ AC_ARG_ENABLE(terminal,
        , [enable_terminal="auto"])
 if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then
   if test "$has_eval" = "no"; then
-    AC_MSG_RESULT([cannot use terminal emulator with tiny or small features])
+    AC_MSG_RESULT([cannot use terminal emulator with tiny features])
     enable_terminal="no"
   else
     if test "$enable_terminal" = "auto"; then
@@ -3722,7 +3726,7 @@ if test "$enable_canberra" = "maybe"; then
   fi
 else
   if test "$enable_canberra" = "yes" -a "$has_eval" = "no"; then
-    AC_MSG_RESULT([cannot use sound with tiny or small features])
+    AC_MSG_RESULT([cannot use sound with tiny features])
     enable_canberra="no"
   else
     AC_MSG_RESULT($enable_canberra)
@@ -4432,7 +4436,7 @@ if test "$enable_nls" = "yes"; then
     else
       AC_MSG_RESULT([msgfmt not found - disabled]);
     fi
-    if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then
+    if test $have_gettext = "yes" -a "x$features" != "xtiny"; then
       AC_DEFINE(HAVE_GETTEXT)
       MAKEMO=yes
       AC_SUBST(MAKEMO)
index d36eee7f59512e5c6f1dd524a4e06916c52244e6..3e796d23e2b4731be1d61eab78639e0158dbef65 100644 (file)
@@ -156,11 +156,7 @@ typedef struct {
 
 // draw_state values for items that are drawn in sequence:
 #define WL_START       0               // nothing done yet, must be zero
-#ifdef FEAT_CMDWIN
-# define WL_CMDLINE    (WL_START + 1)  // cmdline window column
-#else
-# define WL_CMDLINE    WL_START
-#endif
+#define WL_CMDLINE     (WL_START + 1)  // cmdline window column
 #ifdef FEAT_FOLDING
 # define WL_FOLD       (WL_CMDLINE + 1)        // 'foldcolumn'
 #else
@@ -1678,7 +1674,6 @@ win_line(
                line_attr = line_attr_save;
            }
 #endif
-#ifdef FEAT_CMDWIN
            if (wlv.draw_state == WL_CMDLINE - 1 && wlv.n_extra == 0)
            {
                wlv.draw_state = WL_CMDLINE;
@@ -1692,7 +1687,6 @@ win_line(
                                hl_combine_attr(wlv.wcr_attr, HL_ATTR(HLF_AT));
                }
            }
-#endif
 #ifdef FEAT_FOLDING
            if (wlv.draw_state == WL_FOLD - 1 && wlv.n_extra == 0)
            {
index 47354924233d951f84ecfd817fdac6e171a0f7a7..3ad7e00cc79c68e6180de5dac63d2702408162fb 100644 (file)
@@ -1102,7 +1102,6 @@ fold_line(
 
     // 1. Add the cmdwin_type for the command-line window
     // Ignores 'rightleft', this window is never right-left.
-#ifdef FEAT_CMDWIN
     if (cmdwin_type != 0 && wp == curwin)
     {
        ScreenLines[off] = cmdwin_type;
@@ -1111,7 +1110,6 @@ fold_line(
            ScreenLinesUC[off] = 0;
        ++col;
     }
-#endif
 
 #ifdef FEAT_RIGHTLEFT
 # define RL_MEMSET(p, v, l) \
index 447996459146ec9e0d97a27b7ccd363009f03483..2484fe555db5feff79bb3e43f9fb77e4c46d797e 100644 (file)
@@ -785,7 +785,6 @@ edit(
            // FALLTHROUGH
 
        case Ctrl_C:    // End input mode
-#ifdef FEAT_CMDWIN
            if (c == Ctrl_C && cmdwin_type != 0)
            {
                // Close the cmdline window.
@@ -794,7 +793,6 @@ edit(
                nomove = TRUE;
                goto doESCkey;
            }
-#endif
 #ifdef FEAT_JOB_CHANNEL
            if (c == Ctrl_C && bt_prompt(curbuf))
            {
@@ -1196,14 +1194,12 @@ doESCkey:
                break;
            }
 #endif
-#ifdef FEAT_CMDWIN
            if (cmdwin_type != 0)
            {
                // Execute the command in the cmdline window.
                cmdwin_result = CAR;
                goto doESCkey;
            }
-#endif
 #ifdef FEAT_JOB_CHANNEL
            if (bt_prompt(curbuf))
            {
index 3fa2db1e60aeb96d36df6c2cdfa14d9d2cda9fb1..5a976deac2b2a19d315d7879c5d4d438ed69c78d 100644 (file)
@@ -15,10 +15,8 @@ EXTERN char e_interrupted[]
 
 EXTERN char e_backslash_should_be_followed_by[]
        INIT(= N_("E10: \\ should be followed by /, ? or &"));
-#ifdef FEAT_CMDWIN
 EXTERN char e_invalid_in_cmdline_window[]
        INIT(= N_("E11: Invalid in command-line window; :q<CR> closes the window"));
-#endif
 EXTERN char e_command_not_allowed_from_vimrc_in_current_dir_or_tag_search[]
        INIT(= N_("E12: Command not allowed from exrc/vimrc in current dir or tag search"));
 EXTERN char e_file_exists[]
@@ -461,10 +459,8 @@ EXTERN char e_no_digraphs_version[]
 EXTERN char e_cannot_set_language_to_str[]
        INIT(= N_("E197: Cannot set language to \"%s\""));
 // E198 unused
-#ifdef FEAT_CMDWIN
 EXTERN char e_active_window_or_buffer_deleted[]
        INIT(= N_("E199: Active window or buffer deleted"));
-#endif
 EXTERN char e_readpre_autocommands_made_file_unreadable[]
        INIT(= N_("E200: *ReadPre autocommands made the file unreadable"));
 EXTERN char e_readpre_autocommands_must_not_change_current_buffer[]
@@ -3012,7 +3008,7 @@ EXTERN char e_expression_does_not_result_in_value_str[]
 #endif
 EXTERN char e_failed_to_source_defaults[]
        INIT(= N_("E1187: Failed to source defaults.vim"));
-#if defined(FEAT_TERMINAL) && defined(FEAT_CMDWIN)
+#if defined(FEAT_TERMINAL)
 EXTERN char e_cannot_open_terminal_from_command_line_window[]
        INIT(= N_("E1188: Cannot open a terminal from the command line window"));
 #endif
@@ -3291,10 +3287,8 @@ EXTERN char e_substitute_nesting_too_deep[]
 EXTERN char e_invalid_argument_nr[]
        INIT(= N_("E1291: Invalid argument: %ld"));
 #endif
-#ifdef FEAT_CMDWIN
 EXTERN char e_cmdline_window_already_open[]
        INIT(= N_("E1292: Command-line window is already open"));
-#endif
 #ifdef FEAT_PROP_POPUP
 EXTERN char e_cannot_use_negative_id_after_adding_textprop_with_text[]
        INIT(= N_("E1293: Cannot use a negative id after adding a textprop with text"));
index 5c6591c42bf413b3b3c292473053d1816da33ce8..22aa03b47dac4c1c385a3d1e0f0952667f238af2 100644 (file)
@@ -5582,13 +5582,7 @@ f_has(typval_T *argvars, typval_T *rettv)
                },
        {"cmdline_compl", 1},
        {"cmdline_hist", 1},
-       {"cmdwin",
-#ifdef FEAT_CMDWIN
-               1
-#else
-               0
-#endif
-               },
+       {"cmdwin", 1},
        {"comments", 1},
        {"conceal",
 #ifdef FEAT_CONCEAL
index 7a019627fb9f0cc9aeb4b243fa43dc66fdf407ee..3d3301f65c93b2762c445e7b27b59f31602a5417 100644 (file)
@@ -821,13 +821,11 @@ f_win_gotoid(typval_T *argvars, typval_T *rettv)
        return;
 
     id = tv_get_number(&argvars[0]);
-#ifdef FEAT_CMDWIN
     if (cmdwin_type != 0)
     {
        emsg(_(e_invalid_in_cmdline_window));
        return;
     }
-#endif
 #if defined(FEAT_PROP_POPUP) && defined(FEAT_TERMINAL)
     if (popup_is_popup(curwin) && curbuf->b_term != NULL)
     {
@@ -1065,10 +1063,8 @@ f_win_gettype(typval_T *argvars, typval_T *rettv)
     else if (WIN_IS_POPUP(wp))
        rettv->vval.v_string = vim_strsave((char_u *)"popup");
 #endif
-#ifdef FEAT_CMDWIN
     else if (wp == curwin && cmdwin_type != 0)
        rettv->vval.v_string = vim_strsave((char_u *)"command");
-#endif
 #ifdef FEAT_QUICKFIX
     else if (bt_quickfix(wp->w_buffer))
        rettv->vval.v_string = vim_strsave((char_u *)
@@ -1085,14 +1081,12 @@ f_getcmdwintype(typval_T *argvars UNUSED, typval_T *rettv)
 {
     rettv->v_type = VAR_STRING;
     rettv->vval.v_string = NULL;
-#ifdef FEAT_CMDWIN
     rettv->vval.v_string = alloc(2);
     if (rettv->vval.v_string != NULL)
     {
        rettv->vval.v_string[0] = cmdwin_type;
        rettv->vval.v_string[1] = NUL;
     }
-#endif
 }
 
 /*
index a5eae8d166ef1af2241c95fb82003c1a9d3d63ac..3c13b8de293a9d5f6763806fa5c79bd342ed74a1 100644 (file)
@@ -2739,12 +2739,11 @@ do_ecmd(
        if (buf != curbuf)
        {
            bufref_T    save_au_new_curbuf;
-#ifdef FEAT_CMDWIN
            int         save_cmdwin_type = cmdwin_type;
 
            // BufLeave applies to the old buffer.
            cmdwin_type = 0;
-#endif
+
            /*
             * Be careful: The autocommands may delete any buffer and change
             * the current buffer.
@@ -2760,9 +2759,7 @@ do_ecmd(
            save_au_new_curbuf = au_new_curbuf;
            set_bufref(&au_new_curbuf, buf);
            apply_autocmds(EVENT_BUFLEAVE, NULL, NULL, FALSE, curbuf);
-#ifdef FEAT_CMDWIN
            cmdwin_type = save_cmdwin_type;
-#endif
            if (!bufref_valid(&au_new_curbuf))
            {
                // new buffer has been deleted
index 4531794ffd76e5373fe6f8d154cf348fab6eba0e..a7047d49ca5ac5fc637e8012662251931a49f0c6 100644 (file)
@@ -2083,14 +2083,12 @@ do_one_cmd(
 
        if (!IS_USER_CMDIDX(ea.cmdidx))
        {
-#ifdef FEAT_CMDWIN
            if (cmdwin_type != 0 && !(ea.argt & EX_CMDWIN))
            {
                // Command not allowed in the command line window
                errormsg = _(e_invalid_in_cmdline_window);
                goto doend;
            }
-#endif
            if (text_locked() && !(ea.argt & EX_LOCK_OK))
            {
                // Command not allowed when text is locked
@@ -5849,13 +5847,11 @@ ex_quit(exarg_T *eap)
 {
     win_T      *wp;
 
-#ifdef FEAT_CMDWIN
     if (cmdwin_type != 0)
     {
        cmdwin_result = Ctrl_C;
        return;
     }
-#endif
     // Don't quit while editing the command line.
     if (text_locked())
     {
@@ -5934,7 +5930,6 @@ ex_cquit(exarg_T *eap UNUSED)
     static void
 ex_quit_all(exarg_T *eap)
 {
-# ifdef FEAT_CMDWIN
     if (cmdwin_type != 0)
     {
        if (eap->forceit)
@@ -5943,7 +5938,6 @@ ex_quit_all(exarg_T *eap)
            cmdwin_result = K_XF2;
        return;
     }
-# endif
 
     // Don't quit while editing the command line.
     if (text_locked())
@@ -5969,11 +5963,9 @@ ex_close(exarg_T *eap)
 {
     win_T      *win;
     int                winnr = 0;
-#ifdef FEAT_CMDWIN
     if (cmdwin_type != 0)
        cmdwin_result = Ctrl_C;
     else
-#endif
        if (!text_locked() && !curbuf_locked())
        {
            if (eap->addr_count == 0)
@@ -6189,33 +6181,30 @@ ex_tabclose(exarg_T *eap)
     tabpage_T  *tp;
     int                tab_number;
 
-# ifdef FEAT_CMDWIN
     if (cmdwin_type != 0)
        cmdwin_result = K_IGNORE;
+    else if (first_tabpage->tp_next == NULL)
+       emsg(_(e_cannot_close_last_tab_page));
     else
-# endif
-       if (first_tabpage->tp_next == NULL)
-           emsg(_(e_cannot_close_last_tab_page));
-       else
+    {
+       tab_number = get_tabpage_arg(eap);
+       if (eap->errmsg == NULL)
        {
-           tab_number = get_tabpage_arg(eap);
-           if (eap->errmsg == NULL)
+           tp = find_tabpage(tab_number);
+           if (tp == NULL)
            {
-               tp = find_tabpage(tab_number);
-               if (tp == NULL)
-               {
-                   beep_flush();
-                   return;
-               }
-               if (tp != curtab)
-               {
-                   tabpage_close_other(tp, eap->forceit);
-                   return;
-               }
-               else if (!text_locked() && !curbuf_locked())
-                   tabpage_close(eap->forceit);
+               beep_flush();
+               return;
+           }
+           if (tp != curtab)
+           {
+               tabpage_close_other(tp, eap->forceit);
+               return;
            }
+           else if (!text_locked() && !curbuf_locked())
+               tabpage_close(eap->forceit);
        }
+    }
 }
 
 /*
@@ -6228,38 +6217,35 @@ ex_tabonly(exarg_T *eap)
     int                done;
     int                tab_number;
 
-# ifdef FEAT_CMDWIN
     if (cmdwin_type != 0)
        cmdwin_result = K_IGNORE;
+    else if (first_tabpage->tp_next == NULL)
+       msg(_("Already only one tab page"));
     else
-# endif
-       if (first_tabpage->tp_next == NULL)
-           msg(_("Already only one tab page"));
-       else
+    {
+       tab_number = get_tabpage_arg(eap);
+       if (eap->errmsg == NULL)
        {
-           tab_number = get_tabpage_arg(eap);
-           if (eap->errmsg == NULL)
+           goto_tabpage(tab_number);
+           // Repeat this up to a 1000 times, because autocommands may
+           // mess up the lists.
+           for (done = 0; done < 1000; ++done)
            {
-               goto_tabpage(tab_number);
-               // Repeat this up to a 1000 times, because autocommands may
-               // mess up the lists.
-               for (done = 0; done < 1000; ++done)
-               {
-                   FOR_ALL_TABPAGES(tp)
-                       if (tp->tp_topframe != topframe)
-                       {
-                           tabpage_close_other(tp, eap->forceit);
-                           // if we failed to close it quit
-                           if (valid_tabpage(tp))
-                               done = 1000;
-                           // start over, "tp" is now invalid
-                           break;
-                       }
-                   if (first_tabpage->tp_next == NULL)
+               FOR_ALL_TABPAGES(tp)
+                   if (tp->tp_topframe != topframe)
+                   {
+                       tabpage_close_other(tp, eap->forceit);
+                       // if we failed to close it quit
+                       if (valid_tabpage(tp))
+                           done = 1000;
+                       // start over, "tp" is now invalid
                        break;
-               }
+                   }
+               if (first_tabpage->tp_next == NULL)
+                   break;
            }
        }
+    }
 }
 
 /*
@@ -6403,13 +6389,11 @@ ex_exit(exarg_T *eap)
     if (not_in_vim9(eap) == FAIL)
        return;
 #endif
-#ifdef FEAT_CMDWIN
     if (cmdwin_type != 0)
     {
        cmdwin_result = Ctrl_C;
        return;
     }
-#endif
     // Don't quit while editing the command line.
     if (text_locked())
     {
index 02205814d9f0fd7c371d402d7299fb9f13bdd171..770daa9525d7e0c4fea9cc0d5d379781e33a922a 100644 (file)
@@ -52,16 +52,12 @@ static void restore_cmdline(cmdline_info_T *ccp);
 static int     cmdline_paste(int regname, int literally, int remcr);
 static void    redrawcmdprompt(void);
 static int     ccheck_abbr(int);
+static int     open_cmdwin(void);
 #ifdef FEAT_SEARCH_EXTRA
 static int     empty_pattern_magic(char_u *pat, size_t len, magic_T magic_val);
 #endif
 
-#ifdef FEAT_CMDWIN
-static int     open_cmdwin(void);
-
 static int     cedit_key = -1; // key value of 'cedit' option
-#endif
-
 
     static void
 trigger_cmd_autocmd(int typechar, int evt)
@@ -1922,7 +1918,6 @@ getcmdline_int(
                                        // cmdline_handle_backslash_key()
        }
 
-#ifdef FEAT_CMDWIN
        if (c == cedit_key || c == K_CMDWIN)
        {
            // TODO: why is ex_normal_busy checked here?
@@ -1935,11 +1930,8 @@ getcmdline_int(
                some_key_typed = TRUE;
            }
        }
-# ifdef FEAT_DIGRAPHS
-       else
-# endif
-#endif
 #ifdef FEAT_DIGRAPHS
+       else
            c = do_digraph(c);
 #endif
 
@@ -2687,10 +2679,8 @@ check_opt_wim(void)
     int
 text_locked(void)
 {
-#ifdef FEAT_CMDWIN
     if (cmdwin_type != 0)
        return TRUE;
-#endif
     return textlock != 0;
 }
 
@@ -2707,10 +2697,8 @@ text_locked_msg(void)
     char *
 get_text_locked_msg(void)
 {
-#ifdef FEAT_CMDWIN
     if (cmdwin_type != 0)
        return e_invalid_in_cmdline_window;
-#endif
     return e_not_allowed_to_change_text_or_change_window;
 }
 
@@ -4080,7 +4068,6 @@ get_cmdline_info(void)
     return &ccline;
 }
 
-#if defined(FEAT_EVAL) || defined(FEAT_CMDWIN) || defined(PROTO)
 /*
  * Get pointer to the command line info to use. save_cmdline() may clear
  * ccline and put the previous value in prev_ccline.
@@ -4096,9 +4083,7 @@ get_ccline_ptr(void)
        return &prev_ccline;
     return NULL;
 }
-#endif
 
-#if defined(FEAT_EVAL) || defined(FEAT_CMDWIN)
 /*
  * Get the current command-line type.
  * Returns ':' or '/' or '?' or '@' or '>' or '-'
@@ -4120,7 +4105,6 @@ get_cmdline_type(void)
            '-';
     return p->cmdfirstc;
 }
-#endif
 
 #if defined(FEAT_EVAL) || defined(PROTO)
 /*
@@ -4365,7 +4349,6 @@ get_list_range(char_u **str, int *num1, int *num2)
     return OK;
 }
 
-#if defined(FEAT_CMDWIN) || defined(PROTO)
 /*
  * Check value of 'cedit' and set cedit_key.
  * Returns NULL if value is OK, error message otherwise.
@@ -4694,7 +4677,6 @@ is_in_cmdwin(void)
 {
     return cmdwin_type != 0 && get_cmdline_type() == NUL;
 }
-#endif // FEAT_CMDWIN
 
 /*
  * Used for commands that either take a simple command string argument, or:
index 5eacd5e953dbd7ab554553283c67341e2add099a..bc259fd562ff480b6faeb9c27832c3d727c4c3b7 100644 (file)
  * Basic choices:
  * ==============
  *
- * +tiny               almost no features enabled, not even multiple windows
- * +small              as tiny plus cmdline window
- * +normal             A default selection of features enabled
- * +big                        many features enabled, as rich as possible.
+ * +tiny               no optional features enabled, not even +eval
+ * +normal             a default selection of features enabled
+ * +big                        many features enabled, except "expensive" ones
  * +huge               all possible features enabled.
  *
- * When +small is used, +tiny is also included.  +normal implies +small, etc.
+ * When +normal is used, +tiny is also included.  +big implies +normal, etc.
  */
 
+/*
+ * +small is now an alias for +tiny
+ */
+#if defined(FEAT_SMALL)
+# undef FEAT_SMALL
+# if !defined(FEAT_TINY)
+#  define FEAT_TINY
+# endif
+#endif
+
 /*
  * Uncomment one of these to override the default.  For unix use a configure
  * argument, see Makefile.
  */
-#if !defined(FEAT_TINY) && !defined(FEAT_SMALL) && !defined(FEAT_NORMAL) \
+#if !defined(FEAT_TINY) && !defined(FEAT_NORMAL) \
        && !defined(FEAT_BIG) && !defined(FEAT_HUGE)
 // #define FEAT_TINY
-// #define FEAT_SMALL
 // #define FEAT_NORMAL
 // #define FEAT_BIG
 // #define FEAT_HUGE
@@ -59,7 +67,7 @@
  * Use +big for older systems: VMS and Amiga.
  * Otherwise use +normal
  */
-#if !defined(FEAT_TINY) && !defined(FEAT_SMALL) && !defined(FEAT_NORMAL) \
+#if !defined(FEAT_TINY) && !defined(FEAT_NORMAL) \
        && !defined(FEAT_BIG) && !defined(FEAT_HUGE)
 # if defined(UNIX) || defined(MSWIN) || defined(MACOS_X)
 #  define FEAT_HUGE
@@ -82,9 +90,6 @@
 # define FEAT_NORMAL
 #endif
 #ifdef FEAT_NORMAL
-# define FEAT_SMALL
-#endif
-#ifdef FEAT_SMALL
 # define FEAT_TINY
 #endif
 
  * +wildmenu           'wildmenu' option
  * +builtin_terms      all builtin termcap entries included
  * +float              Floating point variables.
+ * +cmdwin             Command line window.
  *
  * Obsolete:
  * +tag_old_static     Old style static tags: "file:tag  file  ..".
  */
 #define MAX_MSG_HIST_LEN 200
 
-#if defined(FEAT_SMALL)
-# define FEAT_CMDWIN
-#endif
-
 /*
  * +folding            Fold lines.
  */
 # define FEAT_DND
 #endif
 
-#if defined(FEAT_GUI_MSWIN) && defined(FEAT_SMALL)
+#if defined(FEAT_GUI_MSWIN)
 # define MSWIN_FIND_REPLACE    // include code for find/replace dialog
 # define MSWIN_FR_BUFSIZE 256
 #endif
index 124a610d209382d651a12edc982f3b4edaf19d3a..10f7f0e152e83b95e2de7da812399a01707634fd 100644 (file)
@@ -3372,9 +3372,7 @@ vgetorpeek(int advance)
 
                if (ex_normal_busy > 0)
                {
-#ifdef FEAT_CMDWIN
                    static int tc = 0;
-#endif
 
                    // No typeahead left and inside ":normal".  Must return
                    // something to avoid getting stuck.  When an incomplete
@@ -3398,16 +3396,11 @@ vgetorpeek(int advance)
                        c = K_CANCEL;
 #endif
                    else if ((State & MODE_CMDLINE)
-#ifdef FEAT_CMDWIN
-                           || (cmdwin_type > 0 && tc == ESC)
-#endif
-                           )
+                                            || (cmdwin_type > 0 && tc == ESC))
                        c = Ctrl_C;
                    else
                        c = ESC;
-#ifdef FEAT_CMDWIN
                    tc = c;
-#endif
                    // set a flag to indicate this wasn't a normal char
                    if (advance)
                        typebuf_was_empty = TRUE;
index ebd9c593432427632679421c2bf4d341182551a6..0228825d5b8382ef16239c01f32725c0e5894bca 100644 (file)
@@ -1637,10 +1637,8 @@ EXTERN int       disable_fold_update INIT(= 0);
 EXTERN int     km_stopsel INIT(= FALSE);
 EXTERN int     km_startsel INIT(= FALSE);
 
-#ifdef FEAT_CMDWIN
 EXTERN int     cmdwin_type INIT(= 0);  // type of cmdline window or 0
 EXTERN int     cmdwin_result INIT(= 0); // result of cmdline window or 0
-#endif
 
 EXTERN char_u no_lines_msg[]   INIT(= N_("--No lines in buffer--"));
 
@@ -1974,10 +1972,8 @@ EXTERN int channel_need_redraw INIT(= FALSE);
 // overrules p_magic.  Otherwise set to OPTION_MAGIC_NOT_SET.
 EXTERN optmagic_T magic_overruled INIT(= OPTION_MAGIC_NOT_SET);
 
-#ifdef FEAT_CMDWIN
 // Skip win_fix_cursor() call for 'splitkeep' when cmdwin is closed.
 EXTERN int skip_win_fix_cursor INIT(= FALSE);
-#endif
 // Skip win_fix_scroll() call for 'splitkeep' when closing tab page.
 EXTERN int skip_win_fix_scroll INIT(= FALSE);
 // Skip update_topline() call while executing win_fix_scroll().
index b9217b45909ba31d96ca5a9e852918c8fa4c7f17..b245002da18ba700c7b120e029bc95e9a036ad28 100644 (file)
--- a/src/gui.c
+++ b/src/gui.c
@@ -3844,11 +3844,7 @@ send_tabline_event(int nr)
        return FALSE;
 
     // Don't put events in the input queue now.
-    if (hold_gui_events
-# ifdef FEAT_CMDWIN
-           || cmdwin_type != 0
-# endif
-           )
+    if (hold_gui_events || cmdwin_type != 0)
     {
        // Set it back to the current tab page.
        gui_mch_set_curtab(tabpage_index(curtab));
@@ -3993,10 +3989,8 @@ gui_drag_scrollbar(scrollbar_T *sb, long value, int still_dragging)
     if (hold_gui_events)
        return;
 
-#ifdef FEAT_CMDWIN
     if (cmdwin_type != 0 && sb->wp != curwin)
        return;
-#endif
 
     if (still_dragging)
     {
index 736d1c7a270745586e5d285ac747ee28012eb4ec..58b793109ef228a27668b3ba6c51080a8c419d0f 100644 (file)
@@ -3311,11 +3311,7 @@ on_tabline_menu(GtkWidget *widget, GdkEvent *event)
 
        // When ignoring events return TRUE so that the selected page doesn't
        // change.
-       if (hold_gui_events
-# ifdef FEAT_CMDWIN
-               || cmdwin_type != 0
-# endif
-          )
+       if (hold_gui_events || cmdwin_type != 0)
            return TRUE;
 
        tabwin = gui_gtk_window_at_position(gui.mainwin, &x, &y);
index 4c5ced5415f3481ca3673f38d894d73bbc6a9b42..55c026eb48b9a91be2b457d6f36479590cc9ba4f 100644 (file)
@@ -228,15 +228,19 @@ tabline_menu_cb(
        return;
     }
 
+    if (event->button == Button2)
+    {
+       // Middle mouse click on tabpage label closes that tab.
+       XtVaGetValues(tabLine_menu, XmNuserData, &tab_idx, NULL);
+       send_tabline_menu_event(tab_idx, (int)TABLINE_MENU_CLOSE);
+       return;
+    }
+
     if (event->button != Button3)
        return;
 
     // When ignoring events don't show the menu.
-    if (hold_gui_events
-# ifdef FEAT_CMDWIN
-           || cmdwin_type != 0
-# endif
-       )
+    if (hold_gui_events || cmdwin_type != 0)
        return;
 
     if (event->subwindow != None)
index 3ade63113b03517daf09dd0df100a7e7e65c44cd..5e8fbe2a802ed98ddf2aeea317b908df727eb091 100644 (file)
@@ -2609,11 +2609,7 @@ show_tabline_popup_menu(void)
     POINT          pt;
 
     // When ignoring events don't show the menu.
-    if (hold_gui_events
-# ifdef FEAT_CMDWIN
-           || cmdwin_type != 0
-# endif
-       )
+    if (hold_gui_events || cmdwin_type != 0)
        return;
 
     tab_pmenu = CreatePopupMenu();
index 8788fb3034b902905ee0cd6a9d1e73975c2bd1c1..0363b8fbf7643d6c8389a9a7eb8d4a7a5c427004 100644 (file)
@@ -17,7 +17,7 @@
  * 1. Memory, allocated with scheme_malloc*, need not to be freed explicitly,
  *    garbage collector will do it self
  * 2. Requires at least NORMAL features. I can't imagine why one may want
- *    to build with SMALL or TINY features but with MzScheme interface.
+ *    to build with TINY features but with MzScheme interface.
  * 3. I don't use K&R-style functions. Anyways, MzScheme headers are ANSI.
  */
 
index d3a1f881ea1f090ed0f4e17aa6c014536d3d0f54..8f8157e01fab40f0e5cd6f96569e538606a12dc0 100644 (file)
@@ -2293,12 +2293,10 @@ ins_compl_stop(int c, int prev_mode, int retval)
        showmode();
     }
 
-#ifdef FEAT_CMDWIN
     if (c == Ctrl_C && cmdwin_type != 0)
        // Avoid the popup menu remains displayed when leaving the
        // command line window.
        update_screen(0);
-#endif
     // Indent now if a key was typed that is in 'cinkeys'.
     if (want_cindent && in_cinkeys(KEY_COMPLETE, ' ', inindent(0)))
        do_c_expr_indent();
index c0059c1933da5368ae78b4f4718916114783a831..389a202c84087d17d1186a674a3e9324e63bbe1d 100644 (file)
@@ -1216,11 +1216,7 @@ main_loop(
 #endif
 
     clear_oparg(&oa);
-    while (!cmdwin
-#ifdef FEAT_CMDWIN
-           || cmdwin_result == 0
-#endif
-           )
+    while (!cmdwin || cmdwin_result == 0)
     {
        if (stuff_empty())
        {
index 2b213cf5f60cff110c8203d1bb0d3243277d5ceb..526ed50c49a7a5a55f93cd44297e9ade4e4954d4 100644 (file)
--- a/src/map.c
+++ b/src/map.c
@@ -2811,8 +2811,6 @@ init_mappings(void)
 #endif
 }
 
-#if defined(MSWIN) || defined(FEAT_CMDWIN) || defined(MACOS_X) \
-                                                            || defined(PROTO)
 /*
  * Add a mapping "map" for mode "mode".
  * When "nore" is TRUE use MAPTYPE_NOREMAP.
@@ -2833,7 +2831,6 @@ add_map(char_u *map, int mode, int nore)
     }
     p_cpo = cpo_save;
 }
-#endif
 
 #if defined(FEAT_LANGMAP) || defined(PROTO)
 /*
index 12895f8094b980577095b81528ec3a1aa8810455..452a30131be559a3201ba6421cf92f02f5b51bef 100644 (file)
@@ -482,17 +482,13 @@ do_mouse(
                {
                    c1 = TabPageIdxs[mouse_col];
                    tabpage_move(c1 <= 0 ? 9999 : c1 < tabpage_index(curtab)
-                                                                   ? c1 - 1 : c1);
+                                                               ? c1 - 1 : c1);
                }
                return FALSE;
            }
 
            // click in a tab selects that tab page
-           if (is_click
-# ifdef FEAT_CMDWIN
-                   && cmdwin_type == 0
-# endif
-                   && mouse_col < Columns)
+           if (is_click && cmdwin_type == 0 && mouse_col < Columns)
            {
                in_tab_line = TRUE;
                c1 = TabPageIdxs[mouse_col];
@@ -745,7 +741,7 @@ do_mouse(
     }
 #endif
 
-#if defined(FEAT_CLIPBOARD) && defined(FEAT_CMDWIN)
+#if defined(FEAT_CLIPBOARD)
     if ((jump_flags & IN_OTHER_WIN) && !VIsual_active && clip_star.available)
     {
        clip_modeless(which_button, is_click, is_drag);
@@ -1602,7 +1598,7 @@ retnomove:
            end_visual_mode_keep_button();
            redraw_curbuf_later(UPD_INVERTED);  // delete the inversion
        }
-#if defined(FEAT_CMDWIN) && defined(FEAT_CLIPBOARD)
+#if defined(FEAT_CLIPBOARD)
        // Continue a modeless selection in another window.
        if (cmdwin_type != 0 && row < curwin->w_winrow)
            return IN_OTHER_WIN;
@@ -1732,10 +1728,7 @@ retnomove:
 # ifdef FEAT_RIGHTLEFT
                            wp->w_p_rl ? col < wp->w_width - wp->w_p_fdc :
 # endif
-                           col >= wp->w_p_fdc
-# ifdef FEAT_CMDWIN
-                                 + (cmdwin_type == 0 && wp == curwin ? 0 : 1)
-# endif
+                           col >= wp->w_p_fdc + (cmdwin_type == 0 && wp == curwin ? 0 : 1)
                            )
 #endif
                        && (flags & MOUSE_MAY_STOP_VIS))))
@@ -1743,7 +1736,6 @@ retnomove:
            end_visual_mode_keep_button();
            redraw_curbuf_later(UPD_INVERTED);  // delete the inversion
        }
-#ifdef FEAT_CMDWIN
        if (cmdwin_type != 0 && wp != curwin)
        {
            // A click outside the command-line window: Use modeless
@@ -1759,7 +1751,6 @@ retnomove:
            wp = curwin;
 # endif
        }
-#endif
 #if defined(FEAT_PROP_POPUP) && defined(FEAT_TERMINAL)
        if (popup_is_popup(curwin) && curbuf->b_term != NULL)
            // terminal in popup window: don't jump to another window
@@ -1848,7 +1839,7 @@ retnomove:
            redraw_curbuf_later(UPD_INVERTED);  // delete the inversion
        }
 
-#if defined(FEAT_CMDWIN) && defined(FEAT_CLIPBOARD)
+#if defined(FEAT_CLIPBOARD)
        // Continue a modeless selection in another window.
        if (cmdwin_type != 0 && row < curwin->w_winrow)
            return IN_OTHER_WIN;
@@ -1986,10 +1977,7 @@ retnomove:
 # ifdef FEAT_RIGHTLEFT
            curwin->w_p_rl ? col < curwin->w_width - curwin->w_p_fdc :
 # endif
-           col >= curwin->w_p_fdc
-#  ifdef FEAT_CMDWIN
-                               + (cmdwin_type == 0 ? 0 : 1)
-#  endif
+           col >= curwin->w_p_fdc + (cmdwin_type == 0 ? 0 : 1)
        )
        mouse_char = ' ';
 #endif
index 39b7089b27573dcca1bb138637503ec02c45ec33..fcb415a9629b3246602035f91f83bc2ed0fb7c39 100644 (file)
@@ -968,9 +968,7 @@ validate_cursor_col(void)
 win_col_off(win_T *wp)
 {
     return (((wp->w_p_nu || wp->w_p_rnu) ? number_width(wp) + 1 : 0)
-#ifdef FEAT_CMDWIN
            + (cmdwin_type == 0 || wp != curwin ? 0 : 1)
-#endif
 #ifdef FEAT_FOLDING
            + wp->w_p_fdc
 #endif
index 773c667a8b515e87d0731dc7742efb9c484e69aa..08e9fc9848c2133f3353d53d5c049d4fe0a60281 100644 (file)
@@ -4028,12 +4028,10 @@ nv_down(cmdarg_T *cap)
 #endif
     else
     {
-#ifdef FEAT_CMDWIN
        // In the cmdline window a <CR> executes the command.
        if (cmdwin_type != 0 && cap->cmdchar == CAR)
            cmdwin_result = CAR;
        else
-#endif
 #ifdef FEAT_JOB_CHANNEL
        // In a prompt buffer a <CR> in the last line invokes the callback.
        if (bt_prompt(curbuf) && cap->cmdchar == CAR
@@ -6754,10 +6752,8 @@ nv_normal(cmdarg_T *cap)
        if (restart_edit != 0 && mode_displayed)
            clear_cmdline = TRUE;               // unshow mode later
        restart_edit = 0;
-#ifdef FEAT_CMDWIN
        if (cmdwin_type != 0)
            cmdwin_result = Ctrl_C;
-#endif
        if (VIsual_active)
        {
            end_visual_mode();          // stop Visual
@@ -6788,12 +6784,8 @@ nv_esc(cmdarg_T *cap)
 
     if (cap->arg)              // TRUE for CTRL-C
     {
-       if (restart_edit == 0
-#ifdef FEAT_CMDWIN
-               && cmdwin_type == 0
-#endif
-               && !VIsual_active
-               && no_reason)
+       if (restart_edit == 0 && cmdwin_type == 0
+                                               && !VIsual_active && no_reason)
        {
            int out_redir = !stdout_isatty && !is_not_a_term_or_gui();
 
@@ -6828,16 +6820,13 @@ nv_esc(cmdarg_T *cap)
        // set again below when halfway a mapping.
        if (!p_im)
            restart_edit = 0;
-#ifdef FEAT_CMDWIN
        if (cmdwin_type != 0)
        {
            cmdwin_result = K_IGNORE;
            got_int = FALSE;    // don't stop executing autocommands et al.
            return;
        }
-#endif
     }
-#ifdef FEAT_CMDWIN
     else if (cmdwin_type != 0 && ex_normal_busy && typebuf_was_empty)
     {
        // When :normal runs out of characters while in the command line window
@@ -6846,7 +6835,6 @@ nv_esc(cmdarg_T *cap)
        cmdwin_result = K_IGNORE;
        return;
     }
-#endif
 
     if (VIsual_active)
     {
@@ -7178,7 +7166,6 @@ nv_record(cmdarg_T *cap)
     }
     else if (!checkclearop(cap->oap))
     {
-#ifdef FEAT_CMDWIN
        if (cap->nchar == ':' || cap->nchar == '/' || cap->nchar == '?')
        {
            if (cmdwin_type != 0)
@@ -7190,7 +7177,6 @@ nv_record(cmdarg_T *cap)
            stuffcharReadbuff(K_CMDWIN);
        }
        else
-#endif
            // (stop) recording into a named register, unless executing a
            // register
            if (reg_executing == 0 && do_record(cap->nchar) == FAIL)
index 646265d3bd2779356699dbd3a76c820b362c4903..7d6b9547f6515e04e963631b832c1d202c75d034 100644 (file)
@@ -2404,10 +2404,8 @@ didset_options(void)
     (void)compile_cap_prog(curwin->w_s);
     (void)did_set_spell_option(TRUE);
 #endif
-#ifdef FEAT_CMDWIN
     // set cedit_key
     (void)check_cedit();
-#endif
 #ifdef FEAT_LINEBREAK
     // initialize the table for 'breakat'.
     fill_breakat_flags();
@@ -3804,13 +3802,11 @@ set_num_option(
        errmsg = e_argument_must_be_positive;
        p_siso = 0;
     }
-#ifdef FEAT_CMDWIN
     if (p_cwh < 1)
     {
        errmsg = e_argument_must_be_positive;
        p_cwh = 1;
     }
-#endif
     if (p_ut < 0)
     {
        errmsg = e_argument_must_be_positive;
index 4ce009fbe9ad2a5eebb32972b5c21bec479fb0d2..0e98824dc2c32322895ca89c671a9d8a302c7ef9 100644 (file)
@@ -486,10 +486,8 @@ EXTERN char_u      *p_ccv;         // 'charconvert'
 #endif
 EXTERN int     p_cdh;          // 'cdhome'
 EXTERN char_u  *p_cino;        // 'cinoptions'
-#ifdef FEAT_CMDWIN
 EXTERN char_u  *p_cedit;       // 'cedit'
 EXTERN long    p_cwh;          // 'cmdwinheight'
-#endif
 #ifdef FEAT_CLIPBOARD
 EXTERN char_u  *p_cb;          // 'clipboard'
 #endif
index 8a122ba1bd0ca8319b96733bda51e70db9806ffa..f9e10ae402520fa12b8baa795aab25e3a6a40a1b 100644 (file)
@@ -544,13 +544,8 @@ static struct vimoption options[] =
                            {(char_u *)",,", (char_u *)0L}
                            SCTX_INIT},
     {"cedit",      NULL,   P_STRING,
-#ifdef FEAT_CMDWIN
                            (char_u *)&p_cedit, PV_NONE,
                            {(char_u *)"", (char_u *)CTRL_F_STR}
-#else
-                           (char_u *)NULL, PV_NONE,
-                           {(char_u *)0L, (char_u *)0L}
-#endif
                            SCTX_INIT},
     {"charconvert",  "ccv", P_STRING|P_VI_DEF|P_SECURE,
 #if defined(FEAT_EVAL)
@@ -597,11 +592,7 @@ static struct vimoption options[] =
                            (char_u *)&p_ch, PV_NONE,
                            {(char_u *)1L, (char_u *)0L} SCTX_INIT},
     {"cmdwinheight", "cwh", P_NUM|P_VI_DEF,
-#ifdef FEAT_CMDWIN
                            (char_u *)&p_cwh, PV_NONE,
-#else
-                           (char_u *)NULL, PV_NONE,
-#endif
                            {(char_u *)7L, (char_u *)0L} SCTX_INIT},
     {"colorcolumn", "cc",   P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP|P_RWIN,
 #ifdef FEAT_SYN_HL
index 24896cc233608d4850e810a18943ed1fc4d73f45..32663a03e7832e17e1456d710fb324a625c277a6 100644 (file)
@@ -1326,13 +1326,11 @@ did_set_string_option(
        errmsg = set_chars_option(curwin, varp, TRUE);
     }
 
-#ifdef FEAT_CMDWIN
     // 'cedit'
     else if (varp == &p_cedit)
     {
        errmsg = check_cedit();
     }
-#endif
 
     // 'verbosefile'
     else if (varp == &p_vfile)
index 9600e0a6825109e4785fe2d70eecad26e26fd043..f5687df6125d518e998eca7f16a7ea1844847b90 100644 (file)
@@ -445,13 +445,11 @@ term_start(
 
     if (check_restricted() || check_secure())
        return NULL;
-#ifdef FEAT_CMDWIN
     if (cmdwin_type != 0)
     {
        emsg(_(e_cannot_open_terminal_from_command_line_window));
        return NULL;
     }
-#endif
 
     if ((opt->jo_set & (JO_IN_IO + JO_OUT_IO + JO_ERR_IO))
                                         == (JO_IN_IO + JO_OUT_IO + JO_ERR_IO)
index 9a12f7fe2692b6ce8688b463bf4e1122b43347c2..7aff1e8a44d2b44f8f8559b15b2b2f7a9e51f5b4 100644 (file)
@@ -10,7 +10,7 @@ NO_INITS = -U NONE $(NO_PLUGINS)
 # File to delete when testing starts
 CLEANUP_FILES = test.log messages starttime
 
-# Tests for tiny and small builds.
+# Tests for tiny build.
 SCRIPTS_TINY = \
        test10 \
        test20 \
index dfbeed70dec1a2d43b78b8ec03b356264d0bc339..6a93890bd2c442a8732839a0c7e653dfe870a0c9 100644 (file)
@@ -794,10 +794,8 @@ comp_textwidth(
        // The width is the window width minus 'wrapmargin' minus all the
        // things that add to the margin.
        textwidth = curwin->w_width - curbuf->b_p_wm;
-#ifdef FEAT_CMDWIN
        if (cmdwin_type != 0)
            textwidth -= 1;
-#endif
 #ifdef FEAT_FOLDING
        textwidth -= curwin->w_p_fdc;
 #endif
index a90ab473e7e00042e67961acf3a5dd2ffde60e22..884d3a5feaf7aa6f2b1315ce129e3cbb5cd8e318 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    657,
 /**/
     656,
 /**/
@@ -2337,8 +2339,6 @@ list_version(void)
     msg_puts(_("\nBig version "));
 #elif defined(FEAT_NORMAL)
     msg_puts(_("\nNormal version "));
-#elif defined(FEAT_SMALL)
-    msg_puts(_("\nSmall version "));
 #else
     msg_puts(_("\nTiny version "));
 #endif
index 14f67f7b24255bcc3947141e02890becdb8f1720..17cc7b803d79e32c35dc956d98d682470b567bbd 100644 (file)
--- a/src/vim.h
+++ b/src/vim.h
 
 /*
  * #defines for optionals and features
- * Also defines FEAT_TINY, FEAT_SMALL, etc. when FEAT_HUGE is defined.
+ * Also defines FEAT_TINY, FEAT_NORMAL, etc. when FEAT_HUGE is defined.
  */
 #include "feature.h"
 
-#if defined(MACOS_X_DARWIN)
-# if defined(FEAT_SMALL) && !defined(FEAT_CLIPBOARD)
-#  define FEAT_CLIPBOARD
-# endif
+#if defined(MACOS_X_DARWIN) && !defined(FEAT_CLIPBOARD)
+# define FEAT_CLIPBOARD
 #endif
 
 // +x11 is only enabled when it's both available and wanted.
index ad1852e4f473265ddea6e986e35cd909fa54a086..52c458e033ebeedbea81161989825b16b6ad1c6c 100644 (file)
@@ -119,12 +119,8 @@ log_frame_layout(frame_T *frame)
     win_T *
 prevwin_curwin(void)
 {
-    return
-#ifdef FEAT_CMDWIN
-       // In cmdwin, the alternative buffer should be used.
-       is_in_cmdwin() && prevwin != NULL ? prevwin :
-#endif
-       curwin;
+    // In cmdwin, the alternative buffer should be used.
+    return is_in_cmdwin() && prevwin != NULL ? prevwin : curwin;
 }
 
 /*
@@ -149,8 +145,7 @@ do_window(
     if (ERROR_IF_ANY_POPUP_WINDOW)
        return;
 
-#ifdef FEAT_CMDWIN
-# define CHECK_CMDWIN \
+#define CHECK_CMDWIN \
     do { \
        if (cmdwin_type != 0) \
        { \
@@ -158,9 +153,6 @@ do_window(
            return; \
        } \
     } while (0)
-#else
-# define CHECK_CMDWIN do { /**/ } while (0)
-#endif
 
     Prenum1 = Prenum == 0 ? 1 : Prenum;
 
@@ -2963,10 +2955,9 @@ win_free_all(void)
 {
     int                dummy;
 
-#ifdef FEAT_CMDWIN
     // avoid an error for switching tabpage with the cmdline window open
     cmdwin_type = 0;
-#endif
+
     while (first_tabpage->tp_next != NULL)
        tabpage_close(TRUE);
 
@@ -4019,13 +4010,11 @@ win_new_tabpage(int after)
     tabpage_T  *newtp;
     int                n;
 
-#ifdef FEAT_CMDWIN
     if (cmdwin_type != 0)
     {
        emsg(_(e_invalid_in_cmdline_window));
        return FAIL;
     }
-#endif
 
     newtp = alloc_tabpage();
     if (newtp == NULL)
@@ -5513,7 +5502,6 @@ shell_new_columns(void)
 #endif
 }
 
-#if defined(FEAT_CMDWIN) || defined(PROTO)
 /*
  * Save the size of all windows in "gap".
  */
@@ -5567,7 +5555,6 @@ win_size_restore(garray_T *gap)
        (void)win_comp_pos();
     }
 }
-#endif // FEAT_CMDWIN
 
 /*
  * Update the position for all windows, using the width and height of the
@@ -6419,10 +6406,9 @@ win_fix_cursor(int normal)
 
     if (wp->w_buffer->b_ml.ml_line_count < wp->w_height)
        return;
-#ifdef FEAT_CMDWIN
     if (skip_win_fix_cursor)
        return;
-#endif
+
     // Determine valid cursor range.
     so = MIN(wp->w_height / 2, so);
     wp->w_cursor.lnum = wp->w_topline;