08b2fd2
To: vim_dev@googlegroups.com
08b2fd2
Subject: Patch 7.3.098
08b2fd2
Fcc: outbox
08b2fd2
From: Bram Moolenaar <Bram@moolenaar.net>
08b2fd2
Mime-Version: 1.0
08b2fd2
Content-Type: text/plain; charset=UTF-8
08b2fd2
Content-Transfer-Encoding: 8bit
08b2fd2
------------
08b2fd2
08b2fd2
Patch 7.3.098
08b2fd2
Problem:    Function that ignores error still causes called_emsg to be set.
08b2fd2
	    E.g. when expand() fails the status line is disabled.
08b2fd2
Solution:   Move check for emsg_not_now() up. (James Vega)
08b2fd2
Files:	    src/message.c
08b2fd2
08b2fd2
08b2fd2
*** ../vim-7.3.097/src/message.c	2010-10-20 21:22:17.000000000 +0200
08b2fd2
--- src/message.c	2011-01-04 19:19:04.000000000 +0100
08b2fd2
***************
08b2fd2
*** 569,574 ****
08b2fd2
--- 569,578 ----
08b2fd2
      int		severe;
08b2fd2
  #endif
08b2fd2
  
08b2fd2
+     /* Skip this if not giving error messages at the moment. */
08b2fd2
+     if (emsg_not_now())
08b2fd2
+ 	return TRUE;
08b2fd2
+ 
08b2fd2
      called_emsg = TRUE;
08b2fd2
      ex_exitval = 1;
08b2fd2
  
08b2fd2
***************
08b2fd2
*** 581,590 ****
08b2fd2
      emsg_severe = FALSE;
08b2fd2
  #endif
08b2fd2
  
08b2fd2
-     /* Skip this if not giving error messages at the moment. */
08b2fd2
-     if (emsg_not_now())
08b2fd2
- 	return TRUE;
08b2fd2
- 
08b2fd2
      if (!emsg_off || vim_strchr(p_debug, 't') != NULL)
08b2fd2
      {
08b2fd2
  #ifdef FEAT_EVAL
08b2fd2
--- 585,590 ----
08b2fd2
*** ../vim-7.3.097/src/version.c	2011-01-04 19:03:22.000000000 +0100
08b2fd2
--- src/version.c	2011-01-04 19:24:30.000000000 +0100
08b2fd2
***************
08b2fd2
*** 716,717 ****
08b2fd2
--- 716,719 ----
08b2fd2
  {   /* Add new patch number below this line */
08b2fd2
+ /**/
08b2fd2
+     98,
08b2fd2
  /**/
08b2fd2
08b2fd2
-- 
08b2fd2
Ed's Radiator Shop: The Best Place in Town to Take a Leak.
08b2fd2
08b2fd2
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
08b2fd2
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
08b2fd2
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
08b2fd2
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///