]> granicus.if.org Git - vim/commitdiff
updated for version 7.0174
authorBram Moolenaar <Bram@vim.org>
Mon, 19 Dec 2005 22:14:58 +0000 (22:14 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 19 Dec 2005 22:14:58 +0000 (22:14 +0000)
12 files changed:
runtime/doc/eval.txt
runtime/doc/tags
runtime/doc/todo.txt
runtime/doc/version7.txt
runtime/lang/menu_czech_czech_republic.1250.vim
src/edit.c
src/ex_getln.c
src/misc1.c
src/ops.c
src/proto/fileio.pro
src/structs.h
src/version.h

index f09e2ef83a190f876f0f7f28e2b6e59dd6a192d0..47be23fc2da307a467ef81c26dbbeabff3c23b4b 100644 (file)
@@ -1,4 +1,4 @@
-*eval.txt*      For Vim version 7.0aa.  Last change: 2005 Dec 12
+*eval.txt*      For Vim version 7.0aa.  Last change: 2005 Dec 19
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -2200,6 +2200,12 @@ exists({expr})   The result is a Number, which is non-zero if {expr} is
                                        literally and compared to the
                                        autocommand patterns character by
                                        character)
+                       #group          autocommand group exists
+                       #group#event    autocommand defined for this group and
+                                       event.
+                       #group#event#pattern
+                                       autocommand defined for this group, 
+                                       event and pattern.
                For checking for a supported feature use |has()|.
 
                Examples: >
@@ -2209,8 +2215,11 @@ exists({expr})   The result is a Number, which is non-zero if {expr} is
                        exists("*s:MyFunc")
                        exists("bufcount")
                        exists(":Make")
-                       exists("#CursorHold");
+                       exists("#CursorHold")
                        exists("#BufReadPre#*.gz")
+                       exists("#filetypeindent")
+                       exists("#filetypeindent#FileType")
+                       exists("#filetypeindent#FileType#*")
 <              There must be no space between the symbol (&/$/*/#) and the
                name.
                Note that the argument must be a string, not the name of the
@@ -4610,7 +4619,7 @@ all_builtin_terms Compiled with all builtin terminals enabled.
 amiga                  Amiga version of Vim.
 arabic                 Compiled with Arabic support |Arabic|.
 arp                    Compiled with ARP support (Amiga).
-autocmd                        Compiled with autocommands support.
+autocmd                        Compiled with autocommand support. |autocommand|
 balloon_eval           Compiled with |balloon-eval| support.
 balloon_multiline      GUI supports multiline balloons.
 beos                   BeOS version of Vim.
index 300e3b4d20fdc5b82f8ccdda2f04977654d0cceb..c2ec052d68b5d31a695d4d61883acb97acf7589b 100644 (file)
@@ -5335,6 +5335,7 @@ 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*
index 8b27dde47b41212a79cd0dab61dc532b84d9af40..30bc26d2bcf26cb0e40ee23bf041a3a321a8445b 100644 (file)
@@ -1,4 +1,4 @@
-*todo.txt*      For Vim version 7.0aa.  Last change: 2005 Dec 18
+*todo.txt*      For Vim version 7.0aa.  Last change: 2005 Dec 19
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -59,6 +59,10 @@ spelling:
 - Have "zg" and "zw" report the file that was modified. (Marvin Renich)
 - Add a command like "zg" that selects one of the files 'spellfile'.
 
+GTK: get an X error while exiting quickly after starting (running the tests).
+Caused by new GTK library?
+    X Error: BadWindow (invalid Window parameter) 3
+
 Support saving and restoring session for X windows?  It should work to do
 ":mksession" and use "-S fname" for the restart command.  The
 gui_x11_wm_protocol_handler() already takes care of the rest.
@@ -116,6 +120,8 @@ escape special characters ";&<>(){}". (Adri Verhoef)
 
 Are there more commands where v:swapcommand can be set to something useful?
 
+Put autocommand event names in a hashtable for faster lookup?
+
 Awaiting response:
 -   Win32: tearoff menu window should have a scrollbar when it's taller than
     the screen.
index b886ead10fdd497a9797e00d96f028d2a6f53e63..474647d5ac3007c234c52aa6acbc84e4b48b13f4 100644 (file)
@@ -1,4 +1,4 @@
-*version7.txt*  For Vim version 7.0aa.  Last change: 2005 Dec 18
+*version7.txt*  For Vim version 7.0aa.  Last change: 2005 Dec 19
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -916,6 +916,9 @@ then a cursor key.  Now keep the previously inserted text if nothing is
 inserted after the CTRL-O.  Allows using CTRL-O commands to move the cursor
 without losing the last inserted text.
 
+The exists() function now supports checking for autocmd group definition.
+(Yegappan Lakshmanan)
+
 ==============================================================================
 COMPILE TIME CHANGES                                   *compile-changes-7*
 
index 408d6ca949543a91aea75b304e5a125cd2b9443b..c63c1ab23c73e19c6fec75e3f0ebd31911cd5aad 100644 (file)
@@ -88,6 +88,23 @@ menutrans &Jump\ to\ this\ tag<Tab>g^]       &Sko
 menutrans Jump\ &back<Tab>^T           Skoèit\ &zpìt<Tab>^T
 menutrans Build\ &Tags\ File           &Vytvoøit\ soubor\ tagù
 
+menutrans &Spelling                    &Kontrola\ pravopisu
+menutrans &Spell\ Check\ On            Kontrola\ pravopisu\ &zapnuta
+menutrans Spell\ Check\ &Off           Kontrola\ pravopisu\ &vypnuta
+menutrans To\ Next\ error<Tab>]s       &Dal\9aí\ chyba<Tab>]s
+menutrans To\ Previous\ error<Tab>[s   &Pøedchozí\ chyba<Tab>[s
+menutrans Suggest\ Corrections<Tab>z?  &Návrh\ oprav<Tab>z?
+menutrans Repeat\ correction<Tab>:spellrepall  Zopakovat\ &opravu<Tab>:spellrepall
+menutrans Set\ language\ to\ "en"      Nastav\ jazyk\ na\ "en"
+menutrans Set\ language\ to\ "en_au"   Nastav\ jazyk\ na\ "en_au"
+menutrans Set\ language\ to\ "en_ca"   Nastav\ jazyk\ na\ "en_ca"
+menutrans Set\ language\ to\ "en_gb"   Nastav\ jazyk\ na\ "en_gb"
+menutrans Set\ language\ to\ "en_nz"   Nastav\ jazyk\ na\ "en_nz"
+menutrans Set\ language\ to\ "en_us"   Nastav\ jazyk\ na\ "en_us"
+menutrans Set\ language\ to\ "cz"      Nastav\ jazyk\ na\ "cz"
+menutrans Set\ language\ to\ "cs_cz"   Nastav\ jazyk\ na\ "cs_cz"
+menutrans &Find\ More\ Languages       Nalézt\ dal\9aí\ &jazyky
+
 menutrans &Folding                     &Foldy
 menutrans &Enable/Disable\ folds<Tab>zi &Ano/Ne<Tab>zi
 menutrans &View\ Cursor\ Line<Tab>zv   &Zobrazit\ øádek\ kurzoru<Tab>zv
@@ -119,6 +136,7 @@ menutrans &Previous\ Error<Tab>:cp  &P
 menutrans &Older\ List<Tab>:cold       Sta&r\9aí\ seznam<Tab>:cold
 menutrans N&ewer\ List<Tab>:cnew       N&ovìj\9aí\ seznam<Tab>:cnew
 menutrans Error\ &Window               Chybové\ o&kno
+menutrans SeT\ Compiler                        Nas&tavení\ kompilátoru
 menutrans &Update<Tab>:cwin            O&bnovit<Tab>:cwin
 menutrans &Open<Tab>:copen             &Otevøít<Tab>:copen
 menutrans &Close<Tab>:cclose           &Zavøít<Tab>:cclose
index 53eabe667f22aea599af83ed370aac3ca35c8f3b..f4f3f9a77092f46e6daf3046a4a7b677da6d6934 100644 (file)
@@ -1045,8 +1045,10 @@ doESCkey:
        case K_S_UP:    /* <S-Up> */
        case K_PAGEUP:
        case K_KPAGEUP:
+#ifdef FEAT_INS_EXPAND
            if (pum_visible())
                goto docomplete;
+#endif
            ins_pageup();
            break;
 
@@ -1060,8 +1062,10 @@ doESCkey:
        case K_S_DOWN:  /* <S-Down> */
        case K_PAGEDOWN:
        case K_KPAGEDOWN:
+#ifdef FEAT_INS_EXPAND
            if (pum_visible())
                goto docomplete;
+#endif
            ins_pagedown();
            break;
 
@@ -5073,6 +5077,7 @@ stop_arrow()
 #endif
        ResetRedobuff();
        AppendToRedobuff((char_u *)"1i");   /* pretend we start an insertion */
+       new_insert_skip = 2;
     }
     else if (ins_need_undo)
     {
index bc5aca560a1564058a0e7d2972de2d86c3ec6995..508c563a3903905bc984699d5ed9cbd85921cd2a 100644 (file)
@@ -1105,6 +1105,7 @@ getcmdline(firstc, count, indent)
                {
                    cmdline_paste(c, i == Ctrl_R);
 
+#ifdef FEAT_EVAL
                    /* When there was a serious error abort getting the
                     * command line. */
                    if (aborting())
@@ -1113,7 +1114,7 @@ getcmdline(firstc, count, indent)
                                           putting it in history */
                        goto returncmd; /* back to cmd mode */
                    }
-
+#endif
                    KeyTyped = FALSE;   /* Don't do p_wc completion. */
 #ifdef FEAT_EVAL
                    if (new_cmdpos >= 0)
index 85b81fd4ab76a6e71fb54a2559823c72fed84742..a5a1805c2b380ae66acb372bac01e414d190a101 100644 (file)
@@ -2145,6 +2145,7 @@ del_chars(count, fixpos)
  *
  * return FAIL for failure, OK otherwise
  */
+/*ARGSUSED*/
     int
 del_bytes(count, fixpos, use_delcombine)
     long       count;
index 73976d1621e7767ab39d528ab02060d657eaf226..0c1e853de98eba2b26e8f3afa76681b3d33efd7d 100644 (file)
--- a/src/ops.c
+++ b/src/ops.c
@@ -1844,7 +1844,11 @@ op_delete(oap)
            }
 #endif
            (void)del_bytes((long)n, restart_edit == NUL && !virtual_op,
-                               oap->op_type == OP_DELETE && !oap->is_VIsual);
+                               oap->op_type == OP_DELETE
+#ifdef FEAT_VISUAL
+                                   && !oap->is_VIsual
+#endif
+                                                       );
        }
        else                            /* delete characters between lines */
        {
@@ -1865,7 +1869,11 @@ op_delete(oap)
            curwin->w_cursor.col = 0;
            (void)del_bytes((long)(oap->end.col + 1 - !oap->inclusive),
                                           restart_edit == NUL && !virtual_op,
-                               oap->op_type == OP_DELETE && !oap->is_VIsual);
+                               oap->op_type == OP_DELETE
+#ifdef FEAT_VISUAL
+                                       && !oap->is_VIsual
+#endif
+                                                           );
            curwin->w_cursor = curpos;          /* restore curwin->w_cursor */
 
            (void)do_join(FALSE);
index 4348d36c96d64110e04c9f76e87429e81489871b..816de42cb5f3e4a148f893f3d2007bc0fd8b897b 100644 (file)
@@ -41,7 +41,7 @@ int has_autocmd __ARGS((EVENT_T event, char_u *sfname, buf_T *buf));
 char_u *get_augroup_name __ARGS((expand_T *xp, int idx));
 char_u *set_context_in_autocmd __ARGS((expand_T *xp, char_u *arg, int doautocmd));
 char_u *get_event_name __ARGS((expand_T *xp, int idx));
-int au_exists __ARGS((char_u *name, char_u *name_end, char_u *pattern));
+int au_exists __ARGS((char_u *arg));
 int match_file_pat __ARGS((char_u *pattern, regprog_T *prog, char_u *fname, char_u *sfname, char_u *tail, int allow_dirs));
 int match_file_list __ARGS((char_u *list, char_u *sfname, char_u *ffname));
 char_u *file_pat_to_reg_pat __ARGS((char_u *pat, char_u *pat_end, char *allow_dirs, int no_bslash));
index 208b2d04932619d3cbabdd9ad0240ff8c9f01f07..5b91cecb64c9a17ea198fdf8b9dc98ca63abc671 100644 (file)
@@ -1392,6 +1392,7 @@ struct file_buffer
     int                b_start_ffc;    /* first char of 'ff' when edit started */
 #ifdef FEAT_MBYTE
     char_u     *b_start_fenc;  /* 'fileencoding' when edit started or NULL */
+    int                b_bad_char;     /* "++bad=" argument when edit started or 0 */
 #endif
 
 #ifdef FEAT_EVAL
index a429308856b7b055743e77cd958b52198c92f2d5..cc5a45b0d865ab402d66e402d3dcb8a587a24bfa 100644 (file)
@@ -36,5 +36,5 @@
 #define VIM_VERSION_NODOT      "vim70aa"
 #define VIM_VERSION_SHORT      "7.0aa"
 #define VIM_VERSION_MEDIUM     "7.0aa ALPHA"
-#define VIM_VERSION_LONG       "VIM - Vi IMproved 7.0aa ALPHA (2005 Dec 18)"
-#define VIM_VERSION_LONG_DATE  "VIM - Vi IMproved 7.0aa ALPHA (2005 Dec 18, compiled "
+#define VIM_VERSION_LONG       "VIM - Vi IMproved 7.0aa ALPHA (2005 Dec 19)"
+#define VIM_VERSION_LONG_DATE  "VIM - Vi IMproved 7.0aa ALPHA (2005 Dec 19, compiled "