Karsten Hopp 9e23ae
To: vim-dev@vim.org
Karsten Hopp 9e23ae
Subject: Patch 7.0.051
Karsten Hopp 9e23ae
Fcc: outbox
Karsten Hopp 9e23ae
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 9e23ae
Mime-Version: 1.0
Karsten Hopp 9e23ae
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 9e23ae
Content-Transfer-Encoding: 8bit
Karsten Hopp 9e23ae
------------
Karsten Hopp 9e23ae
Karsten Hopp 9e23ae
Patch 7.0.051 (after 7.0.44)
Karsten Hopp 9e23ae
Problem:    The Perl interface doesn't compile or doesn't work properly.
Karsten Hopp 9e23ae
Solution:   Remove the spaces before #ifdef and avoid an empty line above it.
Karsten Hopp 9e23ae
Files:	    src/if_perl.xs
Karsten Hopp 9e23ae
Karsten Hopp 9e23ae
Karsten Hopp 9e23ae
*** ../vim-7.0.050/src/if_perl.xs	Tue Aug  8 16:47:38 2006
Karsten Hopp 9e23ae
--- src/if_perl.xs	Fri Aug 11 22:51:01 2006
Karsten Hopp 9e23ae
***************
Karsten Hopp 9e23ae
*** 1068,1098 ****
Karsten Hopp 9e23ae
  	    line = SvPV(ST(i),PL_na);
Karsten Hopp 9e23ae
  	    if (lnum > 0 && lnum <= vimbuf->b_ml.ml_line_count && line != NULL)
Karsten Hopp 9e23ae
  	    {
Karsten Hopp 9e23ae
!     #ifdef FEAT_AUTOCMD
Karsten Hopp 9e23ae
  		aco_save_T	aco;
Karsten Hopp 9e23ae
  
Karsten Hopp 9e23ae
  		/* set curwin/curbuf for "vimbuf" and save some things */
Karsten Hopp 9e23ae
  		aucmd_prepbuf(&aco, vimbuf);
Karsten Hopp 9e23ae
!     #else
Karsten Hopp 9e23ae
  		buf_T	*save_curbuf = curbuf;
Karsten Hopp 9e23ae
  
Karsten Hopp 9e23ae
  		curbuf = vimbuf;
Karsten Hopp 9e23ae
  		curwin->w_buffer = vimbuf;
Karsten Hopp 9e23ae
!     #endif
Karsten Hopp 9e23ae
  		if (u_savesub(lnum) == OK)
Karsten Hopp 9e23ae
  		{
Karsten Hopp 9e23ae
  		    ml_replace(lnum, (char_u *)line, TRUE);
Karsten Hopp 9e23ae
  		    changed_bytes(lnum, 0);
Karsten Hopp 9e23ae
  		}
Karsten Hopp 9e23ae
! 
Karsten Hopp 9e23ae
!     #ifdef FEAT_AUTOCMD
Karsten Hopp 9e23ae
  		/* restore curwin/curbuf and a few other things */
Karsten Hopp 9e23ae
  		aucmd_restbuf(&aco;;
Karsten Hopp 9e23ae
  		/* Careful: autocommands may have made "vimbuf" invalid! */
Karsten Hopp 9e23ae
!     #else
Karsten Hopp 9e23ae
  		curwin->w_buffer = save_curbuf;
Karsten Hopp 9e23ae
  		curbuf = save_curbuf;
Karsten Hopp 9e23ae
!     #endif
Karsten Hopp 9e23ae
  	    }
Karsten Hopp 9e23ae
  	}
Karsten Hopp 9e23ae
      }
Karsten Hopp 9e23ae
--- 1068,1097 ----
Karsten Hopp 9e23ae
  	    line = SvPV(ST(i),PL_na);
Karsten Hopp 9e23ae
  	    if (lnum > 0 && lnum <= vimbuf->b_ml.ml_line_count && line != NULL)
Karsten Hopp 9e23ae
  	    {
Karsten Hopp 9e23ae
! #ifdef FEAT_AUTOCMD
Karsten Hopp 9e23ae
  		aco_save_T	aco;
Karsten Hopp 9e23ae
  
Karsten Hopp 9e23ae
  		/* set curwin/curbuf for "vimbuf" and save some things */
Karsten Hopp 9e23ae
  		aucmd_prepbuf(&aco, vimbuf);
Karsten Hopp 9e23ae
! #else
Karsten Hopp 9e23ae
  		buf_T	*save_curbuf = curbuf;
Karsten Hopp 9e23ae
  
Karsten Hopp 9e23ae
  		curbuf = vimbuf;
Karsten Hopp 9e23ae
  		curwin->w_buffer = vimbuf;
Karsten Hopp 9e23ae
! #endif
Karsten Hopp 9e23ae
  		if (u_savesub(lnum) == OK)
Karsten Hopp 9e23ae
  		{
Karsten Hopp 9e23ae
  		    ml_replace(lnum, (char_u *)line, TRUE);
Karsten Hopp 9e23ae
  		    changed_bytes(lnum, 0);
Karsten Hopp 9e23ae
  		}
Karsten Hopp 9e23ae
! #ifdef FEAT_AUTOCMD
Karsten Hopp 9e23ae
  		/* restore curwin/curbuf and a few other things */
Karsten Hopp 9e23ae
  		aucmd_restbuf(&aco;;
Karsten Hopp 9e23ae
  		/* Careful: autocommands may have made "vimbuf" invalid! */
Karsten Hopp 9e23ae
! #else
Karsten Hopp 9e23ae
  		curwin->w_buffer = save_curbuf;
Karsten Hopp 9e23ae
  		curbuf = save_curbuf;
Karsten Hopp 9e23ae
! #endif
Karsten Hopp 9e23ae
  	    }
Karsten Hopp 9e23ae
  	}
Karsten Hopp 9e23ae
      }
Karsten Hopp 9e23ae
***************
Karsten Hopp 9e23ae
*** 1130,1144 ****
Karsten Hopp 9e23ae
  		if (lnum > 0 && lnum <= vimbuf->b_ml.ml_line_count)
Karsten Hopp 9e23ae
  		{
Karsten Hopp 9e23ae
  		    buf_T	*save_curbuf = curbuf;
Karsten Hopp 9e23ae
!     #ifdef FEAT_AUTOCMD
Karsten Hopp 9e23ae
  		    aco_save_T	aco;
Karsten Hopp 9e23ae
  
Karsten Hopp 9e23ae
  		    /* set curwin/curbuf for "vimbuf" and save some things */
Karsten Hopp 9e23ae
  		    aucmd_prepbuf(&aco, vimbuf);
Karsten Hopp 9e23ae
!     #else
Karsten Hopp 9e23ae
  		    curbuf = vimbuf;
Karsten Hopp 9e23ae
  		    curwin->w_buffer = vimbuf;
Karsten Hopp 9e23ae
!     #endif
Karsten Hopp 9e23ae
  		    if (u_savedel(lnum, 1) == OK)
Karsten Hopp 9e23ae
  		    {
Karsten Hopp 9e23ae
  			ml_delete(lnum, 0);
Karsten Hopp 9e23ae
--- 1129,1143 ----
Karsten Hopp 9e23ae
  		if (lnum > 0 && lnum <= vimbuf->b_ml.ml_line_count)
Karsten Hopp 9e23ae
  		{
Karsten Hopp 9e23ae
  		    buf_T	*save_curbuf = curbuf;
Karsten Hopp 9e23ae
! #ifdef FEAT_AUTOCMD
Karsten Hopp 9e23ae
  		    aco_save_T	aco;
Karsten Hopp 9e23ae
  
Karsten Hopp 9e23ae
  		    /* set curwin/curbuf for "vimbuf" and save some things */
Karsten Hopp 9e23ae
  		    aucmd_prepbuf(&aco, vimbuf);
Karsten Hopp 9e23ae
! #else
Karsten Hopp 9e23ae
  		    curbuf = vimbuf;
Karsten Hopp 9e23ae
  		    curwin->w_buffer = vimbuf;
Karsten Hopp 9e23ae
! #endif
Karsten Hopp 9e23ae
  		    if (u_savedel(lnum, 1) == OK)
Karsten Hopp 9e23ae
  		    {
Karsten Hopp 9e23ae
  			ml_delete(lnum, 0);
Karsten Hopp 9e23ae
***************
Karsten Hopp 9e23ae
*** 1146,1159 ****
Karsten Hopp 9e23ae
  			if (save_curbuf == curbuf)
Karsten Hopp 9e23ae
  			    check_cursor();
Karsten Hopp 9e23ae
  		    }
Karsten Hopp 9e23ae
!     #ifdef FEAT_AUTOCMD
Karsten Hopp 9e23ae
  		    /* restore curwin/curbuf and a few other things */
Karsten Hopp 9e23ae
  		    aucmd_restbuf(&aco;;
Karsten Hopp 9e23ae
  		    /* Careful: autocommands may have made "vimbuf" invalid! */
Karsten Hopp 9e23ae
!     #else
Karsten Hopp 9e23ae
  		    curwin->w_buffer = save_curbuf;
Karsten Hopp 9e23ae
  		    curbuf = save_curbuf;
Karsten Hopp 9e23ae
!     #endif
Karsten Hopp 9e23ae
  		    update_curbuf(VALID);
Karsten Hopp 9e23ae
  		}
Karsten Hopp 9e23ae
  	    }
Karsten Hopp 9e23ae
--- 1145,1158 ----
Karsten Hopp 9e23ae
  			if (save_curbuf == curbuf)
Karsten Hopp 9e23ae
  			    check_cursor();
Karsten Hopp 9e23ae
  		    }
Karsten Hopp 9e23ae
! #ifdef FEAT_AUTOCMD
Karsten Hopp 9e23ae
  		    /* restore curwin/curbuf and a few other things */
Karsten Hopp 9e23ae
  		    aucmd_restbuf(&aco;;
Karsten Hopp 9e23ae
  		    /* Careful: autocommands may have made "vimbuf" invalid! */
Karsten Hopp 9e23ae
! #else
Karsten Hopp 9e23ae
  		    curwin->w_buffer = save_curbuf;
Karsten Hopp 9e23ae
  		    curbuf = save_curbuf;
Karsten Hopp 9e23ae
! #endif
Karsten Hopp 9e23ae
  		    update_curbuf(VALID);
Karsten Hopp 9e23ae
  		}
Karsten Hopp 9e23ae
  	    }
Karsten Hopp 9e23ae
***************
Karsten Hopp 9e23ae
*** 1180,1210 ****
Karsten Hopp 9e23ae
  	    line = SvPV(ST(i),PL_na);
Karsten Hopp 9e23ae
  	    if (lnum >= 0 && lnum <= vimbuf->b_ml.ml_line_count && line != NULL)
Karsten Hopp 9e23ae
  	    {
Karsten Hopp 9e23ae
!     #ifdef FEAT_AUTOCMD
Karsten Hopp 9e23ae
  		aco_save_T	aco;
Karsten Hopp 9e23ae
  
Karsten Hopp 9e23ae
  		/* set curwin/curbuf for "vimbuf" and save some things */
Karsten Hopp 9e23ae
  		aucmd_prepbuf(&aco, vimbuf);
Karsten Hopp 9e23ae
!     #else
Karsten Hopp 9e23ae
  		buf_T	*save_curbuf = curbuf;
Karsten Hopp 9e23ae
  
Karsten Hopp 9e23ae
  		curbuf = vimbuf;
Karsten Hopp 9e23ae
  		curwin->w_buffer = vimbuf;
Karsten Hopp 9e23ae
!     #endif
Karsten Hopp 9e23ae
  		if (u_inssub(lnum + 1) == OK)
Karsten Hopp 9e23ae
  		{
Karsten Hopp 9e23ae
  		    ml_append(lnum, (char_u *)line, (colnr_T)0, FALSE);
Karsten Hopp 9e23ae
  		    appended_lines_mark(lnum, 1L);
Karsten Hopp 9e23ae
  		}
Karsten Hopp 9e23ae
! 
Karsten Hopp 9e23ae
!     #ifdef FEAT_AUTOCMD
Karsten Hopp 9e23ae
  		/* restore curwin/curbuf and a few other things */
Karsten Hopp 9e23ae
  		aucmd_restbuf(&aco;;
Karsten Hopp 9e23ae
  		/* Careful: autocommands may have made "vimbuf" invalid! */
Karsten Hopp 9e23ae
!     #else
Karsten Hopp 9e23ae
  		curwin->w_buffer = save_curbuf;
Karsten Hopp 9e23ae
  		curbuf = save_curbuf;
Karsten Hopp 9e23ae
!     #endif
Karsten Hopp 9e23ae
  		update_curbuf(VALID);
Karsten Hopp 9e23ae
  	    }
Karsten Hopp 9e23ae
  	}
Karsten Hopp 9e23ae
--- 1179,1208 ----
Karsten Hopp 9e23ae
  	    line = SvPV(ST(i),PL_na);
Karsten Hopp 9e23ae
  	    if (lnum >= 0 && lnum <= vimbuf->b_ml.ml_line_count && line != NULL)
Karsten Hopp 9e23ae
  	    {
Karsten Hopp 9e23ae
! #ifdef FEAT_AUTOCMD
Karsten Hopp 9e23ae
  		aco_save_T	aco;
Karsten Hopp 9e23ae
  
Karsten Hopp 9e23ae
  		/* set curwin/curbuf for "vimbuf" and save some things */
Karsten Hopp 9e23ae
  		aucmd_prepbuf(&aco, vimbuf);
Karsten Hopp 9e23ae
! #else
Karsten Hopp 9e23ae
  		buf_T	*save_curbuf = curbuf;
Karsten Hopp 9e23ae
  
Karsten Hopp 9e23ae
  		curbuf = vimbuf;
Karsten Hopp 9e23ae
  		curwin->w_buffer = vimbuf;
Karsten Hopp 9e23ae
! #endif
Karsten Hopp 9e23ae
  		if (u_inssub(lnum + 1) == OK)
Karsten Hopp 9e23ae
  		{
Karsten Hopp 9e23ae
  		    ml_append(lnum, (char_u *)line, (colnr_T)0, FALSE);
Karsten Hopp 9e23ae
  		    appended_lines_mark(lnum, 1L);
Karsten Hopp 9e23ae
  		}
Karsten Hopp 9e23ae
! #ifdef FEAT_AUTOCMD
Karsten Hopp 9e23ae
  		/* restore curwin/curbuf and a few other things */
Karsten Hopp 9e23ae
  		aucmd_restbuf(&aco;;
Karsten Hopp 9e23ae
  		/* Careful: autocommands may have made "vimbuf" invalid! */
Karsten Hopp 9e23ae
! #else
Karsten Hopp 9e23ae
  		curwin->w_buffer = save_curbuf;
Karsten Hopp 9e23ae
  		curbuf = save_curbuf;
Karsten Hopp 9e23ae
! #endif
Karsten Hopp 9e23ae
  		update_curbuf(VALID);
Karsten Hopp 9e23ae
  	    }
Karsten Hopp 9e23ae
  	}
Karsten Hopp 9e23ae
*** ../vim-7.0.050/src/version.c	Tue Aug  8 21:36:15 2006
Karsten Hopp 9e23ae
--- src/version.c	Fri Aug 11 22:55:25 2006
Karsten Hopp 9e23ae
***************
Karsten Hopp 9e23ae
*** 668,669 ****
Karsten Hopp 9e23ae
--- 668,671 ----
Karsten Hopp 9e23ae
  {   /* Add new patch number below this line */
Karsten Hopp 9e23ae
+ /**/
Karsten Hopp 9e23ae
+     51,
Karsten Hopp 9e23ae
  /**/
Karsten Hopp 9e23ae
Karsten Hopp 9e23ae
-- 
Karsten Hopp 9e23ae
"A clear conscience is usually the sign of a bad memory."
Karsten Hopp 9e23ae
                             -- Steven Wright
Karsten Hopp 9e23ae
Karsten Hopp 9e23ae
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 9e23ae
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 9e23ae
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 9e23ae
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///