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