home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.2.326 < prev    next >
Encoding:
Internet Message Format  |  2004-03-06  |  3.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.326
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.2.326
  11. Problem:    ":windo set syntax=foo" doesn't work.  (Tim Chase)
  12. Solution:   Don't change 'eventignore' for ":windo".
  13. Files:        src/ex_cmds2.c
  14.  
  15.  
  16. *** ../vim-6.2.325/src/ex_cmds2.c    Sun Feb 29 21:06:13 2004
  17. --- src/ex_cmds2.c    Sun Mar  7 19:30:37 2004
  18. ***************
  19. *** 1581,1587 ****
  20.       buf_T    *buf;
  21.       int        next_fnum = 0;
  22.   #if defined(FEAT_AUTOCMD) && defined(FEAT_SYN_HL)
  23. !     char_u    *save_ei = vim_strsave(p_ei);
  24.       char_u    *new_ei;
  25.   #endif
  26.   
  27. --- 1581,1587 ----
  28.       buf_T    *buf;
  29.       int        next_fnum = 0;
  30.   #if defined(FEAT_AUTOCMD) && defined(FEAT_SYN_HL)
  31. !     char_u    *save_ei = NULL;
  32.       char_u    *new_ei;
  33.   #endif
  34.   
  35. ***************
  36. *** 1594,1605 ****
  37.   #endif
  38.   
  39.   #if defined(FEAT_AUTOCMD) && defined(FEAT_SYN_HL)
  40. !     new_ei = vim_strnsave(p_ei, (int)STRLEN(p_ei) + 8);
  41. !     if (new_ei != NULL)
  42.       {
  43. !     STRCAT(new_ei, ",Syntax");
  44. !     set_string_option_direct((char_u *)"ei", -1, new_ei, OPT_FREE);
  45. !     vim_free(new_ei);
  46.       }
  47.   #endif
  48.   
  49. --- 1594,1615 ----
  50.   #endif
  51.   
  52.   #if defined(FEAT_AUTOCMD) && defined(FEAT_SYN_HL)
  53. !     if (eap->cmdidx != CMD_windo)
  54.       {
  55. !     /* Add "Syntax" to 'eventignore' to skip loading syntax highlighting
  56. !      * for every buffer loaded into the window.  A considerable speed
  57. !      * improvement. */
  58. !     save_ei = vim_strsave(p_ei);
  59. !     if (save_ei != NULL)
  60. !     {
  61. !         new_ei = vim_strnsave(p_ei, (int)STRLEN(p_ei) + 8);
  62. !         if (new_ei != NULL)
  63. !         {
  64. !         STRCAT(new_ei, ",Syntax");
  65. !         set_string_option_direct((char_u *)"ei", -1, new_ei, OPT_FREE);
  66. !         vim_free(new_ei);
  67. !         }
  68. !     }
  69.       }
  70.   #endif
  71.   
  72. ***************
  73. *** 1692,1704 ****
  74.       }
  75.   
  76.   #if defined(FEAT_AUTOCMD) && defined(FEAT_SYN_HL)
  77. !     if (new_ei != NULL)
  78.       {
  79.       set_string_option_direct((char_u *)"ei", -1, save_ei, OPT_FREE);
  80.       apply_autocmds(EVENT_SYNTAX, curbuf->b_p_syn,
  81. !                          curbuf->b_fname, TRUE, curbuf);
  82.       }
  83. -     vim_free(save_ei);
  84.   #endif
  85.   }
  86.   
  87. --- 1702,1714 ----
  88.       }
  89.   
  90.   #if defined(FEAT_AUTOCMD) && defined(FEAT_SYN_HL)
  91. !     if (save_ei != NULL)
  92.       {
  93.       set_string_option_direct((char_u *)"ei", -1, save_ei, OPT_FREE);
  94.       apply_autocmds(EVENT_SYNTAX, curbuf->b_p_syn,
  95. !                            curbuf->b_fname, TRUE, curbuf);
  96. !     vim_free(save_ei);
  97.       }
  98.   #endif
  99.   }
  100.   
  101. *** ../vim-6.2.325/src/version.c    Sun Mar  7 19:33:37 2004
  102. --- src/version.c    Sun Mar  7 19:31:07 2004
  103. ***************
  104. *** 639,640 ****
  105. --- 639,642 ----
  106.   {   /* Add new patch number below this line */
  107. + /**/
  108. +     326,
  109.   /**/
  110.  
  111. -- 
  112. "I love deadlines.  I especially like the whooshing sound they
  113. make as they go flying by."
  114.                          -- Douglas Adams
  115.  
  116.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  117. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  118. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  119.  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
  120.