Karsten Hopp 13d1cd
To: vim_dev@googlegroups.com
Karsten Hopp 13d1cd
Subject: Patch 7.3.860
Karsten Hopp 13d1cd
Fcc: outbox
Karsten Hopp 13d1cd
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 13d1cd
Mime-Version: 1.0
Karsten Hopp 13d1cd
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 13d1cd
Content-Transfer-Encoding: 8bit
Karsten Hopp 13d1cd
------------
Karsten Hopp 13d1cd
Karsten Hopp 13d1cd
Patch 7.3.860
Karsten Hopp 13d1cd
Problem:    When using --remote-expr try/catch does not work. (Andrey Radev)
Karsten Hopp 13d1cd
Solution:   Set emsg_silent instead of emsg_skip.
Karsten Hopp 13d1cd
Files:	    src/main.c
Karsten Hopp 13d1cd
Karsten Hopp 13d1cd
Karsten Hopp 13d1cd
*** ../vim-7.3.859/src/main.c	2013-03-13 19:29:24.000000000 +0100
Karsten Hopp 13d1cd
--- src/main.c	2013-03-13 19:46:03.000000000 +0100
Karsten Hopp 13d1cd
***************
Karsten Hopp 13d1cd
*** 4025,4032 ****
Karsten Hopp 13d1cd
  
Karsten Hopp 13d1cd
  /*
Karsten Hopp 13d1cd
   * Evaluate an expression that the client sent to a string.
Karsten Hopp 13d1cd
-  * Handles disabling error messages and disables debugging, otherwise Vim
Karsten Hopp 13d1cd
-  * hangs, waiting for "cont" to be typed.
Karsten Hopp 13d1cd
   */
Karsten Hopp 13d1cd
      char_u *
Karsten Hopp 13d1cd
  eval_client_expr_to_string(expr)
Karsten Hopp 13d1cd
--- 4025,4030 ----
Karsten Hopp 13d1cd
***************
Karsten Hopp 13d1cd
*** 4036,4050 ****
Karsten Hopp 13d1cd
      int		save_dbl = debug_break_level;
Karsten Hopp 13d1cd
      int		save_ro = redir_off;
Karsten Hopp 13d1cd
  
Karsten Hopp 13d1cd
      debug_break_level = -1;
Karsten Hopp 13d1cd
      redir_off = 0;
Karsten Hopp 13d1cd
!     ++emsg_skip;
Karsten Hopp 13d1cd
  
Karsten Hopp 13d1cd
      res = eval_to_string(expr, NULL, TRUE);
Karsten Hopp 13d1cd
  
Karsten Hopp 13d1cd
      debug_break_level = save_dbl;
Karsten Hopp 13d1cd
      redir_off = save_ro;
Karsten Hopp 13d1cd
!     --emsg_skip;
Karsten Hopp 13d1cd
  
Karsten Hopp 13d1cd
      /* A client can tell us to redraw, but not to display the cursor, so do
Karsten Hopp 13d1cd
       * that here. */
Karsten Hopp 13d1cd
--- 4034,4054 ----
Karsten Hopp 13d1cd
      int		save_dbl = debug_break_level;
Karsten Hopp 13d1cd
      int		save_ro = redir_off;
Karsten Hopp 13d1cd
  
Karsten Hopp 13d1cd
+      /* Disable debugging, otherwise Vim hangs, waiting for "cont" to be
Karsten Hopp 13d1cd
+       * typed. */
Karsten Hopp 13d1cd
      debug_break_level = -1;
Karsten Hopp 13d1cd
      redir_off = 0;
Karsten Hopp 13d1cd
!     /* Do not display error message, otherwise Vim hangs, waiting for "cont"
Karsten Hopp 13d1cd
!      * to be typed.  Do generate errors so that try/catch works. */
Karsten Hopp 13d1cd
!     ++emsg_silent;
Karsten Hopp 13d1cd
  
Karsten Hopp 13d1cd
      res = eval_to_string(expr, NULL, TRUE);
Karsten Hopp 13d1cd
  
Karsten Hopp 13d1cd
      debug_break_level = save_dbl;
Karsten Hopp 13d1cd
      redir_off = save_ro;
Karsten Hopp 13d1cd
!     --emsg_silent;
Karsten Hopp 13d1cd
!     if (emsg_silent < 0)
Karsten Hopp 13d1cd
! 	emsg_silent = 0;
Karsten Hopp 13d1cd
  
Karsten Hopp 13d1cd
      /* A client can tell us to redraw, but not to display the cursor, so do
Karsten Hopp 13d1cd
       * that here. */
Karsten Hopp 13d1cd
*** ../vim-7.3.859/src/version.c	2013-03-13 19:29:24.000000000 +0100
Karsten Hopp 13d1cd
--- src/version.c	2013-03-13 20:09:47.000000000 +0100
Karsten Hopp 13d1cd
***************
Karsten Hopp 13d1cd
*** 730,731 ****
Karsten Hopp 13d1cd
--- 730,733 ----
Karsten Hopp 13d1cd
  {   /* Add new patch number below this line */
Karsten Hopp 13d1cd
+ /**/
Karsten Hopp 13d1cd
+     860,
Karsten Hopp 13d1cd
  /**/
Karsten Hopp 13d1cd
Karsten Hopp 13d1cd
-- 
Karsten Hopp 13d1cd
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 13d1cd
42. Your virtual girlfriend finds a new net sweetheart with a larger bandwidth.
Karsten Hopp 13d1cd
Karsten Hopp 13d1cd
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 13d1cd
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 13d1cd
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 13d1cd
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///