Karsten Hopp 290922
To: vim-dev@vim.org
Karsten Hopp 290922
Subject: patch 7.1.013
Karsten Hopp 290922
Fcc: outbox
Karsten Hopp 290922
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 290922
Mime-Version: 1.0
Karsten Hopp 290922
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 290922
Content-Transfer-Encoding: 8bit
Karsten Hopp 290922
------------
Karsten Hopp 290922
Karsten Hopp 290922
Patch 7.1.013
Karsten Hopp 290922
Problem:    ":syn include" only loads the first file, while it is documented
Karsten Hopp 290922
	    as doing the equivalent of ":runtime!".
Karsten Hopp 290922
Solution:   Change the argument to source_runtime(). (James Vega)
Karsten Hopp 290922
Files:	    src/syntax.c
Karsten Hopp 290922
Karsten Hopp 290922
Karsten Hopp 290922
*** ../vim-7.1.012/src/syntax.c	Thu May 10 20:54:33 2007
Karsten Hopp 290922
--- src/syntax.c	Sun Jun 17 22:03:30 2007
Karsten Hopp 290922
***************
Karsten Hopp 290922
*** 4460,4467 ****
Karsten Hopp 290922
      current_syn_inc_tag = ++running_syn_inc_tag;
Karsten Hopp 290922
      prev_toplvl_grp = curbuf->b_syn_topgrp;
Karsten Hopp 290922
      curbuf->b_syn_topgrp = sgl_id;
Karsten Hopp 290922
!     if (source ? do_source(eap->arg, FALSE, FALSE) == FAIL
Karsten Hopp 290922
! 				: source_runtime(eap->arg, DOSO_NONE) == FAIL)
Karsten Hopp 290922
  	EMSG2(_(e_notopen), eap->arg);
Karsten Hopp 290922
      curbuf->b_syn_topgrp = prev_toplvl_grp;
Karsten Hopp 290922
      current_syn_inc_tag = prev_syn_inc_tag;
Karsten Hopp 290922
--- 4460,4467 ----
Karsten Hopp 290922
      current_syn_inc_tag = ++running_syn_inc_tag;
Karsten Hopp 290922
      prev_toplvl_grp = curbuf->b_syn_topgrp;
Karsten Hopp 290922
      curbuf->b_syn_topgrp = sgl_id;
Karsten Hopp 290922
!     if (source ? do_source(eap->arg, FALSE, DOSO_NONE) == FAIL
Karsten Hopp 290922
! 				: source_runtime(eap->arg, TRUE) == FAIL)
Karsten Hopp 290922
  	EMSG2(_(e_notopen), eap->arg);
Karsten Hopp 290922
      curbuf->b_syn_topgrp = prev_toplvl_grp;
Karsten Hopp 290922
      current_syn_inc_tag = prev_syn_inc_tag;
Karsten Hopp 290922
*** ../vim-7.1.012/src/version.c	Tue Jun 19 20:56:52 2007
Karsten Hopp 290922
--- src/version.c	Thu Jun 28 11:58:25 2007
Karsten Hopp 290922
***************
Karsten Hopp 290922
*** 668,669 ****
Karsten Hopp 290922
--- 668,671 ----
Karsten Hopp 290922
  {   /* Add new patch number below this line */
Karsten Hopp 290922
+ /**/
Karsten Hopp 290922
+     13,
Karsten Hopp 290922
  /**/
Karsten Hopp 290922
Karsten Hopp 290922
-- 
Karsten Hopp 290922
MORTICIAN:    What?
Karsten Hopp 290922
CUSTOMER:     Nothing -- here's your nine pence.
Karsten Hopp 290922
DEAD PERSON:  I'm not dead!
Karsten Hopp 290922
MORTICIAN:    Here -- he says he's not dead!
Karsten Hopp 290922
CUSTOMER:     Yes, he is.
Karsten Hopp 290922
DEAD PERSON:  I'm not!
Karsten Hopp 290922
                                  The Quest for the Holy Grail (Monty Python)
Karsten Hopp 290922
Karsten Hopp 290922
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 290922
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 290922
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 290922
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///