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 / 7.4 / 7.4.314 < prev    next >
Encoding:
Internet Message Format  |  2014-05-27  |  5.7 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.314
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.4.314
  11. Problem:    Completion messages can get in the way of a plugin.
  12. Solution:   Add 'c' flag to 'shortmess' option. (Shougo Matsu)
  13. Files:        runtime/doc/options.txt, src/edit.c, src/option.h, src/screen.c
  14.  
  15.  
  16. *** ../vim-7.4.313/runtime/doc/options.txt    2014-03-12 18:55:52.096906804 +0100
  17. --- runtime/doc/options.txt    2014-05-28 20:55:14.640305211 +0200
  18. ***************
  19. *** 6252,6257 ****
  20. --- 6254,6262 ----
  21.         A    don't give the "ATTENTION" message when an existing swap file
  22.           is found.
  23.         I    don't give the intro message when starting Vim |:intro|.
  24. +       c    don't give |ins-completion-menu| messages.  For example,
  25. +         "-- XXX completion (YYY)", "match 1 of 2", "The only match",
  26. +         "Pattern not found", "Back at original", etc.
  27.   
  28.       This gives you the opportunity to avoid that a change between buffers
  29.       requires you to hit <Enter>, but still gives as useful a message as
  30. *** ../vim-7.4.313/src/edit.c    2014-04-29 14:44:31.515875819 +0200
  31. --- src/edit.c    2014-05-28 21:33:57.588325545 +0200
  32. ***************
  33. *** 3854,3860 ****
  34.           ins_compl_free();
  35.           compl_started = FALSE;
  36.           compl_matches = 0;
  37. !         msg_clr_cmdline();        /* necessary for "noshowmode" */
  38.           ctrl_x_mode = 0;
  39.           compl_enter_selects = FALSE;
  40.           if (edit_submode != NULL)
  41. --- 3854,3861 ----
  42.           ins_compl_free();
  43.           compl_started = FALSE;
  44.           compl_matches = 0;
  45. !         if (!shortmess(SHM_COMPLETIONMENU))
  46. !         msg_clr_cmdline();    /* necessary for "noshowmode" */
  47.           ctrl_x_mode = 0;
  48.           compl_enter_selects = FALSE;
  49.           if (edit_submode != NULL)
  50. ***************
  51. *** 5285,5291 ****
  52.           {
  53.           ctrl_x_mode = 0;
  54.           edit_submode = NULL;
  55. !         msg_clr_cmdline();
  56.           return FAIL;
  57.           }
  58.   
  59. --- 5286,5293 ----
  60.           {
  61.           ctrl_x_mode = 0;
  62.           edit_submode = NULL;
  63. !         if (!shortmess(SHM_COMPLETIONMENU))
  64. !             msg_clr_cmdline();
  65.           return FAIL;
  66.           }
  67.   
  68. ***************
  69. *** 5544,5558 ****
  70.   
  71.       /* Show a message about what (completion) mode we're in. */
  72.       showmode();
  73. !     if (edit_submode_extra != NULL)
  74.       {
  75. !     if (!p_smd)
  76. !         msg_attr(edit_submode_extra,
  77. !             edit_submode_highl < HLF_COUNT
  78. !             ? hl_attr(edit_submode_highl) : 0);
  79.       }
  80. -     else
  81. -     msg_clr_cmdline();    /* necessary for "noshowmode" */
  82.   
  83.       /* Show the popup menu, unless we got interrupted. */
  84.       if (!compl_interrupted)
  85. --- 5546,5563 ----
  86.   
  87.       /* Show a message about what (completion) mode we're in. */
  88.       showmode();
  89. !     if (!shortmess(SHM_COMPLETIONMENU))
  90.       {
  91. !     if (edit_submode_extra != NULL)
  92. !     {
  93. !         if (!p_smd)
  94. !         msg_attr(edit_submode_extra,
  95. !             edit_submode_highl < HLF_COUNT
  96. !             ? hl_attr(edit_submode_highl) : 0);
  97. !     }
  98. !     else
  99. !         msg_clr_cmdline();    /* necessary for "noshowmode" */
  100.       }
  101.   
  102.       /* Show the popup menu, unless we got interrupted. */
  103.       if (!compl_interrupted)
  104. *** ../vim-7.4.313/src/option.h    2014-03-23 15:12:29.943264337 +0100
  105. --- src/option.h    2014-05-28 21:34:25.244325787 +0200
  106. ***************
  107. *** 212,218 ****
  108.   #define SHM_SEARCH    's'        /* no search hit bottom messages */
  109.   #define SHM_ATTENTION    'A'        /* no ATTENTION messages */
  110.   #define SHM_INTRO    'I'        /* intro messages */
  111. ! #define SHM_ALL        "rmfixlnwaWtToOsAI" /* all possible flags for 'shm' */
  112.   
  113.   /* characters for p_go: */
  114.   #define GO_ASEL        'a'        /* autoselect */
  115. --- 212,219 ----
  116.   #define SHM_SEARCH    's'        /* no search hit bottom messages */
  117.   #define SHM_ATTENTION    'A'        /* no ATTENTION messages */
  118.   #define SHM_INTRO    'I'        /* intro messages */
  119. ! #define SHM_COMPLETIONMENU  'c'        /* completion menu messages */
  120. ! #define SHM_ALL        "rmfixlnwaWtToOsAIc" /* all possible flags for 'shm' */
  121.   
  122.   /* characters for p_go: */
  123.   #define GO_ASEL        'a'        /* autoselect */
  124. *** ../vim-7.4.313/src/screen.c    2014-05-22 16:05:16.338382204 +0200
  125. --- src/screen.c    2014-05-28 20:53:20.488304211 +0200
  126. ***************
  127. *** 42,48 ****
  128.    *
  129.    * The part of the buffer that is displayed in a window is set with:
  130.    * - w_topline (first buffer line in window)
  131. !  * - w_topfill (filler line above the first line)
  132.    * - w_leftcol (leftmost window cell in window),
  133.    * - w_skipcol (skipped window cells of first line)
  134.    *
  135. --- 42,48 ----
  136.    *
  137.    * The part of the buffer that is displayed in a window is set with:
  138.    * - w_topline (first buffer line in window)
  139. !  * - w_topfill (filler lines above the first line)
  140.    * - w_leftcol (leftmost window cell in window),
  141.    * - w_skipcol (skipped window cells of first line)
  142.    *
  143. ***************
  144. *** 9683,9689 ****
  145.           }
  146.   #endif
  147.   #ifdef FEAT_INS_EXPAND
  148. !         if (edit_submode != NULL)        /* CTRL-X in Insert mode */
  149.           {
  150.           /* These messages can get long, avoid a wrap in a narrow
  151.            * window.  Prefer showing edit_submode_extra. */
  152. --- 9683,9690 ----
  153.           }
  154.   #endif
  155.   #ifdef FEAT_INS_EXPAND
  156. !         /* CTRL-X in Insert mode */
  157. !         if (edit_submode != NULL && !shortmess(SHM_COMPLETIONMENU))
  158.           {
  159.           /* These messages can get long, avoid a wrap in a narrow
  160.            * window.  Prefer showing edit_submode_extra. */
  161. *** ../vim-7.4.313/src/version.c    2014-05-28 20:31:37.504292805 +0200
  162. --- src/version.c    2014-05-28 20:54:27.664304800 +0200
  163. ***************
  164. *** 736,737 ****
  165. --- 736,739 ----
  166.   {   /* Add new patch number below this line */
  167. + /**/
  168. +     314,
  169.   /**/
  170.  
  171. -- 
  172. hundred-and-one symptoms of being an internet addict:
  173. 227. You sleep next to your monitor.  Or on top of it.
  174.  
  175.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  176. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  177. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  178.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  179.