• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revision165c628aa9fc3cca34ccf63dc8ab953745d4e228 (tree)
Zeit2005-07-13 07:50:18
Autorvimboss
Commitervimboss

Log Message

updated for version 7.0108

Ändern Zusammenfassung

Diff

diff -r 8ab9c77240d4 -r 165c628aa9fc README_vms.txt
--- a/README_vms.txt Tue Jul 12 22:46:17 2005 +0000
+++ b/README_vms.txt Tue Jul 12 22:50:18 2005 +0000
@@ -14,27 +14,34 @@
1414 vim-X.X-extra.tar.gz extra source files
1515
1616 Compilation is recommended, in order to make sure that the correct
17-libraries are used for your specific system. However, you might not be
18-able to compile Vim, read more from src/INSTALLvms.txt.
17+libraries are used for your specific system. Read about compiling in
18+src/INSTALLvms.txt.
1919
2020 To use the binary version, you need one of these archives:
2121
22- vim-XX-exe-alpha-gui.zip Alpha GUI/Motif executables
23- vim-XX-exe-alpha-gtk.zip Alpha GUI/GTK executables
24- vim-XX-exe-alpha-term.zip Alpha console executables
22+ vim-XX-exe-ia64-gui.zip IA64 GUI/Motif executables
23+ vim-XX-exe-ia64-gtk.zip IA64 GUI/GTK executables
24+ vim-XX-exe-ia64-term.zip IA64 console executables
25+ vim-XX-exe-axp-gui.zip Alpha GUI/Motif executables
26+ vim-XX-exe-axp-gtk.zip Alpha GUI/GTK executables
27+ vim-XX-exe-axp-term.zip Alpha console executables
2528 vim-XX-exe-vax-gui.zip VAX GUI executables
26- vim-XX-exe-vax-term.zip VAX console executables
29+ vim-XX-exe-vax-term.zip VAX console executables
2730
2831 and of course
2932 vim-XX-runtime.zip runtime files
3033
31-The binary archives contain: vim.exe, ctags.exe, xxd.exe, mms_vim.exe files,
34+The binary archives contain: vim.exe, ctags.exe, xxd.exe files,
3235 but there are also prepared "deploy ready" archives:
3336
34-vim-XX-alpha.zip GUI and console executables with runtime and
35- help files for Alpha systems
36-vim-XX-vax.zip GUI and console executables with runtime and
37- help files for VAX systems
37+vim-XX-ia64.zip GUI and console executables with runtime and
38+ help files for IA64 systems
39+vim-XX-axp.zip GUI and console executables with runtime and
40+ help files for Alpha systems
41+vim-XX-vax.zip GUI and console executables with runtime and
42+ help files for VAX systems
43+
44+GTK builds need LIBGTK library installed.
3845
3946 These executables and up to date patches for OpenVMS system are downloadable
4047 from http://www.polarhome.com/vim/ or ftp://ftp.polarhome.com/pub/vim/
diff -r 8ab9c77240d4 -r 165c628aa9fc runtime/doc/tagsrch.txt
--- a/runtime/doc/tagsrch.txt Tue Jul 12 22:46:17 2005 +0000
+++ b/runtime/doc/tagsrch.txt Tue Jul 12 22:50:18 2005 +0000
@@ -1,4 +1,4 @@
1-*tagsrch.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
1+*tagsrch.txt* For Vim version 7.0aa. Last change: 2005 Jul 12
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -352,6 +352,8 @@
352352 When the argument both exists literally, and match when used as a regexp, a
353353 literal match has a higher priority. For example, ":tag /open" matches "open"
354354 before "open_file" and "file_open".
355+When using a pattern case is ignored. If you want to match case use "\C" in
356+the pattern.
355357
356358 *tag-!*
357359 If the tag is in the current file this will always work. Otherwise the
diff -r 8ab9c77240d4 -r 165c628aa9fc runtime/doc/todo.txt
--- a/runtime/doc/todo.txt Tue Jul 12 22:46:17 2005 +0000
+++ b/runtime/doc/todo.txt Tue Jul 12 22:50:18 2005 +0000
@@ -1,4 +1,4 @@
1-*todo.txt* For Vim version 7.0aa. Last change: 2005 Jul 11
1+*todo.txt* For Vim version 7.0aa. Last change: 2005 Jul 13
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -30,6 +30,10 @@
3030 *known-bugs*
3131 -------------------- Known bugs and current work -----------------------
3232
33+Use vim_strncpy() in more places.
34+
35+When going over 'synmaxcol' don't highlight anything, stop regions.
36+
3337 Add extra list of file locations. Can be used with:
3438 :ltag list of matching tags, like :tselect
3539
diff -r 8ab9c77240d4 -r 165c628aa9fc runtime/doc/version7.txt
--- a/runtime/doc/version7.txt Tue Jul 12 22:46:17 2005 +0000
+++ b/runtime/doc/version7.txt Tue Jul 12 22:50:18 2005 +0000
@@ -1,4 +1,4 @@
1-*version7.txt* For Vim version 7.0aa. Last change: 2005 Jul 11
1+*version7.txt* For Vim version 7.0aa. Last change: 2005 Jul 12
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1180,4 +1180,7 @@
11801180 When opening a new buffer the local value of 'bomb' was not initialized from
11811181 the global value.
11821182
1183+Win32: When using the "Edit with Vim" entry the file name was limited to about
1184+200 characters.
1185+
11831186 vim:tw=78:ts=8:ft=help:norl:
diff -r 8ab9c77240d4 -r 165c628aa9fc runtime/syntax/xf86conf.vim
--- a/runtime/syntax/xf86conf.vim Tue Jul 12 22:46:17 2005 +0000
+++ b/runtime/syntax/xf86conf.vim Tue Jul 12 22:50:18 2005 +0000
@@ -2,7 +2,7 @@
22 " This is a GENERATED FILE. Please always refer to source file at the URI below.
33 " Language: XF86Config (XFree86 configuration file)
44 " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
5-" Last Change: 2003-05-01
5+" Last Change: 2005 Jul 12
66 " URL: http://trific.ath.cx/Ftp/vim/syntax/xf86conf.vim
77 " Required Vim Version: 6.0
88 "
@@ -63,7 +63,7 @@
6363
6464 " Sections and subsections
6565 if b:xf86conf_xfree86_version >= 4
66- syn region xf86confSection matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"\(Files\|Server[_ ]*Flags\|Input[_ ]*Device\|Device\|Video[_ ]*Adaptor\|Server[_ ]*Layout\|DRI\|Vendor\|Keyboard\|Pointer\)\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword,xf86confSectionError
66+ syn region xf86confSection matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"\(Files\|Server[_ ]*Flags\|Input[_ ]*Device\|Device\|Video[_ ]*Adaptor\|Server[_ ]*Layout\|DRI\|Extensions\|Vendor\|Keyboard\|Pointer\)\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword,xf86confSectionError
6767 syn region xf86confSectionModule matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Module\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionAny,xf86confComment,xf86confOption,xf86confKeyword
6868 syn region xf86confSectionMonitor matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Monitor\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionMode,xf86confModeLine,xf86confComment,xf86confOption,xf86confKeyword
6969 syn region xf86confSectionModes matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Modes\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionMode,xf86confModeLine,xf86confComment
@@ -165,7 +165,7 @@
165165
166166 " Synchronization
167167 if b:xf86conf_xfree86_version >= 4
168- syn sync match xf86confSyncSection grouphere xf86confSection "^\s*Section\s\+\"\(Files\|Server[_ ]*Flags\|Input[_ ]*Device\|Device\|Video[_ ]*Adaptor\|Server[_ ]*Layout\|DRI\|Vendor\|Keyboard\|Pointer\)\""
168+ syn sync match xf86confSyncSection grouphere xf86confSection "^\s*Section\s\+\"\(Files\|Server[_ ]*Flags\|Input[_ ]*Device\|Device\|Video[_ ]*Adaptor\|Server[_ ]*Layout\|DRI\|Extensions\|Vendor\|Keyboard\|Pointer\)\""
169169 syn sync match xf86confSyncSectionModule grouphere xf86confSectionModule "^\s*Section\s\+\"Module\""
170170 syn sync match xf86confSyncSectionModes groupthere xf86confSectionModes "^\s*Section\s\+\"Modes\""
171171 else
diff -r 8ab9c77240d4 -r 165c628aa9fc src/GvimExt/gvimext.cpp
--- a/src/GvimExt/gvimext.cpp Tue Jul 12 22:46:17 2005 +0000
+++ b/src/GvimExt/gvimext.cpp Tue Jul 12 22:50:18 2005 +0000
@@ -38,10 +38,14 @@
3838 HRESULT hres = 0;
3939 UINT cbFiles = 0;
4040
41+/* The buffers size used to be MAX_PATH (256 bytes), but that's not always
42+ * enough */
43+#define BUFSIZE 1100
44+
4145 //
4246 // Get the name of the Gvim executable to use, with the path.
4347 // When "runtime" is non-zero, we were called to find the runtime directory.
44-// Returns the path in name[MAX_PATH]. It's empty when it fails.
48+// Returns the path in name[BUFSIZE]. It's empty when it fails.
4549 //
4650 static void
4751 getGvimName(char *name, int runtime)
@@ -54,7 +58,7 @@
5458 if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Vim\\Gvim", 0,
5559 KEY_READ, &keyhandle) == ERROR_SUCCESS)
5660 {
57- hlen = MAX_PATH;
61+ hlen = BUFSIZE;
5862 if (RegQueryValueEx(keyhandle, "path", 0, NULL, (BYTE *)name, &hlen)
5963 != ERROR_SUCCESS)
6064 name[0] = 0;
@@ -82,7 +86,7 @@
8286 }
8387
8488 //
85-// Get the Vim runtime directory into buf[MAX_PATH].
89+// Get the Vim runtime directory into buf[BUFSIZE].
8690 // The result is empty when it failed.
8791 // When it works, the path ends in a slash or backslash.
8892 //
@@ -218,8 +222,8 @@
218222 static void
219223 dyn_gettext_load(void)
220224 {
221- char szBuff[MAX_PATH];
222- char szLang[MAX_PATH];
225+ char szBuff[BUFSIZE];
226+ char szLang[BUFSIZE];
223227 DWORD len;
224228 HKEY keyhandle;
225229 int gotlang = 0;
@@ -231,7 +235,7 @@
231235 if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Vim\\Gvim", 0,
232236 KEY_READ, &keyhandle) == ERROR_SUCCESS)
233237 {
234- len = MAX_PATH;
238+ len = BUFSIZE;
235239 if (RegQueryValueEx(keyhandle, "lang", 0, NULL, (BYTE*)szBuff, &len)
236240 == ERROR_SUCCESS)
237241 {
@@ -249,7 +253,7 @@
249253 // LOCALE_SABBREVLANGNAME gives us three letters, like "enu", we use
250254 // only the first two.
251255 len = GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SABBREVLANGNAME,
252- (LPTSTR)szBuff, MAX_PATH);
256+ (LPTSTR)szBuff, BUFSIZE);
253257 if (len >= 2 && _strnicmp(szBuff, "en", 2) != 0)
254258 {
255259 // There are a few exceptions (probably more)
@@ -615,11 +619,11 @@
615619 // Now display all the vim instances
616620 for (int i = 0; i < m_cntOfHWnd; i++)
617621 {
618- char title[MAX_PATH];
619- char temp[MAX_PATH];
622+ char title[BUFSIZE];
623+ char temp[BUFSIZE];
620624
621625 // Obtain window title, continue if can not
622- if (GetWindowText(m_hWnd[i], title, MAX_PATH - 1) == 0)
626+ if (GetWindowText(m_hWnd[i], title, BUFSIZE - 1) == 0)
623627 continue;
624628 // Truncate the title before the path, keep the file name
625629 char *pos = strchr(title, '(');
@@ -630,8 +634,8 @@
630634 *pos = 0;
631635 }
632636 // Now concatenate
633- strncpy(temp, _("Edit with existing Vim - "), MAX_PATH - 1);
634- strncat(temp, title, MAX_PATH - 1);
637+ strncpy(temp, _("Edit with existing Vim - "), BUFSIZE - 1);
638+ strncat(temp, title, BUFSIZE - 1);
635639 InsertMenu(hMenu,
636640 indexMenu++,
637641 MF_STRING|MF_BYPOSITION,
@@ -750,7 +754,7 @@
750754
751755 BOOL CALLBACK CShellExt::EnumWindowsProc(HWND hWnd, LPARAM lParam)
752756 {
753- char temp[MAX_PATH];
757+ char temp[BUFSIZE];
754758
755759 // First do a bunch of check
756760 // No invisible window
@@ -807,8 +811,8 @@
807811 static char *
808812 searchpath(char *name)
809813 {
810- static char widename[2 * MAX_PATH];
811- static char location[2 * MAX_PATH + 2];
814+ static char widename[2 * BUFSIZE];
815+ static char location[2 * BUFSIZE + 2];
812816
813817 // There appears to be a bug in FindExecutableA() on Windows NT.
814818 // Use FindExecutableW() instead...
@@ -816,12 +820,12 @@
816820 if (g_PlatformId == VER_PLATFORM_WIN32_NT)
817821 {
818822 MultiByteToWideChar(CP_ACP, 0, (LPCTSTR)name, -1,
819- (LPWSTR)widename, MAX_PATH);
823+ (LPWSTR)widename, BUFSIZE);
820824 if (FindExecutableW((LPCWSTR)widename, (LPCWSTR)"",
821825 (LPWSTR)location) > (HINSTANCE)32)
822826 {
823827 WideCharToMultiByte(CP_ACP, 0, (LPWSTR)location, -1,
824- (LPSTR)widename, 2 * MAX_PATH, NULL, NULL);
828+ (LPSTR)widename, 2 * BUFSIZE, NULL, NULL);
825829 return widename;
826830 }
827831 }
@@ -842,8 +846,8 @@
842846 LPCSTR pszParam,
843847 int iShowCmd)
844848 {
845- char m_szFileUserClickedOn[MAX_PATH];
846- char cmdStr[MAX_PATH];
849+ char m_szFileUserClickedOn[BUFSIZE];
850+ char cmdStr[BUFSIZE];
847851 UINT i;
848852
849853 for (i = 0; i < cbFiles; i++)
@@ -856,7 +860,7 @@
856860 getGvimName(cmdStr, 0);
857861 strcat(cmdStr, " \"");
858862
859- if ((strlen(cmdStr) + strlen(m_szFileUserClickedOn) + 2) < MAX_PATH)
863+ if ((strlen(cmdStr) + strlen(m_szFileUserClickedOn) + 2) < BUFSIZE)
860864 {
861865 strcat(cmdStr, m_szFileUserClickedOn);
862866 strcat(cmdStr, "\"");
@@ -913,13 +917,13 @@
913917 int iShowCmd,
914918 int useDiff)
915919 {
916- char m_szFileUserClickedOn[MAX_PATH];
920+ char m_szFileUserClickedOn[BUFSIZE];
917921 char *cmdStr;
918922 size_t cmdlen;
919923 size_t len;
920924 UINT i;
921925
922- cmdlen = MAX_PATH;
926+ cmdlen = BUFSIZE;
923927 cmdStr = (char *)malloc(cmdlen);
924928 getGvimName(cmdStr, 0);
925929 if (useDiff)
@@ -934,7 +938,7 @@
934938 len = strlen(cmdStr) + strlen(m_szFileUserClickedOn) + 4;
935939 if (len > cmdlen)
936940 {
937- cmdlen = len + MAX_PATH;
941+ cmdlen = len + BUFSIZE;
938942 cmdStr = (char *)realloc(cmdStr, cmdlen);
939943 }
940944 strcat(cmdStr, " \"");
diff -r 8ab9c77240d4 -r 165c628aa9fc src/testdir/test58.in
--- a/src/testdir/test58.in Tue Jul 12 22:46:17 2005 +0000
+++ b/src/testdir/test58.in Tue Jul 12 22:50:18 2005 +0000
@@ -3,10 +3,12 @@
33 STARTTEST
44 :so small.vim
55 :"
6-:" First generate a .spl file from a .dic and a .aff file.
6+:" Don't want to depend on the locale from the environment
77 :set enc=latin1
8-:/^affstart1/+1,/affend1/-1w Xtest.aff
9-:/^dicstart/+1,/dicend/-1w Xtest.dic
8+:e!
9+:" First generate a .spl file from a .dic and a .aff file.
10+gg:/^affstart1/+1,/^affend1/-1w Xtest.aff
11+gg:/^dicstart/+1,/^dicend/-1w Xtest.dic
1012 :mkspell Xtest Xtest
1113 :"
1214 :" use that spell file
diff -r 8ab9c77240d4 -r 165c628aa9fc src/ui.c
--- a/src/ui.c Tue Jul 12 22:46:17 2005 +0000
+++ b/src/ui.c Tue Jul 12 22:50:18 2005 +0000
@@ -184,10 +184,12 @@
184184 # endif
185185 {
186186 if (wtime == -1 || wtime > 100L)
187- (void)handle_signal(SIGNAL_UNBLOCK); /* allow signals to kill us */
187+ /* allow signals to kill us */
188+ (void)vim_handle_signal(SIGNAL_UNBLOCK);
188189 retval = mch_inchar(buf, maxlen, wtime, tb_change_cnt);
189190 if (wtime == -1 || wtime > 100L)
190- (void)handle_signal(SIGNAL_BLOCK); /* block SIGHUP et al. */
191+ /* block SIGHUP et al. */
192+ (void)vim_handle_signal(SIGNAL_BLOCK);
191193 }
192194 #endif
193195
Show on old repository browser