From 88e6ae9779238f080e11d4a5fdec384dd47deeed Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 27 Jun 2013 22:02:02 +0200 Subject: [PATCH 01/96] updated for version 7.3.1252 Problem: Gvim does not find the toolbar bitmap files in ~/vimfiles/bitmaps if the corresponding menu command contains additional characters like the shortcut marker '&' or if you use a non-english locale. Solution: Use menu->en_dname or menu->dname. (Martin Gieseking) --- src/gui_w32.c | 4 +++- src/version.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui_w32.c b/src/gui_w32.c index 34d3dd4d91..a00e4efdf3 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -4163,7 +4163,9 @@ get_toolbar_bitmap(vimmenu_T *menu) * didn't exist or wasn't specified, try the menu name */ if (hbitmap == NULL - && (gui_find_bitmap(menu->name, fname, "bmp") == OK)) + && (gui_find_bitmap(menu->en_dname != NULL + ? menu->en_dname + : menu->dname, fname, "bmp") == OK)) hbitmap = LoadImage( NULL, fname, diff --git a/src/version.c b/src/version.c index a83e923b72..83487c7c63 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1252, /**/ 1251, /**/ From 398ccc6ae83de6fd9eb33d3b4e16baaadb305d3c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 27 Jun 2013 22:02:02 +0200 Subject: [PATCH 02/96] Added tag v7-3-1252 for changeset 875a0aeb301c --- .hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/.hgtags b/.hgtags index 03cc67a27c..928e6b6992 100644 --- a/.hgtags +++ b/.hgtags @@ -2588,3 +2588,4 @@ f451d60ab8ec56d02a7b5f2d5c16187566279886 v7-3-1247 b614332f7df2f6f471bb4bd93767becd7844b90c v7-3-1249 6aecf486bb347ac6885afe36d62ddbbf2457f898 v7-3-1250 788f4802967766b7f3d6dce83cc027baef422f4a v7-3-1251 +875a0aeb301c3fb2be8a79f2d82e324d80caf4f3 v7-3-1252 From e0d087d7ebf3efa49ff39609094a7a45a2ee3b86 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 27 Jun 2013 22:21:24 +0200 Subject: [PATCH 03/96] updated for version 7.3.1253 Problem: Still undo problem after using CTRL-R = setline(). (Hirohito Higashi) Solution: Set the ins_need_undo flag. --- src/edit.c | 8 +++++--- src/version.c | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/edit.c b/src/edit.c index 413740f70d..b42b930f1b 100644 --- a/src/edit.c +++ b/src/edit.c @@ -8134,15 +8134,17 @@ ins_reg() # ifdef USE_IM_CONTROL int im_on = im_get_status(); # endif + /* Sync undo, so the effect of e.g., setline() can be undone. */ + u_sync(TRUE); + ins_need_undo = TRUE; + regname = get_expr_register(); # ifdef USE_IM_CONTROL /* Restore the Input Method. */ if (im_on) im_set_active(TRUE); # endif - if (regname == '=') - /* sync undo, so the effect of e.g., setline() can be undone */ - u_sync(TRUE); + Insstart = curwin->w_cursor; } if (regname == NUL || !valid_yank_reg(regname, FALSE)) { diff --git a/src/version.c b/src/version.c index 83487c7c63..dbd9542572 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1253, /**/ 1252, /**/ From e5fdf9e2ea6850aa28d132bdd38aecafa73d15a8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 27 Jun 2013 22:21:24 +0200 Subject: [PATCH 04/96] Added tag v7-3-1253 for changeset d6a7dea44a86 --- .hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/.hgtags b/.hgtags index 928e6b6992..3ec19cda76 100644 --- a/.hgtags +++ b/.hgtags @@ -2589,3 +2589,4 @@ b614332f7df2f6f471bb4bd93767becd7844b90c v7-3-1249 6aecf486bb347ac6885afe36d62ddbbf2457f898 v7-3-1250 788f4802967766b7f3d6dce83cc027baef422f4a v7-3-1251 875a0aeb301c3fb2be8a79f2d82e324d80caf4f3 v7-3-1252 +d6a7dea44a8667d834e463b8658cf85ea938112d v7-3-1253 From d535349056f39ab1a8c02959f6c66e729b14479a Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 27 Jun 2013 22:29:38 +0200 Subject: [PATCH 05/96] updated for version 7.3.1254 Problem: Can't build without the multi-lang feature. (John Marriott) Solution: Add #ifdef. --- src/gui_w32.c | 8 +++++--- src/version.c | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/gui_w32.c b/src/gui_w32.c index a00e4efdf3..4443d35c0a 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -4163,9 +4163,11 @@ get_toolbar_bitmap(vimmenu_T *menu) * didn't exist or wasn't specified, try the menu name */ if (hbitmap == NULL - && (gui_find_bitmap(menu->en_dname != NULL - ? menu->en_dname - : menu->dname, fname, "bmp") == OK)) + && (gui_find_bitmap( +#ifdef FEAT_MULTI_LANG + menu->en_dname != NULL ? menu->en_dname : +#endif + menu->dname, fname, "bmp") == OK)) hbitmap = LoadImage( NULL, fname, diff --git a/src/version.c b/src/version.c index dbd9542572..6f0225325d 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1254, /**/ 1253, /**/ From cea429e8a92603a78d101602aae5715a8eb0128c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 27 Jun 2013 22:29:38 +0200 Subject: [PATCH 06/96] Added tag v7-3-1254 for changeset 5eff37e92f03 --- .hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/.hgtags b/.hgtags index 3ec19cda76..b61ac62ae7 100644 --- a/.hgtags +++ b/.hgtags @@ -2590,3 +2590,4 @@ b614332f7df2f6f471bb4bd93767becd7844b90c v7-3-1249 788f4802967766b7f3d6dce83cc027baef422f4a v7-3-1251 875a0aeb301c3fb2be8a79f2d82e324d80caf4f3 v7-3-1252 d6a7dea44a8667d834e463b8658cf85ea938112d v7-3-1253 +5eff37e92f03771aee77a3688d79a73e5b6107e9 v7-3-1254 From 1c1cd3dbeaacd82777b7017639f5aca44173d9a8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 27 Jun 2013 22:36:03 +0200 Subject: [PATCH 07/96] updated for version 7.3.1255 Problem: Clang warnings when building with Athena. Solution: Add type casts. (Dominique Pelle) --- src/gui_at_fs.c | 4 ++-- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui_at_fs.c b/src/gui_at_fs.c index 25767c2c79..2d73885aa4 100644 --- a/src/gui_at_fs.c +++ b/src/gui_at_fs.c @@ -2591,7 +2591,7 @@ SFcreateWidgets(toplevel, prompt, ok, cancel) (XtCallbackProc)SFvFloatSliderMovedCallback, (XtPointer)(long_u)n); XtAddCallback(selFileVScrolls[n], XtNscrollProc, - (XtCallbackProc)SFvAreaSelectedCallback, (XtPointer)n); + (XtCallbackProc)SFvAreaSelectedCallback, (XtPointer)(long_u)n); selFileHScrolls[n] = XtVaCreateManagedWidget("selFileHScroll", #ifdef FEAT_GUI_NEXTAW @@ -2616,7 +2616,7 @@ SFcreateWidgets(toplevel, prompt, ok, cancel) (XtCallbackProc)SFhSliderMovedCallback, (XtPointer)(long_u)n); XtAddCallback(selFileHScrolls[n], XtNscrollProc, - (XtCallbackProc)SFhAreaSelectedCallback, (XtPointer)n); + (XtCallbackProc)SFhAreaSelectedCallback, (XtPointer)(long_u)n); } selFileOK = XtVaCreateManagedWidget("selFileOK", diff --git a/src/version.c b/src/version.c index 6f0225325d..b0855c1aff 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1255, /**/ 1254, /**/ From 49835829300b46ec49752c55a2d02ea9b41213b4 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 27 Jun 2013 22:36:03 +0200 Subject: [PATCH 08/96] Added tag v7-3-1255 for changeset f8d307ebd74a --- .hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/.hgtags b/.hgtags index b61ac62ae7..1bc726cfc0 100644 --- a/.hgtags +++ b/.hgtags @@ -2591,3 +2591,4 @@ b614332f7df2f6f471bb4bd93767becd7844b90c v7-3-1249 875a0aeb301c3fb2be8a79f2d82e324d80caf4f3 v7-3-1252 d6a7dea44a8667d834e463b8658cf85ea938112d v7-3-1253 5eff37e92f03771aee77a3688d79a73e5b6107e9 v7-3-1254 +f8d307ebd74a4097f7083ea8117be0433f00c7ce v7-3-1255 From 46da2a30a1dcd6528f3c05a682ac90c044777aa7 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 28 Jun 2013 18:44:48 +0200 Subject: [PATCH 09/96] Update runtime files. Remove duplicate tags in help. --- runtime/doc/options.txt | 50 +++++++++++++++--------------- runtime/doc/spell.txt | 12 +++++--- runtime/doc/syntax.txt | 64 ++++++--------------------------------- runtime/doc/tags | 6 ++-- runtime/doc/todo.txt | 35 ++------------------- runtime/ftplugin/vim.vim | 6 +--- runtime/plugin/tohtml.vim | 13 ++++---- 7 files changed, 56 insertions(+), 130 deletions(-) diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index f9fa9d122b..535f51842c 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1,4 +1,4 @@ -*options.txt* For Vim version 7.3. Last change: 2013 Jun 12 +*options.txt* For Vim version 7.3. Last change: 2013 Jun 26 VIM REFERENCE MANUAL by Bram Moolenaar @@ -480,41 +480,41 @@ to set options automatically for one or more files: *modeline* *vim:* *vi:* *ex:* *E520* There are two forms of modelines. The first form: - [text]{white}{vi:|vim:|ex:}[white]{options} + [text]{white}{vi:|vim:|Vim:|ex:}[white]{options} -[text] any text or empty -{white} at least one blank character ( or ) -{vi:|vim:|ex:} the string "vi:", "vim:" or "ex:" -[white] optional white space -{options} a list of option settings, separated with white space or ':', - where each part between ':' is the argument for a ":set" - command (can be empty) +[text] any text or empty +{white} at least one blank character ( or ) +{vi:|vim:|Vim:|ex:} the string "vi:", "vim:", "Vim:" or "ex:" +[white] optional white space +{options} a list of option settings, separated with white space + or ':', where each part between ':' is the argument + for a ":set" command (can be empty) Example: vi:noai:sw=3 ts=6 ~ The second form (this is compatible with some versions of Vi): - [text]{white}{vi:|vim:|ex:}[white]se[t] {options}:[text] + [text]{white}{vi:|vim:|Vim:|ex:}[white]se[t] {options}:[text] -[text] any text or empty -{white} at least one blank character ( or ) -{vi:|vim:|ex:} the string "vi:", "vim:" or "ex:" -[white] optional white space -se[t] the string "set " or "se " (note the space) -{options} a list of options, separated with white space, which is the - argument for a ":set" command -: a colon -[text] any text or empty +[text] any text or empty +{white} at least one blank character ( or ) +{vi:|vim:|Vim:|ex:} the string "vi:", "vim:", "Vim:" or "ex:" +[white] optional white space +se[t] the string "set " or "se " (note the space) +{options} a list of options, separated with white space, which + is the argument for a ":set" command +: a colon +[text] any text or empty Example: /* vim: set ai tw=75: */ ~ -The white space before {vi:|vim:|ex:} is required. This minimizes the chance -that a normal word like "lex:" is caught. There is one exception: "vi:" and -"vim:" can also be at the start of the line (for compatibility with version -3.0). Using "ex:" at the start of the line will be ignored (this could be -short for "example:"). +The white space before {vi:|vim:|Vim:|ex:} is required. This minimizes the +chance that a normal word like "lex:" is caught. There is one exception: +"vi:" and "vim:" can also be at the start of the line (for compatibility with +version 3.0). Using "ex:" at the start of the line will be ignored (this +could be short for "example:"). *modeline-local* The options are set like with ":setlocal": The new value only applies to the @@ -530,7 +530,7 @@ in another window. But window-local options will be set. *modeline-version* If the modeline is only to be used for some versions of Vim, the version -number can be specified where "vim:" is used: +number can be specified where "vim:" or "Vim:" is used: vim{vers}: version {vers} or later vim<{vers}: version before {vers} vim={vers}: version {vers} diff --git a/runtime/doc/spell.txt b/runtime/doc/spell.txt index 5c76eb5322..f6ba45715a 100644 --- a/runtime/doc/spell.txt +++ b/runtime/doc/spell.txt @@ -1,4 +1,4 @@ -*spell.txt* For Vim version 7.3. Last change: 2011 May 25 +*spell.txt* For Vim version 7.3. Last change: 2013 Jun 26 VIM REFERENCE MANUAL by Bram Moolenaar @@ -928,9 +928,13 @@ When the encoding is UTF-8 no word characters need to be specified. Vim allows you to use spell checking for several languages in the same file. You can list them in the 'spelllang' option. As a consequence all spell files for the same encoding must use the same word characters, otherwise they can't -be combined without errors. If you get a warning that the word tables differ -you may need to generate the .spl file again with |:mkspell|. Check the FOL, -LOW and UPP lines in the used .aff file. +be combined without errors. + +If you get an E763 warning that the word tables differ you need to update your +".spl" spell files. If you downloaded the files, get the latest version of +all spell files you use. Otherwise generate the .spl file again with +|:mkspell|. If you still get errors check the FOL, LOW and UPP lines in the +used .aff files. The XX.ascii.spl spell file generated with the "-ascii" argument will not contain the table with characters, so that it can be combine with spell files diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index 049772b8fe..e8a264d9ec 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -1,4 +1,4 @@ -*syntax.txt* For Vim version 7.3. Last change: 2013 Jun 26 +*syntax.txt* For Vim version 7.3. Last change: 2013 Jun 28 VIM REFERENCE MANUAL by Bram Moolenaar @@ -2996,38 +2996,6 @@ If you have a slow computer, you may wish to reduce the values for > increase them. This primarily affects synchronizing (i.e. just what group, if any, is the text at the top of the screen supposed to be in?). -Another cause of slow highlighting is due to syntax-driven folding; see -|tex-folding| for a way around this. - - *g:tex_fast* - -Finally, if syntax highlighting is still too slow, you may set > - - :let g:tex_fast= "" - -in your .vimrc. Used this way, the g:tex_fast variable causes the syntax -highlighting script to avoid defining any regions and associated -synchronization. The result will be much faster syntax highlighting; the -price: you will no longer have as much highlighting or any syntax-based -folding, and you will be missing syntax-based error checking. - -You may decide that some syntax is acceptable; you may use the following table -selectively to enable just some syntax highlighting: > - - b : allow bold and italic syntax - c : allow texComment syntax - m : allow texMatcher syntax (ie. {...} and [...]) - M : allow texMath syntax - p : allow parts, chapter, section, etc syntax - r : allow texRefZone syntax (nocite, bibliography, label, pageref, eqref) - s : allow superscript/subscript regions - S : allow texStyle syntax - v : allow verbatim syntax - V : allow texNewEnv and texNewCmd syntax -< -As an example, let g:tex_fast= "M" will allow math-associated highlighting -but suppress all the other region-based syntax highlighting. - Another cause of slow highlighting is due to syntax-driven folding; see |tex-folding| for a way around this. @@ -3141,28 +3109,6 @@ for the following sets of characters: > By leaving one or more of these out, the associated conceal-character substitution will not be made. - *g:tex_isk* - Tex: Controlling What's In A Keyword~ - -(La)Tex keywords normally use the characters 0-9,a-z,A-Z,192-255 only -but the "_" is the only one that causes problems. So, by default, -syntax/tex.vim overrides the usual |'iskeyword'| setting (using |:setlocal|) -with one that works for LaTeX. - -However, one may override this iskeyword re-setting by setting the -variable, g:tex_isk, in one's .vimrc to whatever one wishes and -it will be used instead. - - -TF *tf.vim* *ft-tf-syntax* - -There is one option for the tf syntax highlighting. - -For syncing, minlines defaults to 100. If you prefer another value, you can -set "tf_minlines" to the value you desire. Example: > - - :let tf_minlines = your choice - *g:tex_isk* *g:tex_stylish* Tex: Controlling iskeyword~ @@ -3183,7 +3129,15 @@ syntax highlighting script handles this with the following logic: * Else the local 'iskeyword' will be set to 48-57,a-z,A-Z,192-255 +TF *tf.vim* *ft-tf-syntax* +There is one option for the tf syntax highlighting. + +For syncing, minlines defaults to 100. If you prefer another value, you can +set "tf_minlines" to the value you desire. Example: > + + :let tf_minlines = your choice +< VIM *vim.vim* *ft-vim-syntax* *g:vimsyn_minlines* *g:vimsyn_maxlines* There is a trade-off between more accurate syntax highlighting versus screen diff --git a/runtime/doc/tags b/runtime/doc/tags index 8001806c30..eafb331543 100644 --- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -341,7 +341,9 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME* 'iconstring' options.txt /*'iconstring'* 'ignorecase' options.txt /*'ignorecase'* 'im' options.txt /*'im'* +'imactivatefunc' options.txt /*'imactivatefunc'* 'imactivatekey' options.txt /*'imactivatekey'* +'imaf' options.txt /*'imaf'* 'imak' options.txt /*'imak'* 'imc' options.txt /*'imc'* 'imcmdline' options.txt /*'imcmdline'* @@ -351,6 +353,8 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME* 'iminsert' options.txt /*'iminsert'* 'ims' options.txt /*'ims'* 'imsearch' options.txt /*'imsearch'* +'imsf' options.txt /*'imsf'* +'imstatusfunc' options.txt /*'imstatusfunc'* 'inc' options.txt /*'inc'* 'include' options.txt /*'include'* 'includeexpr' options.txt /*'includeexpr'* @@ -6004,11 +6008,9 @@ g:tar_writeoptions pi_tar.txt /*g:tar_writeoptions* g:tex_comment_nospell syntax.txt /*g:tex_comment_nospell* g:tex_conceal syntax.txt /*g:tex_conceal* g:tex_fast syntax.txt /*g:tex_fast* -g:tex_fast syntax.txt /*g:tex_fast* g:tex_flavor filetype.txt /*g:tex_flavor* g:tex_fold_enabled syntax.txt /*g:tex_fold_enabled* g:tex_isk syntax.txt /*g:tex_isk* -g:tex_isk syntax.txt /*g:tex_isk* g:tex_no_error syntax.txt /*g:tex_no_error* g:tex_nospell syntax.txt /*g:tex_nospell* g:tex_stylish syntax.txt /*g:tex_stylish* diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt index 4ce4ab1976..eb267167e9 100644 --- a/runtime/doc/todo.txt +++ b/runtime/doc/todo.txt @@ -1,4 +1,4 @@ -*todo.txt* For Vim version 7.3. Last change: 2013 Jun 26 +*todo.txt* For Vim version 7.3. Last change: 2013 Jun 27 VIM REFERENCE MANUAL by Bram Moolenaar @@ -34,11 +34,7 @@ not be repeated below, unless there is extra information. *known-bugs* -------------------- Known bugs and current work ----------------------- ---- Python interface - -Test 86 fails on MS-Windows, using backslashes instead of forward slashes. -(Taro Muraoka, 2013 Jun 24) -Can we fix this in code instead of in the test? +--- Python interface --- Python: ":py raw_input('prompt')" doesn't work. (Manu Hack) @@ -49,28 +45,7 @@ Python: Be able to define a Python function that can be called directly from Vim script. Requires converting the arguments and return value, like with vim.bindeval(). -Python SystemExit exception is not handled properly. Patch to catch the -exception and give an error. (Yasuhiro Matsumoto) -Does not work, tests fail. - ---- bug fixes - -Problem with winfixheight and resizing. (Yukihiro Nakadaira, 2011 Sep 17) -Patch Sep 18. - -Patch for IME problems. Remove hacking code for old IM. (Yukihiro Nakadaira, -2012 Jul 20) - -Modeline is not triggered when using Vim: instead of vim:. It's very hard to -see why it doesn't work. - -Patch to fix finding toolbar bitmaps. Issue 129. - -Patch 7.3.1200 doesn't fix the problem in all cases. (Hirohito Higashi, 2013 -Jun 24) - -Patch to avoid clang warnings when building with Athena. -(Dominique Pelle, 2013 Jun 22) +--- bug fixes --- Suggestion to remove __QNXNTO__ in gui.c. (Sean Boudreau, 2013 Jun 7) @@ -187,10 +162,6 @@ Second one. Update May 22. Patch to make fold updates much faster. (Christian Brabandt, 2012 Dec) -Patch for IME handling, adds 'imactivatefunc' and 'imstatusfunc' option. -(Yukihiro Nakadaira, 2012 Aug 16) -Patch to improve IME handling. (Yasuhiro Matsumoto, 2012 Jul 18) - Issue 54: document behavior of -complete, also expands arg. - Add regex for 'paragraphs' and 'sections': 'parare' and 'sectre'. Combine diff --git a/runtime/ftplugin/vim.vim b/runtime/ftplugin/vim.vim index 5feb152712..edba37b896 100644 --- a/runtime/ftplugin/vim.vim +++ b/runtime/ftplugin/vim.vim @@ -1,7 +1,7 @@ " Vim filetype plugin " Language: Vim " Maintainer: Bram Moolenaar -" Last Change: 2012 Mar 21 +" Last Change: 2013 Jun 26 " Only do this when not done yet for this buffer if exists("b:did_ftplugin") @@ -21,10 +21,6 @@ let b:undo_ftplugin = "setl fo< isk< com< tw< commentstring<" " and insert the comment leader when hitting or using "o". setlocal fo-=t fo+=croql -" To make syntax highlighting of 'vimVar's work correctly we need the colon to -" be part of keywords. This needs to be done prior to the 'isk+=#' below. -setlocal isk+=: - " To allow tag lookup via CTRL-] for autoload functions, '#' must be a " keyword character. E.g., for netrw#Nread(). setlocal isk+=# diff --git a/runtime/plugin/tohtml.vim b/runtime/plugin/tohtml.vim index a56b95b8a6..c7fa8caae2 100644 --- a/runtime/plugin/tohtml.vim +++ b/runtime/plugin/tohtml.vim @@ -1,6 +1,6 @@ " Vim plugin for converting a syntax highlighted file to HTML. " Maintainer: Ben Fritz -" Last Change: 2013 Jun 12 +" Last Change: 2013 Jun 26 " " The core of the code is in $VIMRUNTIME/autoload/tohtml.vim and " $VIMRUNTIME/syntax/2html.vim @@ -72,12 +72,11 @@ let g:loaded_2html_plugin = 'vim7.3_v14' " " Changelog: {{{ " -" 7.3_v14 (this version): Allow suppressing empty created for line -" number anchors when line numbers are not included, -" using g:html_empty_anchors=0. Allow customizing -" important IDs (like line IDs and fold IDs) using -" g:html_id_expr evalutated when the buffer conversion -" is started. +" 7.3_v14 (this version): Allow suppressing line number anchors using +" g:html_line_ids=0. Allow customizing +" important IDs (like line IDs and fold IDs) using +" g:html_id_expr evalutated when the buffer conversion +" is started. " 7.3_v13 (2eb30f341e8d): Keep foldmethod at manual in the generated file and " insert modeline to set it to manual. " Fix bug: diff mode with 2 unsaved buffers creates a From 46695c431d1f48cd652b05e69c6c372594365268 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 28 Jun 2013 20:16:55 +0200 Subject: [PATCH 10/96] updated for version 7.3.1256 Problem: Can't build without eval or autocmd feature. Solution: Add #ifdefs. --- src/mbyte.c | 13 +++++++++++-- src/version.c | 2 ++ src/window.c | 6 ++++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/mbyte.c b/src/mbyte.c index 61d83cf014..e0b2498625 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -5079,6 +5079,7 @@ xim_reset(void) { xim_set_focus(gui.in_focus); +# ifdef FEAT_EVAL if (p_imaf[0] != NUL) { char_u *argv[1]; @@ -5089,7 +5090,9 @@ xim_reset(void) argv[0] = (char_u *)"0"; (void)call_func_retnr(p_imaf, 1, argv, FALSE); } - else if (im_activatekey_keyval != GDK_VoidSymbol) + else +# endif + if (im_activatekey_keyval != GDK_VoidSymbol) { if (im_is_active) { @@ -5249,12 +5252,17 @@ xim_queue_key_press_event(GdkEventKey *event, int down) int im_get_status(void) { +# ifdef FEAT_EVAL if (p_imsf[0] != NUL) { int is_active; /* FIXME: Don't execute user function in unsafe situation. */ - if (exiting || is_autocmd_blocked()) + if (exiting +# ifdef FEAT_AUTOCMD + || is_autocmd_blocked() +# endif + ) return FALSE; /* FIXME: :py print 'xxx' is shown duplicate result. * Use silent to avoid it. */ @@ -5263,6 +5271,7 @@ im_get_status(void) --msg_silent; return (is_active > 0); } +# endif return im_is_active; } diff --git a/src/version.c b/src/version.c index b0855c1aff..fe0ce589bc 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1256, /**/ 1255, /**/ diff --git a/src/window.c b/src/window.c index d7d45e0446..54ab200807 100644 --- a/src/window.c +++ b/src/window.c @@ -53,10 +53,10 @@ static void win_free __ARGS((win_T *wp, tabpage_T *tp)); static void frame_append __ARGS((frame_T *after, frame_T *frp)); static void frame_insert __ARGS((frame_T *before, frame_T *frp)); static void frame_remove __ARGS((frame_T *frp)); -#ifdef FEAT_VERTSPLIT +# ifdef FEAT_VERTSPLIT static void win_goto_ver __ARGS((int up, long count)); static void win_goto_hor __ARGS((int left, long count)); -#endif +# endif static void frame_add_height __ARGS((frame_T *frp, int n)); static void last_status_rec __ARGS((frame_T *fr, int statusline)); @@ -6928,6 +6928,7 @@ get_tab_number(tabpage_T *tp UNUSED) } #endif +#ifdef FEAT_WINDOWS /* * Return TRUE if "topfrp" and its children are at the right height. */ @@ -6948,6 +6949,7 @@ frame_check_height(topfrp, height) return TRUE; } +#endif #ifdef FEAT_VERTSPLIT /* From 03adc922d4b7e8254acfab85e2c361dc1c50f3a4 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 28 Jun 2013 20:16:55 +0200 Subject: [PATCH 11/96] Added tag v7-3-1256 for changeset 322441058afc --- .hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/.hgtags b/.hgtags index 1bc726cfc0..1474a4ca42 100644 --- a/.hgtags +++ b/.hgtags @@ -2592,3 +2592,4 @@ b614332f7df2f6f471bb4bd93767becd7844b90c v7-3-1249 d6a7dea44a8667d834e463b8658cf85ea938112d v7-3-1253 5eff37e92f03771aee77a3688d79a73e5b6107e9 v7-3-1254 f8d307ebd74a4097f7083ea8117be0433f00c7ce v7-3-1255 +322441058afca6a8aa52d34eda9fa307608354d3 v7-3-1256 From 93491848918068f6e1c88761ac8c9ed10e64f032 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 28 Jun 2013 20:36:30 +0200 Subject: [PATCH 12/96] updated for version 7.3.1257 Problem: With GNU gettext() ":lang de_DE.utf8" does not always result in German messages. Solution: Clear the $LANGUAGE environment variable. --- src/ex_cmds2.c | 3 +++ src/version.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 22b41f415e..4a860ca885 100644 --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -4261,6 +4261,9 @@ ex_language(eap) if (what == LC_ALL) { vim_setenv((char_u *)"LANG", name); + + /* Clear $LANGUAGE because GNU gettext uses it. */ + vim_setenv((char_u *)"LANGUAGE", (char_u *)""); # ifdef WIN32 /* Apparently MS-Windows printf() may cause a crash when * we give it 8-bit text while it's expecting text in the diff --git a/src/version.c b/src/version.c index fe0ce589bc..4980ae5700 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1257, /**/ 1256, /**/ From 808cafec862f2dc1993a7f40b34118c747614520 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 28 Jun 2013 20:36:31 +0200 Subject: [PATCH 13/96] Added tag v7-3-1257 for changeset 5751284311f3 --- .hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/.hgtags b/.hgtags index 1474a4ca42..8a78bc2f24 100644 --- a/.hgtags +++ b/.hgtags @@ -2593,3 +2593,4 @@ d6a7dea44a8667d834e463b8658cf85ea938112d v7-3-1253 5eff37e92f03771aee77a3688d79a73e5b6107e9 v7-3-1254 f8d307ebd74a4097f7083ea8117be0433f00c7ce v7-3-1255 322441058afca6a8aa52d34eda9fa307608354d3 v7-3-1256 +5751284311f37399cb7a66d99fe317de4ae86ea9 v7-3-1257 From a7ca08c1cfb2ac474dbca22c1802cdda6d4a3db5 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 28 Jun 2013 23:04:42 +0200 Subject: [PATCH 14/96] updated for version 7.3.1258 Problem: Using submatch() may crash Vim. (Ingo Karkat) Solution: Restore the number of subexpressions used. --- src/regexp_nfa.c | 3 +++ src/version.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index 8146d9d61e..bd3818d71e 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -5198,6 +5198,8 @@ nfa_regmatch(prog, start, submatch, m) || t->state->c == NFA_START_INVISIBLE_BEFORE_FIRST || t->state->c == NFA_START_INVISIBLE_BEFORE_NEG_FIRST) { + int in_use = m->norm.in_use; + /* Copy submatch info for the recursive call, so that * \1 can be matched. */ copy_sub_off(&m->norm, &t->subs.norm); @@ -5231,6 +5233,7 @@ nfa_regmatch(prog, start, submatch, m) add_here = TRUE; add_state = t->state->out1->out; } + m->norm.in_use = in_use; } else { diff --git a/src/version.c b/src/version.c index 4980ae5700..d8a6f3804e 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1258, /**/ 1257, /**/ From 033900d849239c49e7d961457cd129e628b883cf Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 28 Jun 2013 23:04:42 +0200 Subject: [PATCH 15/96] Added tag v7-3-1258 for changeset c9e2ccc53f2e --- .hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/.hgtags b/.hgtags index 8a78bc2f24..d268b91894 100644 --- a/.hgtags +++ b/.hgtags @@ -2594,3 +2594,4 @@ d6a7dea44a8667d834e463b8658cf85ea938112d v7-3-1253 f8d307ebd74a4097f7083ea8117be0433f00c7ce v7-3-1255 322441058afca6a8aa52d34eda9fa307608354d3 v7-3-1256 5751284311f37399cb7a66d99fe317de4ae86ea9 v7-3-1257 +c9e2ccc53f2e119e247da7fc9111b6b9c9385d93 v7-3-1258 From 2da94a1713aed72969bee4b94d6c321789874a5a Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 29 Jun 2013 12:10:26 +0200 Subject: [PATCH 16/96] updated for version 7.3.1259 Problem: No test for patch 7.3.1258 Solution: Add a test entry. --- src/testdir/test64.in | 4 +++- src/testdir/test64.ok | 3 +++ src/version.c | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/testdir/test64.in b/src/testdir/test64.in index a7b5794d73..c414c6e76e 100644 --- a/src/testdir/test64.in +++ b/src/testdir/test64.in @@ -384,6 +384,7 @@ STARTTEST :call add(tl, [2, '^.*\.\(.*\)/.\+\(\1\)\@ Date: Sat, 29 Jun 2013 12:10:26 +0200 Subject: [PATCH 17/96] Added tag v7-3-1259 for changeset 7ab94cb688be --- .hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/.hgtags b/.hgtags index d268b91894..2ab495da48 100644 --- a/.hgtags +++ b/.hgtags @@ -2595,3 +2595,4 @@ f8d307ebd74a4097f7083ea8117be0433f00c7ce v7-3-1255 322441058afca6a8aa52d34eda9fa307608354d3 v7-3-1256 5751284311f37399cb7a66d99fe317de4ae86ea9 v7-3-1257 c9e2ccc53f2e119e247da7fc9111b6b9c9385d93 v7-3-1258 +7ab94cb688bebd694109442be4dd6edb6ebe3c85 v7-3-1259 From f92b434dda693d0fea604e4731b59208dfa27825 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 29 Jun 2013 12:58:33 +0200 Subject: [PATCH 18/96] updated for version 7.3.1260 Problem: User completion does not get the whole command line in the command line window. Solution: Pass on the whole command line. (Daniel Thau) --- src/ex_getln.c | 23 +++++++++++------------ src/structs.h | 2 ++ src/version.c | 2 ++ 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/src/ex_getln.c b/src/ex_getln.c index ec64619e4d..18a708bf98 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -3729,6 +3729,7 @@ ExpandInit(xp) #if defined(FEAT_USR_CMDS) && defined(FEAT_EVAL) && defined(FEAT_CMDL_COMPL) xp->xp_arg = NULL; #endif + xp->xp_line = NULL; } /* @@ -4378,6 +4379,11 @@ set_cmd_context(xp, str, len, col) int old_char = NUL; char_u *nextcomm; + /* Store the string here so that call_user_expand_func() can get to them + * easily. */ + xp->xp_line = str; + xp->xp_col = col; + /* * Avoid a UMR warning from Purify, only save the character if it has been * written before. @@ -4952,27 +4958,20 @@ call_user_expand_func(user_expand_func, xp, num_file, file) void *ret; struct cmdline_info save_ccline; - if (xp->xp_arg == NULL || xp->xp_arg[0] == '\0') + if (xp->xp_arg == NULL || xp->xp_arg[0] == '\0' || xp->xp_line == NULL) return NULL; *num_file = 0; *file = NULL; - if (ccline.cmdbuff == NULL) + if (ccline.cmdbuff != NULL) { - /* Completion from Insert mode, pass fake arguments. */ - keep = 0; - sprintf((char *)num, "%d", (int)STRLEN(xp->xp_pattern)); - args[1] = xp->xp_pattern; - } - else - { - /* Completion on the command line, pass real arguments. */ keep = ccline.cmdbuff[ccline.cmdlen]; ccline.cmdbuff[ccline.cmdlen] = 0; - sprintf((char *)num, "%d", ccline.cmdpos); - args[1] = ccline.cmdbuff; } + args[0] = vim_strnsave(xp->xp_pattern, xp->xp_pattern_len); + args[1] = xp->xp_line; + sprintf((char *)num, "%d", xp->xp_col); args[2] = num; /* Save the cmdline, we don't know what the function may do. */ diff --git a/src/structs.h b/src/structs.h index bfe1919b63..96435eda72 100644 --- a/src/structs.h +++ b/src/structs.h @@ -493,6 +493,8 @@ typedef struct expand int xp_numfiles; /* number of files found by file name completion */ char_u **xp_files; /* list of files */ + char_u *xp_line; /* text being completed */ + int xp_col; /* cursor position in line */ } expand_T; /* values for xp_backslash */ diff --git a/src/version.c b/src/version.c index d9e62dd488..60d0d10da1 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1260, /**/ 1259, /**/ From b5330e9f469a48fae644bc6ff21655ce832f9326 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 29 Jun 2013 12:58:33 +0200 Subject: [PATCH 19/96] Added tag v7-3-1260 for changeset 7aa4e0822dec --- .hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/.hgtags b/.hgtags index 2ab495da48..2f21f057fb 100644 --- a/.hgtags +++ b/.hgtags @@ -2596,3 +2596,4 @@ f8d307ebd74a4097f7083ea8117be0433f00c7ce v7-3-1255 5751284311f37399cb7a66d99fe317de4ae86ea9 v7-3-1257 c9e2ccc53f2e119e247da7fc9111b6b9c9385d93 v7-3-1258 7ab94cb688bebd694109442be4dd6edb6ebe3c85 v7-3-1259 +7aa4e0822dec0840770d9f41052a772a887cd213 v7-3-1260 From 3ff7e9068f9e2b83694928571caa4d6797369267 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 29 Jun 2013 13:58:31 +0200 Subject: [PATCH 20/96] updated for version 7.3.1261 Problem: A buffer-local language mapping from a keymap stops a global insert mode mapping from working. (Ron Aaron) Solution: Do not wait for more characters to be typed only when the mapping was defined with . --- runtime/doc/map.txt | 18 ++++++++++++++---- src/eval.c | 1 + src/getchar.c | 43 ++++++++++++++++++++++++++++--------------- src/testdir/test75.in | 2 ++ src/testdir/test75.ok | 5 +++-- src/version.c | 2 ++ 6 files changed, 50 insertions(+), 21 deletions(-) diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt index e5e7720f79..c08ecd9512 100644 --- a/runtime/doc/map.txt +++ b/runtime/doc/map.txt @@ -159,9 +159,9 @@ type "a", then "bar" will get inserted. 1.2 SPECIAL ARGUMENTS *:map-arguments* -"", "", "", "