# HG changeset patch # User vimboss # Date 1144446007 0 # Node ID 9ab23f1e137fd5b0e35c1604ffb95979713f83e4 # Parent 45fad0f590d0e6d59852dbd0b2f356a6e72b9742 updated for version 7.0c12 diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim version 7.0c. Last change: 2006 Apr 04 +*autocmd.txt* For Vim version 7.0c. Last change: 2006 Apr 07 VIM REFERENCE MANUAL by Bram Moolenaar @@ -506,8 +506,8 @@ FileChangedRO Before making the first the change was caused by an autocommand. This event is triggered when making the first change in a buffer or the first change after - 'readonly' was set, - just before the change is applied to the text. + 'readonly' was set, just before the change is + applied to the text. WARNING: If the autocommand moves the cursor the effect of the change is undefined. *E788* diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 7.0c. Last change: 2006 Apr 04 +*eval.txt* For Vim version 7.0c. Last change: 2006 Apr 06 VIM REFERENCE MANUAL by Bram Moolenaar @@ -819,7 +819,7 @@ Number. Note that this doesn't recogniz Index zero gives the first character. This is like it works in C. Careful: text column numbers start with one! Example, to get the character under the cursor: > - :let c = getline(line("."))[col(".") - 1] + :let c = getline(".")[col(".") - 1] If the length of the String is less than the index, the result is an empty String. A negative index always results in an empty string (reason: backwards @@ -4562,7 +4562,7 @@ strpart({src}, {start}[, {len}]) *strp strpart("abcdefg", 3) == "defg" < Note: To get the first character, {start} must be 0. For example, to get three bytes under and after the cursor: > - strpart(getline(line(".")), col(".") - 1, 3) + strpart(getline("."), col(".") - 1, 3) < strridx({haystack}, {needle} [, {start}]) *strridx()* The result is a Number, which gives the byte index in diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -1,4 +1,4 @@ -*syntax.txt* For Vim version 7.0c. Last change: 2006 Apr 04 +*syntax.txt* For Vim version 7.0c. Last change: 2006 Apr 06 VIM REFERENCE MANUAL by Bram Moolenaar @@ -2581,7 +2581,7 @@ somewhere else with "P". Do you want to draw with the mouse? Try the following: > :function! GetPixel() - : let c = getline(line("."))[col(".") - 1] + : let c = getline(".")[col(".") - 1] : echo c : exe "noremap r".c : exe "noremap r".c diff --git a/runtime/doc/tags b/runtime/doc/tags --- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -5611,7 +5611,6 @@ hebrew hebrew.txt /*hebrew* hebrew.txt hebrew.txt /*hebrew.txt* help various.txt /*help* help-context help.txt /*help-context* -help-tags tags 1 help-translated various.txt /*help-translated* help-xterm-window various.txt /*help-xterm-window* help.txt help.txt /*help.txt* diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt --- a/runtime/doc/todo.txt +++ b/runtime/doc/todo.txt @@ -1,4 +1,4 @@ -*todo.txt* For Vim version 7.0c. Last change: 2006 Apr 06 +*todo.txt* For Vim version 7.0c. Last change: 2006 Apr 07 VIM REFERENCE MANUAL by Bram Moolenaar @@ -30,6 +30,13 @@ be worked on, but only if you sponsor Vi *known-bugs* -------------------- Known bugs and current work ----------------------- +Handle postponed prefix with COMPOUNDPERMITFLAG or COMPOUNDFORBIDFLAG. + WFP_COMPPERMIT and WFP_COMPFORBID + +":mkspell" still takes too long in Hungarian dictionary. + +Use ~/tmp/hungarian*.txt to test dictionary with. + New Hungarian dictionary. (Laci Nemeth) - implement use of in .spl file: - implement CHECKCOMPOUNDREP: when a compound word seems to be OK apply REP diff --git a/runtime/doc/version7.txt b/runtime/doc/version7.txt --- a/runtime/doc/version7.txt +++ b/runtime/doc/version7.txt @@ -1,4 +1,4 @@ -*version7.txt* For Vim version 7.0c. Last change: 2006 Apr 06 +*version7.txt* For Vim version 7.0c. Last change: 2006 Apr 07 VIM REFERENCE MANUAL by Bram Moolenaar @@ -160,6 +160,7 @@ as . The items can no longer be When executing a FileChangedRO autocommand it is no longer allowed to switch to another buffer or edit another file. This is to prevent crashes (the event is triggered deep down in the code where changing buffers is not anticipated). +It is possible to reload the buffer. ============================================================================== NEW FEATURES *new-7* @@ -951,6 +952,7 @@ sensors syntax and ftplugin file. (Nikol services syntax and ftplugin file. (Nikolai Weibull) setserial syntax and ftplugin file. (Nikolai Weibull) sieve syntax and ftplugin file. (Nikolai Weibull) +SiSU syntax file (Ralph Amissah) Sive syntax file. (Nikolai Weibull) slp config, reg and spi syntax and ftplugin files. (Nikolai Weibull) SML indent file. (Saikat Guha) @@ -2394,4 +2396,19 @@ When using the menu in the tab pages lin where the click was. Beyond the labels the new tab appears at the end instead of after the current tab page. +Inside a mapping with an expression getchar() could not be used. + +When vgetc is used recursively vgetc_busy protects it from being used +recursively. But after a ":normal" command the protection was reset. + +":s/a/b/n" didn't work when 'modifiable' was off. + +When $VIMRUNTIME includes a multi-byte character then rgb.txt could not be +found. (Yukihiro Nakadaira) + +":mkspell" didn't work correctly for non-ASCII affix flags when conversion is +needed on the spell file. + +glob('/dir/\$ABC/*') didn't work. + vim:tw=78:ts=8:ft=help:norl: diff --git a/runtime/lang/menu_de_de.latin1.vim b/runtime/lang/menu_de_de.latin1.vim --- a/runtime/lang/menu_de_de.latin1.vim +++ b/runtime/lang/menu_de_de.latin1.vim @@ -1,7 +1,7 @@ " Menu Translations: German / Deutsch " Maintainer: Georg Dahn " Originally By: Marcin Dalecki -" Johannes Zellner +" Johannes Zellner " Last Change: Sat, 11 Mar 2006 22:40:00 CEST " vim:set foldmethod=marker tabstop=8: @@ -20,12 +20,12 @@ endif " {{{ FILE / DATEI menutrans &File &Datei menutrans &Open\.\.\.:e &Öffnen\.\.\.:e -menutrans Sp&lit-Open\.\.\.:sp In\ geteiltem\ &Fenster\ Öffnen\.\.\.:sp -menutrans Open\ Tab\.\.\.:tabnew In\ neuem\ &Tab\ Öffnen\.\.\.:tabnew +menutrans Sp&lit-Open\.\.\.:sp In\ geteiltem\ &Fenster\ öffnen\.\.\.:sp +menutrans Open\ Tab\.\.\.:tabnew In\ neuem\ &Tab\ öffnen\.\.\.:tabnew menutrans &New:enew &Neue\ Datei:enew menutrans &Close:close S&chließen:close menutrans &Save:w &Speichern:w -menutrans Save\ &As\.\.\.:sav Speichern\ &Als\.\.\.:sav +menutrans Save\ &As\.\.\.:sav Speichern\ &als\.\.\.:sav menutrans &Print &Drucken menutrans Sa&ve-Exit:wqa Speichern\ und\ Be&enden:wqa menutrans E&xit:qa &Beenden:qa @@ -44,10 +44,10 @@ menutrans Rep&eat\. &Wiederholen"+x &Ausschneiden"+x menutrans &Copy"+y &Kopieren"+y menutrans &Paste"+gP Ein&fügen"+gP -menutrans Put\ &Before[p Da&vor\ Einfügen[p -menutrans Put\ &After]p Da&nach\ Einfügen]p -menutrans &Deletex &Löschenx -menutrans &Select\ AllggVG Alles\ &MarkierenggVG +menutrans Put\ &Before[p Da&vor\ einfügen[p +menutrans Put\ &After]p Da&nach\ einfügen]p +menutrans &Deletex &Löschenx +menutrans &Select\ AllggVG Alles\ &markierenggVG menutrans &Find\.\.\. &Suchen\.\.\. menutrans Find\ and\ Rep&lace\.\.\. Suchen\ und\ &Ersetzen\.\.\. @@ -55,6 +55,7 @@ menutrans Find\ and\ Rep&lace\.\.\. Such " XXX &E would conflict with 'Suchen\ und\ &Ersetzen', see above menutrans Settings\ &Window E&instellungen\.\.\. menutrans &Global\ Settings &Globale\ Einstellungen +menutrans Startup\ &Settings &Starteinstellungen menutrans Toggle\ Pattern\ &Highlight:set\ hls! &Hervorhebungen\ ein-\ und\ ausschalten:set\ hls! menutrans Toggle\ &Ignore-case:set\ ic! Großschreibung\ &ignorieren\ oder\ benutzen:set\ ic! @@ -66,7 +67,7 @@ menutrans &Virtual\ Edit &Virtueller\ menutrans Never Nie menutrans Block\ Selection Block-Auswahl menutrans Insert\ mode Einfüge-Modus -menutrans Block\ and\ Insert Block-\ und\ Einfüge-Modus +menutrans Block\ and\ Insert Block-Auswahl\ und\ Einfüge-Modus menutrans Always Immer menutrans Toggle\ Insert\ &Mode:set\ im! Einfüge-&Modus\ ein-\ und\ ausschalten:set\ im! menutrans Toggle\ Vi\ C&ompatible:set\ cp! Vi-Kompatibilität\ ein-\ und\ ausschalten:set\ cp! @@ -94,19 +95,19 @@ menutrans Toggle\ &C-indenting:set\ cin! &C-Einrückung\ ein-\ und\ ausschalten:set\ cin! " other options menutrans &Shiftwidth &Schiebeweite menutrans Soft\ &Tabstop &Tabulator -menutrans Te&xt\ Width\.\.\. Te&xt\ Breite\.\.\. -menutrans &File\ Format\.\.\. &Datei\ Format\.\.\. +menutrans Te&xt\ Width\.\.\. Te&xtbreite\.\.\. +menutrans &File\ Format\.\.\. &Dateiformat\.\.\. menutrans C&olor\ Scheme F&arbschema\.\.\. -menutrans &Keymap &Tastatur-Belegung +menutrans &Keymap &Tastaturbelegung " }}} EDIT / EDITIEREN " {{{ TOOLS / WERKZEUGE if has("spell") menutrans &Spelling &Rechtschreibung - menutrans &Spell\ Check\ On &Rechtschreibprüfung\ An - menutrans Spell\ Check\ &Off Rechtschreibprüfung\ &Aus - menutrans To\ &Next\ error]s Zum\ &Nächsten\ Fehler]s - menutrans To\ &Previous\ error[s Zum\ &Letzten\ Fehler[s + menutrans &Spell\ Check\ On &Rechtschreibprüfung\ an + menutrans Spell\ Check\ &Off Rechtschreibprüfung\ &aus + menutrans To\ &Next\ error]s Zum\ &nächsten\ Fehler]s + menutrans To\ &Previous\ error[s Zum\ &vorherigen\ Fehler[s menutrans Suggest\ &Correctionsz= &Korrekturvorschlägez= menutrans &Repeat\ correction:spellrepall &Wiederhole\ Korrektur:spellrepall menutrans Set\ language\ to\ "en" Verwende\ Wörterbuch\ "en" @@ -115,7 +116,7 @@ if has("spell") menutrans Set\ language\ to\ "en_gb" Verwende\ Wörterbuch\ "en_gb" menutrans Set\ language\ to\ "en_nz" Verwende\ Wörterbuch\ "en_nz" menutrans Set\ language\ to\ "en_us" Verwende\ Wörterbuch\ "en_us" - menutrans Set\ language\ to\ "de" Verwende\ Wörterbuch\ "de" + menutrans Set\ language\ to\ "de" Verwende\ Wörterbuch\ "de" menutrans &Find\ More\ Languages &Suche\ nach\ Wörterbüchern endif if has("folding") @@ -138,29 +139,29 @@ if has("folding") menutrans Ma&rker Ma&rkierungen " create and delete folds " TODO accelerators - menutrans Create\ &Foldzf Faltung\ Erzeugenzf - menutrans &Delete\ Foldzd Faltung\ Löschenzd - menutrans Delete\ &All\ FoldszD Alle\ Faltungen\ LöschenzD + menutrans Create\ &Foldzf Faltung\ erzeugenzf + menutrans &Delete\ Foldzd Faltung\ löschenzd + menutrans Delete\ &All\ FoldszD Alle\ Faltungen\ löschenzD " moving around in folds - menutrans Fold\ column\ &width &Breite\ der\ Faltungs-Spalte + menutrans Fold\ column\ &width &Breite\ der\ Faltungsspalte endif " has folding if has("diff") menutrans &Diff &Differenz menutrans &Update &Aktualisieren - menutrans &Get\ Block Block\ &Einfügen - menutrans &Put\ Block Block\ &Übertragen + menutrans &Get\ Block Block\ &einfügen + menutrans &Put\ Block Block\ &übertragen endif menutrans &Tools &Werkzeuge menutrans &Jump\ to\ this\ tagg^] &Springe\ zum\ Tagg^] -menutrans Jump\ &back^T Springe\ &Zurück^T -menutrans Build\ &Tags\ File Erstelle\ &Tags\ Datei +menutrans Jump\ &back^T Springe\ &zurück^T +menutrans Build\ &Tags\ File Erstelle\ &Tag-Datei menutrans &Make:make &Erstellen:make -menutrans &List\ Errors:cl &Fehler\ Anzeigen:cl -menutrans L&ist\ Messages:cl! &Hinweise\ Anzeigen:cl! -menutrans &Next\ Error:cn Zum\ &Nächsten\ Fehler:cn -menutrans &Previous\ Error:cp Zum\ &Vorherigen\ Fehler:cp +menutrans &List\ Errors:cl &Fehler\ anzeigen:cl +menutrans L&ist\ Messages:cl! &Hinweise\ anzeigen:cl! +menutrans &Next\ Error:cn Zum\ &nächsten\ Fehler:cn +menutrans &Previous\ Error:cp Zum\ &vorherigen\ Fehler:cp menutrans &Older\ List:cold &Ältere\ Liste:cold menutrans N&ewer\ List:cnew &Neuere\ Liste:cnew @@ -178,8 +179,8 @@ menutrans Conve&rt\ back:%!xxd\ -r Zurück\ konvertieren:%!xxd\ -r " {{{ SYNTAX / SYNTAX menutrans &Syntax &Syntax menutrans &Show\ filetypes\ in\ menu Dateitypen\ an&zeigen -menutrans Set\ '&syntax'\ only Nur\ '&syntax'\ Setzen -menutrans Set\ '&filetype'\ too Auch\ '&filetype'\ Setzen +menutrans Set\ '&syntax'\ only Nur\ '&syntax'\ setzen +menutrans Set\ '&filetype'\ too Auch\ '&filetype'\ setzen menutrans &Off &Aus menutrans &Manual &Manuell menutrans A&utomatic A&utomatisch @@ -202,11 +203,11 @@ menutrans &Previous &Vorheriger menutrans &Window &Ansicht menutrans &New^Wn &Neu^Wn menutrans S&plit^Ws Aufs&palten^Ws -menutrans Split\ &Vertically^Wv &Vertikal\ Aufspalten^Wv +menutrans Split\ &Vertically^Wv &Vertikal\ aufspalten^Wv menutrans Split\ File\ E&xplorer Ver&zeichnis menutrans Sp&lit\ To\ #^W^^ Aufspa<en\ in\ #^W^^ menutrans &Close^Wc &Schließen^Wc -menutrans Close\ &Other(s)^Wo &Andere\ Schließen^Wo +menutrans Close\ &Other(s)^Wo &Andere\ schließen^Wo menutrans Ne&xt^Ww N&ächstes^Ww menutrans P&revious^WW Vor&heriges^WW menutrans &Equal\ Size^W= &Gleiche\ Höhen^W= @@ -259,9 +260,9 @@ if has("toolbar") delfun Do_toolbar_tmenu endif fun Do_toolbar_tmenu() - tmenu ToolBar.Open Datei Öffnen - tmenu ToolBar.Save Datei Speichern - tmenu ToolBar.SaveAll Alle Dateien Speichern + tmenu ToolBar.Open Datei öffnen + tmenu ToolBar.Save Datei speichern + tmenu ToolBar.SaveAll Alle Dateien speichern tmenu ToolBar.Print Drucken tmenu ToolBar.Undo Zurück tmenu ToolBar.Redo Wiederholen @@ -269,25 +270,25 @@ if has("toolbar") tmenu ToolBar.Copy Kopieren tmenu ToolBar.Paste Einfügen tmenu ToolBar.Find Suchen... - tmenu ToolBar.FindNext Suche Nächsten - tmenu ToolBar.FindPrev Suche Vorherigen + tmenu ToolBar.FindNext Suche nächsten + tmenu ToolBar.FindPrev Suche vorherigen tmenu ToolBar.Replace Suchen und Ersetzen... if 0 " disabled; These are in the Windows menu tmenu ToolBar.New Neue Ansicht - tmenu ToolBar.WinSplit Ansicht Aufspalten - tmenu ToolBar.WinMax Ansicht Maximale Höhen - tmenu ToolBar.WinMin Ansicht Minimale Höhen - tmenu ToolBar.WinClose Ansicht Schließen + tmenu ToolBar.WinSplit Ansicht aufspalten + tmenu ToolBar.WinMax Ansicht maximale Höhen + tmenu ToolBar.WinMin Ansicht minimale Höhen + tmenu ToolBar.WinClose Ansicht schließen endif - tmenu ToolBar.LoadSesn Sitzung Laden - tmenu ToolBar.SaveSesn Sitzung Speichern - tmenu ToolBar.RunScript Vim-Skript Ausführen + tmenu ToolBar.LoadSesn Sitzung laden + tmenu ToolBar.SaveSesn Sitzung speichern + tmenu ToolBar.RunScript Vim-Skript ausführen tmenu ToolBar.Make Erstellen - tmenu ToolBar.Shell Shell Starten - tmenu ToolBar.RunCtags Erstelle Tags Datei + tmenu ToolBar.Shell Shell starten + tmenu ToolBar.RunCtags Erstelle Tag-Datei tmenu ToolBar.TagJump Springe zum Tag tmenu ToolBar.Help Hilfe! - tmenu ToolBar.FindHelp Hilfe Durchsuchen... + tmenu ToolBar.FindHelp Hilfe durchsuchen... endfun endif " }}} TOOLBAR diff --git a/src/ex_cmds.c b/src/ex_cmds.c --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -4287,6 +4287,13 @@ do_sub(eap) if (eap->skip) /* not executing commands, only parsing */ return; + if (!do_count && !curbuf->b_p_ma) + { + /* Substitusion is not allowed in non-'modifiable' buffer */ + EMSG(_(e_modifiable)); + return; + } + if (search_regcomp(pat, RE_SUBST, which_pat, SEARCH_HIS, ®match) == FAIL) { if (do_error) diff --git a/src/ex_cmds.h b/src/ex_cmds.h --- a/src/ex_cmds.h +++ b/src/ex_cmds.h @@ -768,7 +768,7 @@ EX(CMD_rubyfile, "rubyfile", ex_rubyfile EX(CMD_rviminfo, "rviminfo", ex_viminfo, BANG|FILE1|TRLBAR|CMDWIN), EX(CMD_substitute, "substitute", do_sub, - RANGE|WHOLEFOLD|EXTRA|CMDWIN|MODIFY), + RANGE|WHOLEFOLD|EXTRA|CMDWIN), EX(CMD_sNext, "sNext", ex_previous, EXTRA|RANGE|NOTADR|COUNT|BANG|EDITCMD|ARGOPT|TRLBAR), EX(CMD_sargument, "sargument", ex_argument, @@ -828,7 +828,7 @@ EX(CMD_sleep, "sleep", ex_sleep, EX(CMD_slast, "slast", ex_last, EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR), EX(CMD_smagic, "smagic", ex_submagic, - RANGE|WHOLEFOLD|EXTRA|CMDWIN|MODIFY), + RANGE|WHOLEFOLD|EXTRA|CMDWIN), EX(CMD_smap, "smap", ex_map, EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), EX(CMD_smapclear, "smapclear", ex_mapclear, @@ -840,7 +840,7 @@ EX(CMD_snext, "snext", ex_next, EX(CMD_sniff, "sniff", ex_sniff, EXTRA|TRLBAR), EX(CMD_snomagic, "snomagic", ex_submagic, - RANGE|WHOLEFOLD|EXTRA|CMDWIN|MODIFY), + RANGE|WHOLEFOLD|EXTRA|CMDWIN), EX(CMD_snoremap, "snoremap", ex_map, EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), EX(CMD_snoremenu, "snoremenu", ex_menu, diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -1488,7 +1488,7 @@ check_changed_any(hidden) * may cause a redraw. But wait_return() is a no-op when vgetc() * is busy (Quit used from window menu), then make sure we don't * cause a scroll up. */ - if (vgetc_busy) + if (vgetc_busy > 0) { msg_row = cmdline_row; msg_col = 0; @@ -3696,20 +3696,20 @@ get_locale_val(what) * redefined and it doesn't use the arguments. */ loc = setlocale(what, NULL); -# if defined(__BORLANDC__) +# ifdef WIN32 if (loc != NULL) { char_u *p; - /* Borland returns something like "LC_CTYPE=\n" - * Let's try to fix that bug here... */ + /* setocale() returns something like "LC_COLLATE=;LC_..." when + * one of the values (e.g., LC_CTYPE) differs. */ p = vim_strchr(loc, '='); if (p != NULL) { loc = ++p; while (*p != NUL) /* remove trailing newline */ { - if (*p < ' ') + if (*p < ' ' || *p == ';') { *p = NUL; break; @@ -3778,8 +3778,10 @@ get_mess_lang() p = (char_u *)get_locale_val(LC_MESSAGES); # else /* This is necessary for Win32, where LC_MESSAGES is not defined and $LANG - * may be set to the LCID number. */ - p = (char_u *)get_locale_val(LC_ALL); + * may be set to the LCID number. LC_COLLATE is the best guess, LC_TIME + * and LC_MONETARY may be set differently for a Japanese working in the + * US. */ + p = (char_u *)get_locale_val(LC_COLLATE); # endif # else p = mch_getenv((char_u *)"LC_ALL"); diff --git a/src/hardcopy.c b/src/hardcopy.c --- a/src/hardcopy.c +++ b/src/hardcopy.c @@ -2474,7 +2474,7 @@ mch_print_init(psettings, jobname, force double bottom; #ifdef FEAT_MBYTE int props; - int cmap; + int cmap = 0; char_u *p_encoding; struct prt_ps_encoding_S *p_mbenc; struct prt_ps_encoding_S *p_mbenc_first; diff --git a/src/version.h b/src/version.h --- a/src/version.h +++ b/src/version.h @@ -35,6 +35,6 @@ */ #define VIM_VERSION_NODOT "vim70c" #define VIM_VERSION_SHORT "7.0c" -#define VIM_VERSION_MEDIUM "7.0c11 BETA" -#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0c11 BETA (2006 Apr 6)" -#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0c11 BETA (2006 Apr 6, compiled " +#define VIM_VERSION_MEDIUM "7.0c12 BETA" +#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0c12 BETA (2006 Apr 7)" +#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0c12 BETA (2006 Apr 7, compiled "