Skip to content

Commit 050dae0

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 039502c + 040f975 commit 050dae0

57 files changed

Lines changed: 2903 additions & 11461 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Filelist

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ SRC_ALL = \
158158
src/testdir/gen_opt_test.vim \
159159
src/testdir/README.txt \
160160
src/testdir/Make_all.mak \
161-
src/testdir/*.in \
161+
src/testdir/dotest.in \
162+
src/testdir/test1.in \
163+
src/testdir/test77a.in \
162164
src/testdir/*.py \
163165
src/testdir/lsan-suppress.txt \
164166
src/testdir/sautest/autoload/*.vim \
@@ -177,9 +179,8 @@ SRC_ALL = \
177179
src/testdir/summarize.vim \
178180
src/testdir/term_util.vim \
179181
src/testdir/view_util.vim \
180-
src/testdir/test[0-9]*.ok \
181-
src/testdir/test[0-9]*a.ok \
182-
src/testdir/test49.vim \
182+
- src/testdir/test1.ok \
183+
src/testdir/test77a.ok \
183184
src/testdir/test83-tags? \
184185
src/testdir/test77a.com \
185186
src/testdir/test_*.vim \
@@ -641,13 +642,11 @@ SRC_HAIKU = \
641642
SRC_MAC = \
642643
src/INSTALLmac.txt \
643644
src/dehqx.py \
644-
src/gui_mac.c \
645645
src/os_mac_rsrc/*.icns \
646646
src/os_mac.h \
647647
src/os_mac.rsr.hqx \
648648
src/os_mac_conv.c \
649649
src/os_macosx.m \
650-
src/proto/gui_mac.pro \
651650
src/proto/os_mac_conv.pro \
652651

653652
# source files for VMS (in the extra archive)

runtime/doc/tabpage.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ something else.
142142
:tabclose + " close the next tab page
143143
:tabclose 3 " close the third tab page
144144
:tabclose $ " close the last tab page
145+
:tabclose # " close the last accessed tab page
145146
<
146147
*:tabo* *:tabonly*
147148
:tabo[nly][!] Close all other tab pages.
@@ -170,6 +171,8 @@ something else.
170171
" one
171172
:tabonly 1 " close all tab pages except the first one
172173
:tabonly $ " close all tab pages except the last one
174+
:tabonly # " close all tab pages except the last
175+
" accessed one
173176
174177
175178
SWITCHING TO ANOTHER TAB PAGE:
@@ -192,6 +195,7 @@ gt *i_CTRL-<PageDown>* *i_<C-PageDown>*
192195
:+2tabnext " go to the two next tab page
193196
:1tabnext " go to the first tab page
194197
:$tabnext " go to the last tab page
198+
:tabnext # " go to the last accessed tab page
195199
:tabnext $ " as above
196200
:tabnext - " go to the previous tab page
197201
:tabnext -1 " as above
@@ -255,6 +259,8 @@ REORDERING TAB PAGES:
255259
:tabmove " move the tab page to the last
256260
:$tabmove " as above
257261
:tabmove $ " as above
262+
:tabmove # " move the tab page after the last accessed
263+
" tab page
258264
259265
:tabm[ove] +[N]
260266
:tabm[ove] -[N]

runtime/doc/testing.txt

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,11 @@ and for testing plugins.
2020
Vim can be tested after building it, usually with "make test".
2121
The tests are located in the directory "src/testdir".
2222

23-
There are several types of tests added over time:
24-
test33.in oldest, don't add any of these
25-
test_something.in old style tests
26-
test_something.vim new style tests
27-
2823
*new-style-testing*
29-
New tests should be added as new style tests. These use functions such as
30-
|assert_equal()| to keep the test commands and the expected result in one
31-
place.
32-
*old-style-testing*
33-
In some cases an old style test needs to be used. E.g. when testing Vim
34-
without the |+eval| feature.
24+
New tests should be added as new style tests. The test scripts are named
25+
test_<feature>.vim (replace <feature> with the feature under test). These use
26+
functions such as |assert_equal()| to keep the test commands and the expected
27+
result in one place.
3528

3629
Find more information in the file src/testdir/README.txt.
3730

src/INSTALLmac.txt

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Summary
1616
----------------------------------------------------------------------------
1717

1818
1 MacOS X
19-
1.1. Carbon interface
19+
1.1. Terminal version
2020
1.2. X (Athena, GTK, Motif) or plain text.
2121

2222
MacOS Classic is no longer supported. If you really want it use Vim 6.4.
@@ -27,24 +27,17 @@ MacOS Classic is no longer supported. If you really want it use Vim 6.4.
2727

2828
1.0 Considerations
2929

30-
Only '/' supported as path separator.
30+
Only '/' is supported as path separator.
3131

32-
1.1 Carbon interface (default)
32+
1.1 Terminal version (default)
3333

3434
You can compile vim with the standard Unix routine:
3535
cd .../src
3636
make
3737
make test
3838
sudo make install
3939

40-
"make" will create a working Vim.app application bundle in the src
41-
directory. You can move this bundle (the Vim.app directory) anywhere
42-
you want. Or use "make install" to move it to /Applications.
43-
44-
You need at least Xcode 1.5 to compile Vim 7.0.
45-
46-
Configure will create a universal binary if possible. This requires
47-
installing the universal SDK (currently for 10.4).
40+
You need at least Xcode 1.5.
4841

4942
To overrule the architecture do this before running make:
5043

@@ -53,17 +46,16 @@ MacOS Classic is no longer supported. If you really want it use Vim 6.4.
5346
./configure --with-mac-arch=ppc
5447

5548

56-
1.2 X-Windows or Plain Text
49+
1.2 X-Windows
5750

58-
If you do not want the Carbon interface, you must explicitly tell
59-
configure to use a different GUI.
51+
You must explicitly tell configure to use a GUI.
6052

6153
cd .../src
6254
./configure --disable-darwin --enable-gui=gtk2
6355
make; make install
6456

65-
NOTE: The following GUI options are supported:
66-
no (for text), motif, athena, nextaw
57+
NOTE: The following GUI options are possible (but might not work):
58+
no (for terminal only), motif, athena, nextaw
6759
gtk, gtk2, gnome, gnome2,
6860

6961
NOTE: You need to first install XFree86 and XDarwin.

src/Make_mvc.mak

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,14 +1326,6 @@ MAIN_TARGET = $(VIM).exe
13261326
# Target to run individual tests.
13271327
VIMTESTTARGET = $(VIM).exe
13281328

1329-
OLD_TEST_OUTFILES = \
1330-
$(SCRIPTS_FIRST) \
1331-
$(SCRIPTS_ALL) \
1332-
$(SCRIPTS_MORE1) \
1333-
$(SCRIPTS_MORE4) \
1334-
$(SCRIPTS_WIN32) \
1335-
$(SCRIPTS_GUI)
1336-
13371329
all: $(MAIN_TARGET) \
13381330
vimrun.exe \
13391331
install.exe \
@@ -1485,9 +1477,9 @@ testclean:
14851477
$(MAKE) /NOLOGO -f Make_dos.mak clean
14861478
cd ..
14871479

1488-
# Run individual OLD style test.
1480+
# Run test1 to bootstrap tests
14891481
# These do not depend on the executable, compile it when needed.
1490-
$(OLD_TEST_OUTFILES:.out=):
1482+
$(SCRIPTS_FIRST:.out=):
14911483
cd testdir
14921484
14931485
$(MAKE) /NOLOGO -f Make_dos.mak VIMPROG=..\$(VIMTESTTARGET) nolog

src/Makefile

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,24 +1373,6 @@ PHOTONGUI_MAN_TARGETS = yes
13731373
PHOTONGUI_TESTTARGET = gui
13741374
PHOTONGUI_BUNDLE =
13751375

1376-
# CARBON GUI
1377-
CARBONGUI_SRC = gui.c gui_mac.c
1378-
CARBONGUI_OBJ = objects/gui.o objects/gui_mac.o
1379-
CARBONGUI_DEFS = -DFEAT_GUI_MAC -fno-common -fpascal-strings \
1380-
-Wall -Wno-unknown-pragmas \
1381-
-mdynamic-no-pic -pipe
1382-
CARBONGUI_IPATH = -I. -Iproto
1383-
CARBONGUI_LIBS_DIR =
1384-
CARBONGUI_LIBS1 = -framework Carbon
1385-
CARBONGUI_LIBS2 =
1386-
CARBONGUI_INSTALL = install_macosx
1387-
CARBONGUI_TARGETS =
1388-
CARBONGUI_MAN_TARGETS =
1389-
CARBONGUI_TESTTARGET = gui
1390-
CARBONGUI_BUNDLE = gui_bundle
1391-
APPDIR = $(VIMNAME).app
1392-
CARBONGUI_TESTARG = VIMPROG=../$(APPDIR)/Contents/MacOS/$(VIMTARGET)
1393-
13941376
### Haiku GUI
13951377
HAIKUGUI_SRC = gui.c gui_haiku.cc
13961378
HAIKUGUI_OBJ = objects/gui.o objects/gui_haiku.o
@@ -2276,8 +2258,6 @@ test check: unittests $(TERM_TEST) scripttests
22762258
#
22772259
# This will produce a lot of garbage on your screen, including a few error
22782260
# messages. Don't worry about that.
2279-
# If there is a real error, there will be a difference between "testXX.out" and
2280-
# a "testXX.ok" file.
22812261
# If everything is alright, the final message will be "ALL DONE". If not you
22822262
# get "TEST FAILURE".
22832263
#
@@ -2328,9 +2308,9 @@ test_libvterm:
23282308
CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"; \
23292309
fi
23302310

2331-
# Run individual OLD style test.
2332-
# These do not depend on the executable, compile it when needed.
2333-
test1 test49:
2311+
# Run test1, used to bootstrap tests.
2312+
# This does not depend on the executable, compile first it when needed.
2313+
test1:
23342314
cd testdir; rm -f $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTESTTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
23352315

23362316
# Run individual NEW style test.

src/auto/configure

Lines changed: 15 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,6 @@ enable_gtk3_check
833833
enable_motif_check
834834
enable_athena_check
835835
enable_nextaw_check
836-
enable_carbon_check
837836
enable_macvim_check
838837
enable_gtktest
839838
with_gnome_includes
@@ -1505,7 +1504,6 @@ Optional Features:
15051504
--enable-motif-check If auto-select GUI, check for Motif default=yes
15061505
--enable-athena-check If auto-select GUI, check for Athena default=yes
15071506
--enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1508-
--enable-carbon-check If auto-select GUI, check for Carbon default=yes
15091507
--enable-macvim-check If auto-select GUI, check for MacVim default=yes
15101508
--disable-gtktest Do not try to compile and run a test GTK program
15111509
--disable-icon-cache-update update disabled
@@ -4796,7 +4794,11 @@ rm -f core conftest.err conftest.$ac_objext \
47964794
OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
47974795
CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN"
47984796

4799-
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4797+
SAVE_CPPFLAGS=$CPPFLAGS
4798+
SAVE_CFLAGS=$CFLAGS
4799+
CPPFLAGS="$CPPFLAGS -ObjC"
4800+
CFLAGS="$CFLAGS -ObjC"
4801+
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
48004802
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
48014803
inttypes.h stdint.h unistd.h
48024804
do :
@@ -4813,18 +4815,7 @@ fi
48134815
done
48144816

48154817

4816-
ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4817-
if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then :
4818-
CARBON=yes
4819-
fi
4820-
4821-
4822-
4823-
SAVE_CPPFLAGS=$CPPFLAGS
4824-
SAVE_CFLAGS=$CFLAGS
4825-
CPPFLAGS="$CPPFLAGS -ObjC"
4826-
CFLAGS="$CFLAGS -ObjC"
4827-
ac_fn_c_check_header_mongrel "$LINENO" "Cocoa/Cocoa.h" "ac_cv_header_Cocoa_Cocoa_h" "$ac_includes_default"
4818+
ac_fn_c_check_header_mongrel "$LINENO" "Cocoa/Cocoa.h" "ac_cv_header_Cocoa_Cocoa_h" "$ac_includes_default"
48284819
if test "x$ac_cv_header_Cocoa_Cocoa_h" = xyes; then :
48294820
COCOA=yes
48304821
fi
@@ -4833,11 +4824,9 @@ fi
48334824
CPPFLAGS=$SAVE_CPPFLAGS
48344825
CFLAGS=$SAVE_CFLAGS
48354826

4836-
if test "x$CARBON" = "xyes" -o "x$COCOA" = "xyes"; then
4837-
if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2 -a "X$enable_gui" != Xgtk3; then
4838-
with_x=no
4839-
fi
4840-
fi
4827+
if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2 -a "X$enable_gui" != Xgtk3; then
4828+
with_x=no
4829+
fi
48414830
fi
48424831
else
48434832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
@@ -9318,7 +9307,6 @@ SKIP_ATHENA=YES
93189307
SKIP_NEXTAW=YES
93199308
SKIP_PHOTON=YES
93209309
SKIP_HAIKU=YES
9321-
SKIP_CARBON=YES
93229310
SKIP_MACVIM=YES
93239311
GUITYPE=NONE
93249312

@@ -9355,29 +9343,20 @@ $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
93559343
esac
93569344

93579345
elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then
9358-
SKIP_CARBON=
93599346
SKIP_MACVIM=
93609347
case "$enable_gui_canon" in
93619348
no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
93629349
$as_echo "no GUI support" >&6; }
9363-
SKIP_CARBON=YES
9364-
SKIP_MACVIM=YES ;;
9365-
yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
9366-
$as_echo "yes/auto - automatic GUI support" >&6; }
9367-
gui_auto=yes
9368-
SKIP_CARBON=YES ;;
9369-
carbon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
9370-
$as_echo "Carbon GUI support" >&6; }
93719350
SKIP_MACVIM=YES ;;
9351+
yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic GUI support" >&5
9352+
$as_echo "automatic GUI support" >&6; }
9353+
gui_auto=yes ;;
93729354
macvim) { $as_echo "$as_me:${as_lineno-$LINENO}: result: MacVim GUI support" >&5
9373-
$as_echo "MacVim GUI support" >&6; }
9374-
SKIP_CARBON=YES ;;
9355+
$as_echo "MacVim GUI support" >&6; } ;;
93759356
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
93769357
$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9377-
SKIP_CARBON=YES
93789358
SKIP_MACVIM=YES ;;
93799359
esac
9380-
93819360
else
93829361

93839362
case "$enable_gui_canon" in
@@ -9390,9 +9369,8 @@ $as_echo "yes/auto - automatic GUI support" >&6; }
93909369
SKIP_GNOME=
93919370
SKIP_MOTIF=
93929371
SKIP_ATHENA=
9393-
SKIP_NEXTAW=
93949372
SKIP_MACVIM=
9395-
SKIP_CARBON=;;
9373+
SKIP_NEXTAW=;;
93969374
gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
93979375
$as_echo "GTK+ 2.x GUI support" >&6; }
93989376
SKIP_GTK2=;;
@@ -9522,23 +9500,6 @@ $as_echo "$enable_nextaw_check" >&6; };
95229500
fi
95239501
fi
95249502

9525-
if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
9526-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
9527-
$as_echo_n "checking whether or not to look for Carbon... " >&6; }
9528-
# Check whether --enable-carbon-check was given.
9529-
if test "${enable_carbon_check+set}" = set; then :
9530-
enableval=$enable_carbon_check;
9531-
else
9532-
enable_carbon_check="yes"
9533-
fi
9534-
9535-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
9536-
$as_echo "$enable_carbon_check" >&6; };
9537-
if test "x$enable_carbon_check" = "xno"; then
9538-
SKIP_CARBON=YES
9539-
fi
9540-
fi
9541-
95429503
if test "x$SKIP_MACVIM" != "xYES" -a "$enable_gui_canon" != "macvim"; then
95439504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for MacVim" >&5
95449505
$as_echo_n "checking whether or not to look for MacVim... " >&6; }
@@ -14993,11 +14954,7 @@ fi
1499314954
if test "$MACOS_X" = "yes"; then
1499414955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5
1499514956
$as_echo_n "checking whether we need macOS frameworks... " >&6; }
14996-
if test "$GUITYPE" = "CARBONGUI"; then
14997-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need Carbon" >&5
14998-
$as_echo "yes, we need Carbon" >&6; }
14999-
LIBS="$LIBS -framework Carbon"
15000-
elif test "$MACOS_X_DARWIN" = "yes"; then
14957+
if test "$MACOS_X_DARWIN" = "yes"; then
1500114958
if test "$features" = "tiny"; then
1500214959
OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
1500314960
OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`

0 commit comments

Comments
 (0)