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.3 / 7.3.346 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  5.1 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.346
  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.3.346
  11. Problem:    It's hard to test netbeans commands.
  12. Solution:   Process netbeans commands after :sleep. (Xavier de Gaye)
  13. Files:        runtime/doc/netbeans.txt, src/ex_docmd.c, src/netbeans.c
  14.  
  15.  
  16. *** ../vim-7.3.345/runtime/doc/netbeans.txt    2010-09-29 17:26:57.000000000 +0200
  17. --- runtime/doc/netbeans.txt    2011-10-20 21:51:41.000000000 +0200
  18. ***************
  19. *** 1,4 ****
  20. ! *netbeans.txt*  For Vim version 7.3.  Last change: 2010 Aug 20
  21.   
  22.   
  23.             VIM REFERENCE MANUAL    by Gordon Prieur et al.
  24. --- 1,4 ----
  25. ! *netbeans.txt*  For Vim version 7.3.  Last change: 2011 Oct 20
  26.   
  27.   
  28.             VIM REFERENCE MANUAL    by Gordon Prieur et al.
  29. ***************
  30. *** 263,268 ****
  31. --- 263,274 ----
  32.   plain UTF-8 text this protocol could also be used with any other communication
  33.   mechanism.
  34.   
  35. + Netbeans messages are processed when Vim is idle, waiting for user input.
  36. + When Vim is run in non-interactive mode, for example when running an automated
  37. + test case that sources a Vim script, the idle loop may not be called often
  38. + enough. In that case, insert |sleep| commands in the Vim script. The |sleep|
  39. + command does invoke Netbeans messages processing.
  40.   6.1 Kinds of messages        |nb-messages|
  41.   6.2 Terms            |nb-terms|
  42.   6.3 Commands            |nb-commands|
  43. ***************
  44. *** 820,826 ****
  45.   ==============================================================================
  46.   7. NetBeans commands                    *netbeans-commands*
  47.   
  48. !                             *:nbstart* *E511*
  49.   :nbs[tart] {connection}    Start a new Netbeans session with {connection} as the
  50.               socket connection parameters.  The format of
  51.               {connection} is described in |netbeans-parameters|.
  52. --- 826,832 ----
  53.   ==============================================================================
  54.   7. NetBeans commands                    *netbeans-commands*
  55.   
  56. !                             *:nbstart* *E511* *E838*
  57.   :nbs[tart] {connection}    Start a new Netbeans session with {connection} as the
  58.               socket connection parameters.  The format of
  59.               {connection} is described in |netbeans-parameters|.
  60. ***************
  61. *** 833,843 ****
  62.               signs.
  63.   
  64.                               *:nbkey*
  65. ! :nb[key] {key}        Pass the {key} to the Vim Controller for processing
  66. ! When a hot-key has been installed with the specialKeys command, this command
  67. ! can be used to generate a hotkey messages to the Vim Controller. The events
  68. ! newDotAndMark, keyCommand and keyAtPos are generated (in this order).
  69.   
  70.   
  71.   ==============================================================================
  72. --- 839,854 ----
  73.               signs.
  74.   
  75.                               *:nbkey*
  76. ! :nb[key] {key}        Pass the {key} to the Vim Controller for processing.
  77. !             When a hot-key has been installed with the specialKeys
  78. !             command, this command can be used to generate a hotkey
  79. !             message to the Vim Controller.
  80. !             This command can also be used to pass any text to the
  81. !             Vim  Controller. It is used by Pyclewn, for example,
  82. !             to build the complete set of gdb commands as Vim user
  83. !             commands.
  84. !             The events newDotAndMark, keyCommand and keyAtPos are
  85. !             generated (in this order).
  86.   
  87.   
  88.   ==============================================================================
  89. *** ../vim-7.3.345/src/ex_docmd.c    2011-09-30 18:35:49.000000000 +0200
  90. --- src/ex_docmd.c    2011-10-20 21:50:06.000000000 +0200
  91. ***************
  92. *** 8205,8210 ****
  93. --- 8205,8216 ----
  94.       {
  95.       ui_delay(msec - done > 1000L ? 1000L : msec - done, TRUE);
  96.       ui_breakcheck();
  97. + #ifdef FEAT_NETBEANS_INTG
  98. +     /* Process the netbeans messages that may have been received in the
  99. +      * call to ui_breakcheck() when the GUI is in use. This may occur when
  100. +      * running a test case. */
  101. +     netbeans_parse_messages();
  102. + #endif
  103.       }
  104.   }
  105.   
  106. *** ../vim-7.3.345/src/netbeans.c    2011-04-11 21:35:03.000000000 +0200
  107. --- src/netbeans.c    2011-10-20 21:47:17.000000000 +0200
  108. ***************
  109. *** 14,19 ****
  110. --- 14,26 ----
  111.    * which are *between* characters, whereas vim uses line number
  112.    * and column number which are *on* characters.
  113.    * See ":help netbeans-protocol" for explanation.
  114. +  *
  115. +  * The Netbeans messages are received and queued in the gui event loop, or in
  116. +  * the select loop when Vim runs in a terminal. These messages are processed
  117. +  * by netbeans_parse_messages() which is invoked in the idle loop when Vim is
  118. +  * waiting for user input. The function netbeans_parse_messages() is also
  119. +  * called from the ":sleep" command, to allow the execution of test cases that
  120. +  * may not invoke the idle loop.
  121.    */
  122.   
  123.   #include "vim.h"
  124. *** ../vim-7.3.345/src/version.c    2011-10-20 21:57:43.000000000 +0200
  125. --- src/version.c    2011-10-20 21:50:23.000000000 +0200
  126. ***************
  127. *** 716,717 ****
  128. --- 716,719 ----
  129.   {   /* Add new patch number below this line */
  130. + /**/
  131. +     346,
  132.   /**/
  133.  
  134. -- 
  135. From "know your smileys":
  136.  ...---...   SOS
  137.  
  138.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  139. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  140. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  141.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  142.