r864 - in /trunk/packages/vim: debian/ upstream/patches/

jamessan at users.alioth.debian.org jamessan at users.alioth.debian.org
Tue Jan 23 13:17:25 UTC 2007


Author: jamessan
Date: Tue Jan 23 14:17:23 2007
New Revision: 864

URL: http://svn.debian.org/wsvn/pkg-vim/?sc=1&rev=864
Log:
Upstream patches through 188

Added:
    trunk/packages/vim/upstream/patches/7.0.165
    trunk/packages/vim/upstream/patches/7.0.166
    trunk/packages/vim/upstream/patches/7.0.167
    trunk/packages/vim/upstream/patches/7.0.168
    trunk/packages/vim/upstream/patches/7.0.169
    trunk/packages/vim/upstream/patches/7.0.170
    trunk/packages/vim/upstream/patches/7.0.171
    trunk/packages/vim/upstream/patches/7.0.172
    trunk/packages/vim/upstream/patches/7.0.173
    trunk/packages/vim/upstream/patches/7.0.174
    trunk/packages/vim/upstream/patches/7.0.175
    trunk/packages/vim/upstream/patches/7.0.176
    trunk/packages/vim/upstream/patches/7.0.177
    trunk/packages/vim/upstream/patches/7.0.178
    trunk/packages/vim/upstream/patches/7.0.179
    trunk/packages/vim/upstream/patches/7.0.180
    trunk/packages/vim/upstream/patches/7.0.181
    trunk/packages/vim/upstream/patches/7.0.182
    trunk/packages/vim/upstream/patches/7.0.183
    trunk/packages/vim/upstream/patches/7.0.184
    trunk/packages/vim/upstream/patches/7.0.185
    trunk/packages/vim/upstream/patches/7.0.186
    trunk/packages/vim/upstream/patches/7.0.187
    trunk/packages/vim/upstream/patches/7.0.188
Modified:
    trunk/packages/vim/debian/README
    trunk/packages/vim/debian/changelog

Modified: trunk/packages/vim/debian/README
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/debian/README?rev=864&op=diff
==============================================================================
--- trunk/packages/vim/debian/README (original)
+++ trunk/packages/vim/debian/README Tue Jan 23 14:17:23 2007
@@ -194,3 +194,27 @@
   5819  7.0.162  doesn't exit with "vim -o a b" and abort at ATTENTION prompt
   4306  7.0.163  can't get the position of a sign over the netbeans interface
   1518  7.0.164  ":redir @+" doesn't work
+  2284  7.0.165  using CTRL-L to add to a search pattern fails for some chars
+  1865  7.0.166  crash with cscope when a file descriptor is NULL
+  1942  7.0.167  can't redefine a function in a dictionary
+  2224  7.0.168  reading uninitialized memory and a memory leak in recovery
+  1812  7.0.169  Visual block highlighting not removed for "I" and "A"
+  2545  7.0.170  (extra) Win32: un-maximizing and tab pages line problem
+ 14457  7.0.171  (extra) VMS: problem with file names with multiple paths
+  2389  7.0.172  crash when recovering a file and quitting hit-enter prompt
+  1703  7.0.173  ":call f().TT()" doesn't work
+  2838  7.0.174  ":mksession" doesn't restore tab page window layout properly
+  1498  7.0.175  tr() didn't add a final NUL
+  1781  7.0.176  ":emenu" isn't executed directly, breaks the crypt key prompt
+  4292  7.0.177  key from mapping at press-enter prompt would be remapped
+  1565  7.0.178  comparing utf-8 strings with 'ic' may look past NUL bytes
+  1744  7.0.179  crash when recovering without a swap file name
+  3061  7.0.180  (extra) VMS: build problem and problem with swap files
+  1790  7.0.181  when reloading a buffer an extra empty line may appear
+  2768  7.0.182  cannot reach every point in the undo tree after using "g-"
+  4142  7.0.183  accessing memory already freed after ":redir => var" ":let"
+  2400  7.0.184  cscope interface doesn't work with mlcscope
+  2927  7.0.185  multi-byte chars in message get attributes from previous char
+  1731  7.0.186  ml_get error when doing "/\_s*/e" with utf-8 'encoding'
+  7601  7.0.187  can't properly source a remote script
+  1602  7.0.188  (after 7.0.186) warning for wrong pointer type

Modified: trunk/packages/vim/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/debian/changelog?rev=864&op=diff
==============================================================================
--- trunk/packages/vim/debian/changelog (original)
+++ trunk/packages/vim/debian/changelog Tue Jan 23 14:17:23 2007
@@ -1,10 +1,13 @@
-vim (1:7.0-164+4) UNRELEASED; urgency=low
+vim (1:7.0-188+1) UNRELEASED; urgency=low
+
+  [ Debian Vim Maintainers ]
+  * New upstream patches (165 - 188), see README.gz for details.
 
   [ Stefano Zacchiroli ]
   * vim-addons support:
     - converted to YAML the registry entry for matchit
 
- -- Stefano Zacchiroli <zack at debian.org>  Tue, 16 Jan 2007 10:34:01 +0100
+ -- James Vega <jamessan at debian.org>  Wed, 17 Jan 2007 20:33:15 -0500
 
 vim (1:7.0-164+3) unstable; urgency=low
 

Added: trunk/packages/vim/upstream/patches/7.0.165
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.165?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.165 (added)
+++ trunk/packages/vim/upstream/patches/7.0.165 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,76 @@
+To: vim-dev at vim.org
+Subject: Patch 7.0.165
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.165
+Problem:    Using CTRL-L at the search prompt adds a "/" and other characters
+	    without escaping, causing the pattern not to match.
+Solution:   Escape special characters with a backslash.
+Files:	    src/ex_getln.c
+
+
+*** ../vim-7.0.164/src/ex_getln.c	Tue Oct 17 16:26:52 2006
+--- src/ex_getln.c	Tue Nov 14 21:36:13 2006
+***************
+*** 34,40 ****
+      int		xp_context;	/* type of expansion */
+  # ifdef FEAT_EVAL
+      char_u	*xp_arg;	/* user-defined expansion arg */
+!     int		input_fn;	/* Invoked for input() function */
+  # endif
+  };
+  
+--- 34,40 ----
+      int		xp_context;	/* type of expansion */
+  # ifdef FEAT_EVAL
+      char_u	*xp_arg;	/* user-defined expansion arg */
+!     int		input_fn;	/* when TRUE Invoked for input() function */
+  # endif
+  };
+  
+***************
+*** 1390,1396 ****
+--- 1390,1406 ----
+  		    {
+  			c = gchar_cursor();
+  			if (c != NUL)
++ 			{
++ 			    if (c == firstc || vim_strchr((char_u *)(
++ 					    p_magic ? "\\^$.*[" : "\\^$"), c)
++ 								      != NULL)
++ 			    {
++ 				/* put a backslash before special characters */
++ 				stuffcharReadbuff(c);
++ 				c = '\\';
++ 			    }
+  			    break;
++ 			}
+  		    }
+  		    goto cmdline_not_changed;
+  		}
+*** ../vim-7.0.164/src/version.c	Tue Nov 14 20:24:32 2006
+--- src/version.c	Tue Nov 21 11:28:43 2006
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     165,
+  /**/
+
+-- 
+       He was not in the least bit scared to be mashed into a pulp
+       Or to have his eyes gouged out and his elbows broken;
+       To have his kneecaps split and his body burned away
+       And his limbs all hacked and mangled, brave Sir Robin.
+                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.166
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.166?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.166 (added)
+++ trunk/packages/vim/upstream/patches/7.0.166 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,61 @@
+To: vim-dev at vim.org
+Subject: Patch 7.0.166
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.166
+Problem:    Crash in cscope code when connection could not be opened.
+	    (Kaya Bekiroglu)
+Solution:   Check for the file descriptor to be NULL.
+Files:	    src/if_cscope.c
+
+
+*** ../vim-7.0.165/src/if_cscope.c	Mon Oct 30 22:31:30 2006
+--- src/if_cscope.c	Tue Nov 14 22:04:30 2006
+***************
+*** 1008,1014 ****
+      totmatches = 0;
+      for (i = 0; i < CSCOPE_MAX_CONNECTIONS; i++)
+      {
+! 	if (csinfo[i].fname == NULL)
+  	    continue;
+  
+  	/* send cmd to cscope */
+--- 1008,1014 ----
+      totmatches = 0;
+      for (i = 0; i < CSCOPE_MAX_CONNECTIONS; i++)
+      {
+! 	if (csinfo[i].fname == NULL || csinfo[i].to_fp == NULL)
+  	    continue;
+  
+  	/* send cmd to cscope */
+*** ../vim-7.0.165/src/version.c	Tue Nov 21 11:29:56 2006
+--- src/version.c	Tue Nov 21 11:42:13 2006
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     166,
+  /**/
+
+-- 
+The greatest lies of all time:
+  (1) The check is in the mail.
+  (2) We have a really challenging assignment for you.
+  (3) I love you.
+  (4) All bugs have been fixed.
+  (5) This won't hurt a bit.
+  (6) Honey, I just need to debug this program and be home in 5 minutes.
+  (7) I have just sent you an e-mail about that.
+  (8) Of course I'll respect you in the morning.
+  (9) I'm from the government, and I'm here to help you.
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.167
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.167?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.167 (added)
+++ trunk/packages/vim/upstream/patches/7.0.167 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,68 @@
+To: vim-dev at vim.org
+Subject: Patch 7.0.167
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.167
+Problem:    ":function" redefining a dict function doesn't work properly.
+	    (Richard Emberson)
+Solution:   Allow a function name to be a number when it's a function
+	    reference.
+Files:	    src/eval.c
+
+
+*** ../vim-7.0.166/src/eval.c	Wed Nov  1 18:33:43 2006
+--- src/eval.c	Tue Nov 21 11:04:13 2006
+***************
+*** 18539,18550 ****
+  
+      if (!eap->skip)
+      {
+! 	/* Check the name of the function. */
+  	if (name != NULL)
+  	    arg = name;
+  	else
+  	    arg = fudi.fd_newkey;
+! 	if (arg != NULL)
+  	{
+  	    if (*arg == K_SPECIAL)
+  		j = 3;
+--- 18539,18552 ----
+  
+      if (!eap->skip)
+      {
+! 	/* Check the name of the function.  Unless it's a dictionary function
+! 	 * (that we are overwriting). */
+  	if (name != NULL)
+  	    arg = name;
+  	else
+  	    arg = fudi.fd_newkey;
+! 	if (arg != NULL && (fudi.fd_di == NULL
+! 				     || fudi.fd_di->di_tv.v_type != VAR_FUNC))
+  	{
+  	    if (*arg == K_SPECIAL)
+  		j = 3;
+*** ../vim-7.0.166/src/version.c	Tue Nov 21 11:43:49 2006
+--- src/version.c	Tue Nov 21 11:48:12 2006
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     167,
+  /**/
+
+-- 
+   They now pass three KNIGHTS impaled to a tree.  With their feet off the
+   ground,  with one lance through the lot of them, they are skewered up
+   like a barbecue.
+                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.168
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.168?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.168 (added)
+++ trunk/packages/vim/upstream/patches/7.0.168 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,68 @@
+To: vim-dev at vim.org
+Subject: Patch 7.0.168
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.168
+Problem:    Using uninitialized memory and memory leak. (Dominique Pelle)
+Solution:   Use alloc_clear() instead of alloc() for w_lines.  Free
+	    b_ml.ml_stack after recovery.
+Files:	    src/memline.c, src/window.c
+
+
+*** ../vim-7.0.167/src/memline.c	Wed Nov  1 18:10:36 2006
+--- src/memline.c	Thu Nov 16 22:29:19 2006
+***************
+*** 1329,1334 ****
+--- 1329,1335 ----
+  	    mf_put(mfp, hp, FALSE, FALSE);
+  	mf_close(mfp, FALSE);	    /* will also vim_free(mfp->mf_fname) */
+      }
++     vim_free(buf->b_ml.ml_stack);
+      vim_free(buf);
+      if (serious_error && called_from_main)
+  	ml_close(curbuf, TRUE);
+*** ../vim-7.0.167/src/window.c	Tue Oct 24 21:15:09 2006
+--- src/window.c	Thu Nov 16 22:24:51 2006
+***************
+*** 4273,4279 ****
+      win_T	*wp;
+  {
+      wp->w_lines_valid = 0;
+!     wp->w_lines = (wline_T *)alloc((unsigned)(Rows * sizeof(wline_T)));
+      if (wp->w_lines == NULL)
+  	return FAIL;
+      return OK;
+--- 4273,4279 ----
+      win_T	*wp;
+  {
+      wp->w_lines_valid = 0;
+!     wp->w_lines = (wline_T *)alloc_clear((unsigned)(Rows * sizeof(wline_T)));
+      if (wp->w_lines == NULL)
+  	return FAIL;
+      return OK;
+*** ../vim-7.0.167/src/version.c	Tue Nov 21 19:36:00 2006
+--- src/version.c	Tue Nov 21 20:34:13 2006
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     168,
+  /**/
+
+-- 
+   GALAHAD turns back.  We see from his POV the lovely ZOOT standing by him
+   smiling enchantingly and a number of equally delectable GIRLIES draped
+   around in the seductively poulticed room.  They look at him smilingly and
+   wave.
+                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.169
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.169?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.169 (added)
+++ trunk/packages/vim/upstream/patches/7.0.169 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,53 @@
+To: vim-dev at vim.org
+Subject: Patch 7.0.169
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.169
+Problem:    With a Visual block selection, with the cursor in the left upper
+	    corner, pressing "I" doesn't remove the highlighting. (Guopeng
+	    Wen)
+Solution:   When checking if redrawing is needed also check if Visual
+	    selection is still active.
+Files:	    src/screen.c
+
+
+*** ../vim-7.0.168/src/screen.c	Mon Oct  9 22:11:52 2006
+--- src/screen.c	Tue Nov 28 16:11:24 2006
+***************
+*** 455,460 ****
+--- 455,461 ----
+  		    && curwin->w_topline == curwin->w_lines[0].wl_lnum)
+  #ifdef FEAT_VISUAL
+  		|| (type == INVERTED
++ 		    && VIsual_active
+  		    && curwin->w_old_cursor_lnum == curwin->w_cursor.lnum
+  		    && curwin->w_old_visual_mode == VIsual_mode
+  		    && (curwin->w_valid & VALID_VIRTCOL)
+*** ../vim-7.0.168/src/version.c	Tue Nov 21 20:57:21 2006
+--- src/version.c	Tue Nov 28 16:13:40 2006
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     169,
+  /**/
+
+-- 
+    [clop clop]
+GUARD #1:  Halt!  Who goes there?
+ARTHUR:    It is I, Arthur, son of Uther Pendragon, from the castle of
+           Camelot.  King of the Britons, defeator of the Saxons, sovereign of
+           all England!
+GUARD #1:  Pull the other one!
+                                  The Quest for the Holy Grail (Monty Python)
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.170
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.170?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.170 (added)
+++ trunk/packages/vim/upstream/patches/7.0.170 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,98 @@
+To: vim-dev at vim.org
+Subject: Patch 7.0.170 (extra)
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.170 (extra)
+Problem:    Win32: Using "gvim --remote-tab foo" when gvim is minimized while
+	    it previously was maximized, un-maximizing doesn't work properly.
+	    And the labels are not displayed properly when 'encoding' is
+	    utf-8.
+Solution:   When minimized check for SW_SHOWMINIMIZED.  When updating the tab
+	    pages line use TCM_SETITEMW instead of TCM_INSERTITEMW. (Liu
+	    Yubao)
+Files:	    src/gui_w48.c
+
+
+*** ../vim-7.0.169/src/gui_w48.c	Tue Nov  7 19:05:36 2006
+--- src/gui_w48.c	Mon Nov 27 22:26:15 2006
+***************
+*** 2405,2412 ****
+  		tiw.mask = TCIF_TEXT;
+  		tiw.iImage = -1;
+  		tiw.pszText = wstr;
+! 		SendMessage(s_tabhwnd, TCM_INSERTITEMW, (WPARAM)nr,
+! 								(LPARAM)&tiw);
+  		vim_free(wstr);
+  	    }
+  	}
+--- 2405,2411 ----
+  		tiw.mask = TCIF_TEXT;
+  		tiw.iImage = -1;
+  		tiw.pszText = wstr;
+! 		SendMessage(s_tabhwnd, TCM_SETITEMW, (WPARAM)nr, (LPARAM)&tiw);
+  		vim_free(wstr);
+  	    }
+  	}
+***************
+*** 3033,3045 ****
+      return OK;
+  }
+  
+  /*
+   * Return TRUE if the GUI window is maximized, filling the whole screen.
+   */
+      int
+  gui_mch_maximized()
+  {
+!     return IsZoomed(s_hwnd);
+  }
+  
+  /*
+--- 3032,3056 ----
+      return OK;
+  }
+  
++ #ifndef WPF_RESTORETOMAXIMIZED
++ # define WPF_RESTORETOMAXIMIZED 2   /* just in case someone doesn't have it */
++ #endif
++ 
+  /*
+   * Return TRUE if the GUI window is maximized, filling the whole screen.
+   */
+      int
+  gui_mch_maximized()
+  {
+!     WINDOWPLACEMENT wp;
+! 
+!     wp.length = sizeof(WINDOWPLACEMENT);
+!     if (GetWindowPlacement(s_hwnd, &wp))
+! 	return wp.showCmd == SW_SHOWMAXIMIZED
+! 	    || (wp.showCmd == SW_SHOWMINIMIZED
+! 		    && wp.flags == WPF_RESTORETOMAXIMIZED);
+! 
+!     return 0;
+  }
+  
+  /*
+*** ../vim-7.0.169/src/version.c	Tue Nov 28 16:16:03 2006
+--- src/version.c	Tue Nov 28 17:16:07 2006
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     170,
+  /**/
+
+-- 
+Veni, Vidi, Video -- I came, I saw, I taped what I saw.
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.171
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.171?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.171 (added)
+++ trunk/packages/vim/upstream/patches/7.0.171 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,509 @@
+To: vim-dev at vim.org
+Subject: Patch 7.0.171 (extra)
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.171 (extra)
+Problem:    VMS: A file name with multiple paths is written in the wrong file.
+Solution:   Get the actually used file name. (Zoltan Arpadffy)
+	    Also add info to the :version command about compilation.
+Files:	    src/Make_vms.mms, src/buffer.c, src/os_unix.c, src/version.c
+
+
+*** ../vim-7.0.170/src/Make_vms.mms	Sun Apr 30 20:46:53 2006
+--- src/Make_vms.mms	Mon Sep  4 20:54:51 2006
+***************
+*** 2,8 ****
+  # Makefile for Vim on OpenVMS
+  #
+  # Maintainer:   Zoltan Arpadffy <arpadffy at polarhome.com>
+! # Last change:  2006 Apr 30
+  #
+  # This has script been tested on VMS 6.2 to 8.2 on DEC Alpha, VAX and IA64
+  # with MMS and MMK
+--- 2,8 ----
+  # Makefile for Vim on OpenVMS
+  #
+  # Maintainer:   Zoltan Arpadffy <arpadffy at polarhome.com>
+! # Last change:  2006 Sep 04
+  #
+  # This has script been tested on VMS 6.2 to 8.2 on DEC Alpha, VAX and IA64
+  # with MMS and MMK
+***************
+*** 13,19 ****
+  #
+  # Edit the lines in the Configuration section below for fine tuning.
+  #
+! # To build:    mms/descrip=Make_vms.mms
+  # To clean up: mms/descrip=Make_vms.mms clean
+  #
+  # Hints and detailed description could be found in INSTALLVMS.TXT file.
+--- 13,19 ----
+  #
+  # Edit the lines in the Configuration section below for fine tuning.
+  #
+! # To build:    mms/descrip=Make_vms.mms /ignore=warning
+  # To clean up: mms/descrip=Make_vms.mms clean
+  #
+  # Hints and detailed description could be found in INSTALLVMS.TXT file.
+***************
+*** 21,30 ****
+  ######################################################################
+  # Configuration section.
+  ######################################################################
+- # Platform selection
+- # Define this if you will use the VAX platform to build.
+- # VAX = YES
+- 
+  # VMS version
+  # Uncomment if you use VMS version 6.2 or older
+  # OLD_VMS = YES
+--- 21,26 ----
+***************
+*** 49,54 ****
+--- 45,51 ----
+  
+  # GUI with GTK
+  # If you have GTK installed you might want to enable this option.
++ # NOTE: you will need to properly define GTK_DIR below
+  # GTK = YES
+  
+  # GUI/Motif with XPM
+***************
+*** 97,103 ****
+  
+  # Compiler setup
+  
+! .IFDEF VAX
+  .IFDEF DECC	     # VAX with DECC
+  CC_DEF  = cc # /decc # some system requires this switch
+  		     # but when it is not required /ver might fail
+--- 94,100 ----
+  
+  # Compiler setup
+  
+! .IFDEF MMSVAX
+  .IFDEF DECC	     # VAX with DECC
+  CC_DEF  = cc # /decc # some system requires this switch
+  		     # but when it is not required /ver might fail
+***************
+*** 165,172 ****
+  # NOTE: you need to set up your GTK_DIR (GTK root directory), because it is
+  # unique on every system - logicals are not accepted
+  # please note: directory should end with . in order to /trans=conc work
+! # Example: GTK_DIR  = $1$DGA104:[USERS.ZAY.WORK.GTK1210.]
+! GTK_DIR  = DKA0:[GTK1210.]
+  DEFS     = "HAVE_CONFIG_H","FEAT_GUI_GTK"
+  LIBS     = ,OS_VMS_GTK.OPT/OPT
+  GUI_FLAG = /name=(as_is,short)/float=ieee/ieee=denorm
+--- 162,169 ----
+  # NOTE: you need to set up your GTK_DIR (GTK root directory), because it is
+  # unique on every system - logicals are not accepted
+  # please note: directory should end with . in order to /trans=conc work
+! # This value for GTK_DIR is an example.
+! GTK_DIR  = $1$DGA104:[USERS.ZAY.WORK.GTK1210.]
+  DEFS     = "HAVE_CONFIG_H","FEAT_GUI_GTK"
+  LIBS     = ,OS_VMS_GTK.OPT/OPT
+  GUI_FLAG = /name=(as_is,short)/float=ieee/ieee=denorm
+***************
+*** 274,280 ****
+  # Please, do not change anything below without programming experience.
+  ######################################################################
+  
+- 
+  MODEL_DEF = "FEAT_$(MODEL)",
+  
+  # These go into pathdef.c
+--- 271,276 ----
+***************
+*** 360,366 ****
+  	-@ write pd "char_u *all_lflags = (char_u *)""$(LD_DEF)$(LDFLAGS) /exe=$(TARGET) *.OBJ $(ALL_LIBS)"";"
+  	-@ write pd "char_u *compiler_version = (char_u *) ""''CC_VER'"";"
+  	-@ write pd "char_u *compiled_user = (char_u *) "$(VIMUSER)";"
+! 	-@ write pd "char_u *compiled_sys = (char_u *) "$(VIMHOST)";"
+  	-@ close pd
+  
+  if_perl.c : if_perl.xs
+--- 356,363 ----
+  	-@ write pd "char_u *all_lflags = (char_u *)""$(LD_DEF)$(LDFLAGS) /exe=$(TARGET) *.OBJ $(ALL_LIBS)"";"
+  	-@ write pd "char_u *compiler_version = (char_u *) ""''CC_VER'"";"
+  	-@ write pd "char_u *compiled_user = (char_u *) "$(VIMUSER)";"
+! 	-@ write pd "char_u *compiled_sys  = (char_u *) "$(VIMHOST)";"
+! 	-@ write pd "char_u *compiled_arch = (char_u *) ""$(MMSARCH_NAME)"";"
+  	-@ close pd
+  
+  if_perl.c : if_perl.xs
+*** ../vim-7.0.170/src/buffer.c	Tue Nov  7 22:41:37 2006
+--- src/buffer.c	Tue Nov  7 21:08:02 2006
+***************
+*** 4145,4155 ****
+      /*
+       * Force expanding the path always for Unix, because symbolic links may
+       * mess up the full path name, even though it starts with a '/'.
+       * Also expand when there is ".." in the file name, try to remove it,
+       * because "c:/src/../README" is equal to "c:/README".
+       * For MS-Windows also expand names like "longna~1" to "longname".
+       */
+! #ifdef UNIX
+      return FullName_save(fname, TRUE);
+  #else
+      if (!vim_isAbsName(fname) || strstr((char *)fname, "..") != NULL
+--- 4145,4157 ----
+      /*
+       * Force expanding the path always for Unix, because symbolic links may
+       * mess up the full path name, even though it starts with a '/'.
++      * Also expand always for VMS, it may have alternate paths that need to be
++      * resolved.
+       * Also expand when there is ".." in the file name, try to remove it,
+       * because "c:/src/../README" is equal to "c:/README".
+       * For MS-Windows also expand names like "longna~1" to "longname".
+       */
+! #if defined(UNIX) || defined(VMS)
+      return FullName_save(fname, TRUE);
+  #else
+      if (!vim_isAbsName(fname) || strstr((char *)fname, "..") != NULL
+*** ../vim-7.0.170/src/os_unix.c	Tue Aug 29 17:28:56 2006
+--- src/os_unix.c	Tue Nov 28 17:38:54 2006
+***************
+*** 2202,2208 ****
+  #endif
+  
+  /*
+!  * Get absolute file name into buffer 'buf' of length 'len' bytes.
+   *
+   * return FAIL for failure, OK for success
+   */
+--- 2202,2208 ----
+  #endif
+  
+  /*
+!  * Get absolute file name into "buf[len]".
+   *
+   * return FAIL for failure, OK for success
+   */
+***************
+*** 2212,2233 ****
+      int		len;
+      int		force;		/* also expand when already absolute path */
+  {
+      int		l;
+! #ifdef OS2
+      int		only_drive;	/* file name is only a drive letter */
+! #endif
+! #ifdef HAVE_FCHDIR
+      int		fd = -1;
+      static int	dont_fchdir = FALSE;	/* TRUE when fchdir() doesn't work */
+! #endif
+      char_u	olddir[MAXPATHL];
+      char_u	*p;
+      int		retval = OK;
+  
+- #ifdef VMS
+-     fname = vms_fixfilename(fname);
+- #endif
+- 
+      /* expand it if forced or not an absolute path */
+      if (force || !mch_isFullName(fname))
+      {
+--- 2212,2261 ----
+      int		len;
+      int		force;		/* also expand when already absolute path */
+  {
++ #ifdef VMS
++     /*
++      * VMS does this in a completely different way.
++      *
++      * By default a file found in a complex path is written to the first
++      * directory in the path and not to the original directory.  This
++      * behaviour should be avoided for the existing files and we need to find
++      * the exact path of the edited file.
++      */
++     if (force || !mch_isFullName(fname))
++     {
++ 	char_u	*fixed_fname = vms_fixfilename(fname);
++ 	int	fd = mch_open((char *)fixed_fname, O_RDONLY | O_EXTRA, 0);
++ 
++ 	if (fd > 0)
++ 	{
++ 	    char nbuf[MAXNAMLEN];
++ 
++ 	    /* File exists, use getname() to get the real name. */
++ 	    if (getname(fd, nbuf))
++ 		vim_strncpy(fixed_fname, (char_u *)nbuf, (size_t)(len - 1));
++ 	    close(fd);
++ 	}
++ 
++ 	if (STRLEN(fixed_fname) >= len)
++ 	    return FAIL;
++ 
++ 	STRCPY(buf, fixed_fname);
++     }
++ 
++ #else /* not VMS */
++ 
+      int		l;
+! # ifdef OS2
+      int		only_drive;	/* file name is only a drive letter */
+! # endif
+! # ifdef HAVE_FCHDIR
+      int		fd = -1;
+      static int	dont_fchdir = FALSE;	/* TRUE when fchdir() doesn't work */
+! # endif
+      char_u	olddir[MAXPATHL];
+      char_u	*p;
+      int		retval = OK;
+  
+      /* expand it if forced or not an absolute path */
+      if (force || !mch_isFullName(fname))
+      {
+***************
+*** 2236,2251 ****
+  	 * and then do the getwd() (and get back to where we were).
+  	 * This will get the correct path name with "../" things.
+  	 */
+! #ifdef OS2
+  	only_drive = 0;
+  	if (((p = vim_strrchr(fname, '/')) != NULL)
+  		|| ((p = vim_strrchr(fname, '\\')) != NULL)
+  		|| (((p = vim_strchr(fname,  ':')) != NULL) && ++only_drive))
+! #else
+  	if ((p = vim_strrchr(fname, '/')) != NULL)
+! #endif
+  	{
+! #ifdef HAVE_FCHDIR
+  	    /*
+  	     * Use fchdir() if possible, it's said to be faster and more
+  	     * reliable.  But on SunOS 4 it might not work.  Check this by
+--- 2264,2279 ----
+  	 * and then do the getwd() (and get back to where we were).
+  	 * This will get the correct path name with "../" things.
+  	 */
+! # ifdef OS2
+  	only_drive = 0;
+  	if (((p = vim_strrchr(fname, '/')) != NULL)
+  		|| ((p = vim_strrchr(fname, '\\')) != NULL)
+  		|| (((p = vim_strchr(fname,  ':')) != NULL) && ++only_drive))
+! # else
+  	if ((p = vim_strrchr(fname, '/')) != NULL)
+! # endif
+  	{
+! # ifdef HAVE_FCHDIR
+  	    /*
+  	     * Use fchdir() if possible, it's said to be faster and more
+  	     * reliable.  But on SunOS 4 it might not work.  Check this by
+***************
+*** 2261,2274 ****
+  		    dont_fchdir = TRUE;	    /* don't try again */
+  		}
+  	    }
+! #endif
+  
+  	    /* Only change directory when we are sure we can return to where
+  	     * we are now.  After doing "su" chdir(".") might not work. */
+  	    if (
+! #ifdef HAVE_FCHDIR
+  		fd < 0 &&
+! #endif
+  			(mch_dirname(olddir, MAXPATHL) == FAIL
+  					   || mch_chdir((char *)olddir) != 0))
+  	    {
+--- 2289,2302 ----
+  		    dont_fchdir = TRUE;	    /* don't try again */
+  		}
+  	    }
+! # endif
+  
+  	    /* Only change directory when we are sure we can return to where
+  	     * we are now.  After doing "su" chdir(".") might not work. */
+  	    if (
+! # ifdef HAVE_FCHDIR
+  		fd < 0 &&
+! # endif
+  			(mch_dirname(olddir, MAXPATHL) == FAIL
+  					   || mch_chdir((char *)olddir) != 0))
+  	    {
+***************
+*** 2277,2283 ****
+  	    }
+  	    else
+  	    {
+! #ifdef OS2
+  		/*
+  		 * compensate for case where ':' from "D:" was the only
+  		 * path separator detected in the file name; the _next_
+--- 2305,2311 ----
+  	    }
+  	    else
+  	    {
+! # ifdef OS2
+  		/*
+  		 * compensate for case where ':' from "D:" was the only
+  		 * path separator detected in the file name; the _next_
+***************
+*** 2285,2291 ****
+  		 */
+  		if (only_drive)
+  		    p++;
+! #endif
+  		/* The directory is copied into buf[], to be able to remove
+  		 * the file name without changing it (could be a string in
+  		 * read-only memory) */
+--- 2313,2319 ----
+  		 */
+  		if (only_drive)
+  		    p++;
+! # endif
+  		/* The directory is copied into buf[], to be able to remove
+  		 * the file name without changing it (could be a string in
+  		 * read-only memory) */
+***************
+*** 2300,2313 ****
+  			fname = p + 1;
+  		    *buf = NUL;
+  		}
+! #ifdef OS2
+  		if (only_drive)
+  		{
+  		    p--;
+  		    if (retval != FAIL)
+  			fname--;
+  		}
+! #endif
+  	    }
+  	}
+  	if (mch_dirname(buf, len) == FAIL)
+--- 2328,2341 ----
+  			fname = p + 1;
+  		    *buf = NUL;
+  		}
+! # ifdef OS2
+  		if (only_drive)
+  		{
+  		    p--;
+  		    if (retval != FAIL)
+  			fname--;
+  		}
+! # endif
+  	    }
+  	}
+  	if (mch_dirname(buf, len) == FAIL)
+***************
+*** 2317,2330 ****
+  	}
+  	if (p != NULL)
+  	{
+! #ifdef HAVE_FCHDIR
+  	    if (fd >= 0)
+  	    {
+  		l = fchdir(fd);
+  		close(fd);
+  	    }
+  	    else
+! #endif
+  		l = mch_chdir((char *)olddir);
+  	    if (l != 0)
+  		EMSG(_(e_prev_dir));
+--- 2345,2358 ----
+  	}
+  	if (p != NULL)
+  	{
+! # ifdef HAVE_FCHDIR
+  	    if (fd >= 0)
+  	    {
+  		l = fchdir(fd);
+  		close(fd);
+  	    }
+  	    else
+! # endif
+  		l = mch_chdir((char *)olddir);
+  	    if (l != 0)
+  		EMSG(_(e_prev_dir));
+***************
+*** 2333,2347 ****
+  	l = STRLEN(buf);
+  	if (l >= len)
+  	    retval = FAIL;
+- #ifndef VMS
+  	else
+  	{
+  	    if (l > 0 && buf[l - 1] != '/' && *fname != NUL
+  						   && STRCMP(fname, ".") != 0)
+  		STRCAT(buf, "/");
+  	}
+- #endif
+      }
+      /* Catch file names which are too long. */
+      if (retval == FAIL || STRLEN(buf) + STRLEN(fname) >= len)
+  	return FAIL;
+--- 2361,2374 ----
+  	l = STRLEN(buf);
+  	if (l >= len)
+  	    retval = FAIL;
+  	else
+  	{
+  	    if (l > 0 && buf[l - 1] != '/' && *fname != NUL
+  						   && STRCMP(fname, ".") != 0)
+  		STRCAT(buf, "/");
+  	}
+      }
++ 
+      /* Catch file names which are too long. */
+      if (retval == FAIL || STRLEN(buf) + STRLEN(fname) >= len)
+  	return FAIL;
+***************
+*** 2349,2354 ****
+--- 2376,2383 ----
+      /* Do not append ".", "/dir/." is equal to "/dir". */
+      if (STRCMP(fname, ".") != 0)
+  	STRCAT(buf, fname);
++ 
++ #endif /* VMS */
+  
+      return OK;
+  }
+*** ../vim-7.0.170/src/version.c	Tue Nov 28 17:18:03 2006
+--- src/version.c	Tue Nov 28 17:35:05 2006
+***************
+*** 1113,1118 ****
+--- 1115,1128 ----
+  #endif
+  #ifdef VMS
+      MSG_PUTS("\nOpenVMS version");
++ # ifdef HAVE_PATHDEF
++     if (*compiled_arch != NUL)
++     {
++ 	MSG_PUTS(" - ");
++ 	MSG_PUTS(compiled_arch);
++     }
++ # endif
++ 
+  #endif
+  
+      /* Print the list of patch numbers if there is at least one. */
+*** ../vim-7.0.170/src/version.c	Tue Nov 28 17:18:03 2006
+--- src/version.c	Tue Nov 28 17:35:05 2006
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     171,
+  /**/
+
+-- 
+GUARD #1:  What, ridden on a horse?
+ARTHUR:    Yes!
+GUARD #1:  You're using coconuts!
+ARTHUR:    What?
+GUARD #1:  You've got two empty halves of coconut and you're bangin' 'em
+           together.
+                                  The Quest for the Holy Grail (Monty Python)
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.172
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.172?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.172 (added)
+++ trunk/packages/vim/upstream/patches/7.0.172 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,78 @@
+To: vim-dev at vim.org
+Subject: Patch 7.0.172
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.172
+Problem:    Crash when recovering and quitting at the "press-enter" prompt.
+Solution:   Check for "msg_list" to be NULL. (Liu Yubao)
+Files:	    src/ex_eval.c
+
+
+*** ../vim-7.0.171/src/ex_eval.c	Sun Apr 23 00:28:06 2006
+--- src/ex_eval.c	Tue Nov 28 18:30:23 2006
+***************
+*** 340,346 ****
+  
+      /* If no exception is to be thrown or the conversion should be done after
+       * returning to a previous invocation of do_one_cmd(), do nothing. */
+!     if (*msg_list == NULL)
+  	return;
+  
+      if (throw_exception(*msg_list, ET_ERROR, cmdname) == FAIL)
+--- 340,346 ----
+  
+      /* If no exception is to be thrown or the conversion should be done after
+       * returning to a previous invocation of do_one_cmd(), do nothing. */
+!     if (msg_list == NULL || *msg_list == NULL)
+  	return;
+  
+      if (throw_exception(*msg_list, ET_ERROR, cmdname) == FAIL)
+***************
+*** 2026,2033 ****
+  
+  	/* If an error was about to be converted to an exception when
+  	 * enter_cleanup() was called, free the message list. */
+! 	free_msglist(*msg_list);
+! 	*msg_list = NULL;
+      }
+  
+      /*
+--- 2026,2036 ----
+  
+  	/* If an error was about to be converted to an exception when
+  	 * enter_cleanup() was called, free the message list. */
+! 	if (msg_list != NULL)
+! 	{
+! 	    free_msglist(*msg_list);
+! 	    *msg_list = NULL;
+! 	}
+      }
+  
+      /*
+*** ../vim-7.0.171/src/version.c	Tue Nov 28 17:44:51 2006
+--- src/version.c	Tue Nov 28 18:32:50 2006
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     172,
+  /**/
+
+-- 
+GUARD #1:  Where'd you get the coconut?
+ARTHUR:    We found them.
+GUARD #1:  Found them?  In Mercea?  The coconut's tropical!
+ARTHUR:    What do you mean?
+GUARD #1:  Well, this is a temperate zone.
+                                  The Quest for the Holy Grail (Monty Python)
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.173
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.173?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.173 (added)
+++ trunk/packages/vim/upstream/patches/7.0.173 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,57 @@
+To: vim-dev at vim.org
+Subject: Patch 7.0.173
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.173
+Problem:    ":call f().TT()" doesn't work.  (Richard Emberson)
+Solution:   When a function returns a Dictionary or another composite continue
+	    evaluating what follows.
+Files:	    src/eval.c    
+
+
+*** ../vim-7.0.172/src/eval.c	Tue Nov 21 19:36:00 2006
+--- src/eval.c	Tue Nov 28 20:50:02 2006
+***************
+*** 3184,3192 ****
+--- 3184,3201 ----
+  	    failed = TRUE;
+  	    break;
+  	}
++ 
++ 	/* Handle a function returning a Funcref, Dictionary or List. */
++ 	if (handle_subscript(&arg, &rettv, !eap->skip, TRUE) == FAIL)
++ 	{
++ 	    failed = TRUE;
++ 	    break;
++ 	}
++ 
+  	clear_tv(&rettv);
+  	if (doesrange || eap->skip)
+  	    break;
++ 
+  	/* Stop when immediately aborting on error, or when an interrupt
+  	 * occurred or an exception was thrown but not caught.
+  	 * get_func_tv() returned OK, so that the check for trailing
+*** ../vim-7.0.172/src/version.c	Tue Nov 28 18:37:55 2006
+--- src/version.c	Tue Nov 28 20:53:18 2006
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     173,
+  /**/
+
+-- 
+"A mouse can be just as dangerous as a bullet or a bomb."
+             (US Representative Lamar Smith, R-Texas)
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.174
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.174?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.174 (added)
+++ trunk/packages/vim/upstream/patches/7.0.174 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,95 @@
+To: vim-dev at vim.org
+Subject: Patch 7.0.174
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.174
+Problem:    ":mksession" doesn't restore window layout correctly in tab pages
+	    other than the current one. (Zhibin He)
+Solution:   Use the correct topframe for producing the window layout commands.
+Files:	    src/ex_docmd.c
+
+
+*** ../vim-7.0.173/src/ex_docmd.c	Tue Nov 14 20:24:32 2006
+--- src/ex_docmd.c	Tue Nov 28 21:32:41 2006
+***************
+*** 9675,9680 ****
+--- 9675,9681 ----
+      win_T	*edited_win = NULL;
+      int		tabnr;
+      win_T	*tab_firstwin;
++     frame_T	*tab_topframe;
+  
+      if (ssop_flags & SSOP_BUFFERS)
+  	only_save_windows = FALSE;		/* Save ALL buffers */
+***************
+*** 9786,9791 ****
+--- 9787,9793 ----
+       * autocommands.
+       */
+      tab_firstwin = firstwin;	/* first window in tab page "tabnr" */
++     tab_topframe = topframe;
+      for (tabnr = 1; ; ++tabnr)
+      {
+  	int  need_tabnew = FALSE;
+***************
+*** 9797,9805 ****
+--- 9799,9813 ----
+  	    if (tp == NULL)
+  		break;		/* done all tab pages */
+  	    if (tp == curtab)
++ 	    {
+  		tab_firstwin = firstwin;
++ 		tab_topframe = topframe;
++ 	    }
+  	    else
++ 	    {
+  		tab_firstwin = tp->tp_firstwin;
++ 		tab_topframe = tp->tp_topframe;
++ 	    }
+  	    if (tabnr > 1)
+  		need_tabnew = TRUE;
+  	}
+***************
+*** 9838,9844 ****
+  	 */
+  	if (put_line(fd, "set splitbelow splitright") == FAIL)
+  	    return FAIL;
+! 	if (ses_win_rec(fd, topframe) == FAIL)
+  	    return FAIL;
+  	if (!p_sb && put_line(fd, "set nosplitbelow") == FAIL)
+  	    return FAIL;
+--- 9846,9852 ----
+  	 */
+  	if (put_line(fd, "set splitbelow splitright") == FAIL)
+  	    return FAIL;
+! 	if (ses_win_rec(fd, tab_topframe) == FAIL)
+  	    return FAIL;
+  	if (!p_sb && put_line(fd, "set nosplitbelow") == FAIL)
+  	    return FAIL;
+*** ../vim-7.0.173/src/version.c	Tue Nov 28 20:54:32 2006
+--- src/version.c	Tue Nov 28 21:40:07 2006
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     174,
+  /**/
+
+-- 
+ARTHUR:    Well, it doesn't matter.  Will you go and tell your master that
+           Arthur from the Court of Camelot is here.
+GUARD #1:  Listen, in order to maintain air-speed velocity, a swallow
+           needs to beat its wings 43 times every second, right?
+ARTHUR:    Please!
+                                  The Quest for the Holy Grail (Monty Python)
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.175
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.175?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.175 (added)
+++ trunk/packages/vim/upstream/patches/7.0.175 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,53 @@
+To: vim-dev at vim.org
+Subject: patch 7.0.175
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.175
+Problem:    The result of tr() is missing the terminating NUL. (Ingo Karkat)
+Solution:   Add the NUL.
+Files:	    src/eval.c
+
+
+*** ../vim-7.0.174/src/eval.c	Tue Nov 28 20:54:32 2006
+--- src/eval.c	Tue Dec  5 10:30:00 2006
+***************
+*** 16072,16077 ****
+--- 16072,16081 ----
+  	    ++instr;
+  	}
+      }
++ 
++     /* add a terminating NUL */
++     ga_grow(&ga, 1);
++     ga_append(&ga, NUL);
+  
+      rettv->vval.v_string = ga.ga_data;
+  }
+*** ../vim-7.0.174/src/version.c	Tue Nov 28 21:41:19 2006
+--- src/version.c	Tue Dec  5 10:32:58 2006
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     175,
+  /**/
+
+-- 
+BLACK KNIGHT:  I move for no man.
+ARTHUR:        So be it!
+    [hah] [parry thrust]
+    [ARTHUR chops the BLACK KNIGHT's left arm off]
+ARTHUR:        Now stand aside, worthy adversary.
+BLACK KNIGHT:  'Tis but a scratch.
+                                  The Quest for the Holy Grail (Monty Python)
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.176
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.176?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.176 (added)
+++ trunk/packages/vim/upstream/patches/7.0.176 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,54 @@
+To: vim-dev at vim.org
+Subject: patch 7.0.176
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.176
+Problem:    ":emenu" isn't executed directly, causing the encryption key
+	    prompt to fail. (Life Jazzer)
+Solution:   Fix wrong #ifdef.
+Files:	    src/menu.c
+
+
+*** ../vim-7.0.175/src/menu.c	Wed Aug 16 21:42:34 2006
+--- src/menu.c	Wed Nov 29 21:15:36 2006
+***************
+*** 2246,2252 ****
+      {
+  	/* When executing a script or function execute the commands right now.
+  	 * Otherwise put them in the typeahead buffer. */
+! #ifdef FEAT_En
+  	if (current_SID != 0)
+  	    exec_normal_cmd(menu->strings[idx], menu->noremap[idx],
+  							   menu->silent[idx]);
+--- 2246,2252 ----
+      {
+  	/* When executing a script or function execute the commands right now.
+  	 * Otherwise put them in the typeahead buffer. */
+! #ifdef FEAT_EVAL
+  	if (current_SID != 0)
+  	    exec_normal_cmd(menu->strings[idx], menu->noremap[idx],
+  							   menu->silent[idx]);
+*** ../vim-7.0.175/src/version.c	Tue Dec  5 10:33:57 2006
+--- src/version.c	Tue Dec  5 21:31:03 2006
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     176,
+  /**/
+
+-- 
+-rwxr-xr-x  1 root          24 Oct 29  1929 /bin/ed
+-rwxr-xr-t  4 root      131720 Jan  1  1970 /usr/ucb/vi
+-rwxr-xr-x  1 root  5.89824e37 Oct 22  1990 /usr/bin/emacs
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.177
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.177?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.177 (added)
+++ trunk/packages/vim/upstream/patches/7.0.177 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,142 @@
+To: vim-dev at vim.org
+Subject: patch 7.0.177
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.177
+Problem:    When the press-enter prompt gets a character from a non-remappable
+	    mapping, it's put back in the typeahead buffer as remappable,
+	    which may cause an endless loop.
+Solution:   Restore the non-remappable flag and the silent flag when putting a
+	    char back in the typeahead buffer.
+Files:	    src/getchar.c, src/message.c, src/normal.c
+
+
+*** ../vim-7.0.176/src/getchar.c	Tue Oct  3 15:36:09 2006
+--- src/getchar.c	Tue Dec  5 21:17:42 2006
+***************
+*** 76,82 ****
+   */
+  static mapblock_T	*first_abbr = NULL; /* first entry in abbrlist */
+  
+! static int		KeyNoremap = FALSE; /* remapping disabled */
+  
+  /*
+   * variables used by vgetorpeek() and flush_buffers()
+--- 76,82 ----
+   */
+  static mapblock_T	*first_abbr = NULL; /* first entry in abbrlist */
+  
+! static int		KeyNoremap = 0;	    /* remapping flags */
+  
+  /*
+   * variables used by vgetorpeek() and flush_buffers()
+***************
+*** 1035,1040 ****
+--- 1037,1044 ----
+  /*
+   * Put character "c" back into the typeahead buffer.
+   * Can be used for a character obtained by vgetc() that needs to be put back.
++  * Uses cmd_silent, KeyTyped and KeyNoremap to restore the flags belonging to
++  * the char.
+   */
+      void
+  ins_char_typebuf(c)
+***************
+*** 1061,1067 ****
+  	buf[1] = NUL;
+  #endif
+      }
+!     (void)ins_typebuf(buf, REMAP_YES, 0, !KeyTyped, FALSE);
+  }
+  
+  /*
+--- 1065,1071 ----
+  	buf[1] = NUL;
+  #endif
+      }
+!     (void)ins_typebuf(buf, KeyNoremap, 0, !KeyTyped, cmd_silent);
+  }
+  
+  /*
+***************
+*** 2270,2278 ****
+  					gotchars(typebuf.tb_buf
+  							 + typebuf.tb_off, 1);
+  				    }
+! 				    KeyNoremap = (typebuf.tb_noremap[
+! 						   typebuf.tb_off]
+! 						       & (RM_NONE|RM_SCRIPT));
+  				    del_typebuf(1, 0);
+  				}
+  				break;	    /* got character, break for loop */
+--- 2276,2283 ----
+  					gotchars(typebuf.tb_buf
+  							 + typebuf.tb_off, 1);
+  				    }
+! 				    KeyNoremap = typebuf.tb_noremap[
+! 							      typebuf.tb_off];
+  				    del_typebuf(1, 0);
+  				}
+  				break;	    /* got character, break for loop */
+***************
+*** 4196,4202 ****
+  
+      if (typebuf.tb_no_abbr_cnt)	/* abbrev. are not recursive */
+  	return FALSE;
+!     if (KeyNoremap)		/* no remapping implies no abbreviation */
+  	return FALSE;
+  
+      /*
+--- 4201,4208 ----
+  
+      if (typebuf.tb_no_abbr_cnt)	/* abbrev. are not recursive */
+  	return FALSE;
+!     if ((KeyNoremap & (RM_NONE|RM_SCRIPT)) != 0)
+! 	/* no remapping implies no abbreviation */
+  	return FALSE;
+  
+      /*
+*** ../vim-7.0.176/src/normal.c	Tue Nov  7 18:43:10 2006
+--- src/normal.c	Tue Dec  5 21:16:07 2006
+***************
+*** 651,659 ****
+  	/* Fake a "c"hange command.  When "restart_edit" is set (e.g., because
+  	 * 'insertmode' is set) fake a "d"elete command, Insert mode will
+  	 * restart automatically.
+! 	 * Insert the typed character in the typeahead buffer, so that it will
+! 	 * be mapped in Insert mode.  Required for ":lmap" to work.  May cause
+! 	 * mapping a character from ":vnoremap"... */
+  	ins_char_typebuf(c);
+  	if (restart_edit != 0)
+  	    c = 'd';
+--- 651,658 ----
+  	/* Fake a "c"hange command.  When "restart_edit" is set (e.g., because
+  	 * 'insertmode' is set) fake a "d"elete command, Insert mode will
+  	 * restart automatically.
+! 	 * Insert the typed character in the typeahead buffer, so that it can
+! 	 * be mapped in Insert mode.  Required for ":lmap" to work. */
+  	ins_char_typebuf(c);
+  	if (restart_edit != 0)
+  	    c = 'd';
+*** ../vim-7.0.176/src/version.c	Tue Dec  5 21:32:00 2006
+--- src/version.c	Tue Dec  5 21:36:07 2006
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     177,
+  /**/
+
+-- 
+5 out of 4 people have trouble with fractions.
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.178
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.178?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.178 (added)
+++ trunk/packages/vim/upstream/patches/7.0.178 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,52 @@
+To: vim-dev at vim.org
+Subject: patch 7.0.178
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.178
+Problem:    When 'enc' is "utf-8" and 'ignorecase' is set the result of ":echo
+	    ("\xe4" == "\xe4")" varies.
+Solution:   In mb_strnicmp() avoid looking past NUL bytes.
+Files:	    src/mbyte.c
+
+
+*** ../vim-7.0.177/src/mbyte.c	Wed Nov  1 18:10:36 2006
+--- src/mbyte.c	Tue Dec  5 22:04:34 2006
+***************
+*** 2294,2301 ****
+--- 2294,2307 ----
+  	    }
+  	    /* Check directly first, it's faster. */
+  	    for (j = 0; j < l; ++j)
++ 	    {
+  		if (s1[i + j] != s2[i + j])
+  		    break;
++ 		if (s1[i + j] == 0)
++ 		    /* Both stings have the same bytes but are incomplete or
++ 		     * have illegal bytes, accept them as equal. */
++ 		    l = j;
++ 	    }
+  	    if (j < l)
+  	    {
+  		/* If one of the two characters is incomplete return -1. */
+*** ../vim-7.0.177/src/version.c	Tue Dec  5 21:45:20 2006
+--- src/version.c	Tue Dec  5 22:08:08 2006
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     178,
+  /**/
+
+-- 
+Trees moving back and forth is what makes the wind blow.
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.179
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.179?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.179 (added)
+++ trunk/packages/vim/upstream/patches/7.0.179 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,57 @@
+To: vim-dev at vim.org
+Subject: patch 7.0.179
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.179
+Problem:    Using ":recover" or "vim -r" without a swapfile crashes Vim.
+Solution:   Check for "buf" to be unequal NULL. (Yukihiro Nakadaira)
+Files:	    src/memline.c
+
+
+*** ../vim-7.0.178/src/memline.c	Tue Nov 21 20:57:21 2006
+--- src/memline.c	Tue Jan  9 14:33:44 2007
+***************
+*** 1329,1336 ****
+  	    mf_put(mfp, hp, FALSE, FALSE);
+  	mf_close(mfp, FALSE);	    /* will also vim_free(mfp->mf_fname) */
+      }
+!     vim_free(buf->b_ml.ml_stack);
+!     vim_free(buf);
+      if (serious_error && called_from_main)
+  	ml_close(curbuf, TRUE);
+  #ifdef FEAT_AUTOCMD
+--- 1329,1339 ----
+  	    mf_put(mfp, hp, FALSE, FALSE);
+  	mf_close(mfp, FALSE);	    /* will also vim_free(mfp->mf_fname) */
+      }
+!     if (buf != NULL)
+!     {
+! 	vim_free(buf->b_ml.ml_stack);
+! 	vim_free(buf);
+!     }
+      if (serious_error && called_from_main)
+  	ml_close(curbuf, TRUE);
+  #ifdef FEAT_AUTOCMD
+*** ../vim-7.0.178/src/version.c	Tue Dec  5 22:09:02 2006
+--- src/version.c	Tue Jan  9 14:35:59 2007
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     179,
+  /**/
+
+-- 
+hundred-and-one symptoms of being an internet addict:
+10. And even your night dreams are in HTML.
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.180
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.180?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.180 (added)
+++ trunk/packages/vim/upstream/patches/7.0.180 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,101 @@
+To: vim-dev at vim.org
+Subject: patch 7.0.180 (extra)
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.180 (extra, after 7.0.171)
+Problem:    VMS: build failed.  Problem with swapfiles.
+Solution:   Add "compiled_arch".  Always expand path and pass it to
+	    buf_modname().  (Zoltan Arpadffy)
+Files:	    src/globals.h, src/memline.c, src/os_unix.c, runtime/menu.vim
+
+
+*** ../vim-7.0.179/src/globals.h	Sat Oct 14 14:33:21 2006
+--- src/globals.h	Tue Jan  9 14:26:51 2007
+***************
+*** 1092,1097 ****
+--- 1092,1098 ----
+  extern char_u *all_lflags;
+  # ifdef VMS
+  extern char_u *compiler_version;
++ extern char_u *compiled_arch;
+  # endif
+  extern char_u *compiled_user;
+  extern char_u *compiled_sys;
+*** ../vim-7.0.179/src/memline.c	Tue Jan  9 14:37:10 2007
+--- src/memline.c	Tue Jan  9 14:33:44 2007
+***************
+*** 3572,3579 ****
+  #else
+  	    (buf->b_p_sn || buf->b_shortname),
+  #endif
+! #ifdef RISCOS
+! 	    /* Avoid problems if fname has special chars, eg <Wimp$Scrap> */
+  	    ffname,
+  #else
+  # ifdef HAVE_READLINK
+--- 3572,3580 ----
+  #else
+  	    (buf->b_p_sn || buf->b_shortname),
+  #endif
+! #if defined(VMS) || defined(RISCOS)
+! 	    /* Avoid problems if fname has special chars, eg <Wimp$Scrap>.
+! 	     * For VMS always use full path for swapfile. */
+  	    ffname,
+  #else
+  # ifdef HAVE_READLINK
+*** ../vim-7.0.179/src/os_unix.c	Tue Nov 28 17:44:51 2006
+--- src/os_unix.c	Tue Jan  9 14:31:08 2007
+***************
+*** 2221,2227 ****
+       * behaviour should be avoided for the existing files and we need to find
+       * the exact path of the edited file.
+       */
+-     if (force || !mch_isFullName(fname))
+      {
+  	char_u	*fixed_fname = vms_fixfilename(fname);
+  	int	fd = mch_open((char *)fixed_fname, O_RDONLY | O_EXTRA, 0);
+--- 2221,2226 ----
+*** ../vim-7.0.179/runtime/menu.vim	Thu Sep 14 13:35:17 2006
+--- runtime/menu.vim	Tue Jan  9 14:31:40 2007
+***************
+*** 384,390 ****
+  " Programming menu
+  if !exists("g:ctags_command")
+    if has("vms")
+!     let g:ctags_command = "mc vim:ctags ."
+    else
+      let g:ctags_command = "ctags -R ."
+    endif
+--- 384,390 ----
+  " Programming menu
+  if !exists("g:ctags_command")
+    if has("vms")
+!     let g:ctags_command = "mc vim:ctags *.*"
+    else
+      let g:ctags_command = "ctags -R ."
+    endif
+*** ../vim-7.0.179/src/version.c	Tue Jan  9 14:37:10 2007
+--- src/version.c	Tue Jan  9 15:00:57 2007
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     180,
+  /**/
+
+-- 
+The Feynman problem solving Algorithm:
+	1) Write down the problem
+	2) Think real hard
+	3) Write down the answer
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.181
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.181?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.181 (added)
+++ trunk/packages/vim/upstream/patches/7.0.181 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,56 @@
+To: vim-dev at vim.org
+Subject: patch 7.0.181
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.181
+Problem:    When reloading a file that starts with an empty line, the reloaded
+	    buffer has an extra empty line at the end. (Motty Lentzitzky)
+Solution:   Delete all lines, don't use bufempty().
+Files:	    src/fileio.c
+
+
+*** ../vim-7.0.180/src/fileio.c	Thu Oct 12 21:15:04 2006
+--- src/fileio.c	Tue Jan  9 15:38:13 2007
+***************
+*** 6178,6185 ****
+      if (retval != FAIL)
+      {
+  	curbuf = frombuf;
+! 	while (!bufempty())
+! 	    if (ml_delete(curbuf->b_ml.ml_line_count, FALSE) == FAIL)
+  	    {
+  		/* Oops!  We could try putting back the saved lines, but that
+  		 * might fail again... */
+--- 6179,6186 ----
+      if (retval != FAIL)
+      {
+  	curbuf = frombuf;
+! 	for (lnum = curbuf->b_ml.ml_line_count; lnum > 0; --lnum)
+! 	    if (ml_delete(lnum, FALSE) == FAIL)
+  	    {
+  		/* Oops!  We could try putting back the saved lines, but that
+  		 * might fail again... */
+*** ../vim-7.0.180/src/version.c	Tue Jan  9 15:15:36 2007
+--- src/version.c	Tue Jan  9 15:41:55 2007
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     181,
+  /**/
+
+-- 
+hundred-and-one symptoms of being an internet addict:
+11. You find yourself typing "com" after every period when using a word
+    processor.com
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.182
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.182?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.182 (added)
+++ trunk/packages/vim/upstream/patches/7.0.182 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,90 @@
+To: vim-dev at vim.org
+Subject: patch 7.0.182
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.182
+Problem:    When using a mix of undo and "g-" it may no longer be possible to
+	    go to every point in the undo tree.  (Andy Wokula)
+Solution:   Correctly update pointers in the undo tree.
+Files:	    src/undo.c
+
+
+*** ../vim-7.0.181/src/undo.c	Tue Aug 29 17:28:56 2006
+--- src/undo.c	Tue Jan  9 20:18:27 2007
+***************
+*** 341,351 ****
+  	uhp->uh_alt_next = old_curhead;
+  	if (old_curhead != NULL)
+  	{
+  	    old_curhead->uh_alt_prev = uhp;
+  	    if (curbuf->b_u_oldhead == old_curhead)
+  		curbuf->b_u_oldhead = uhp;
+  	}
+! 	uhp->uh_alt_prev = NULL;
+  	if (curbuf->b_u_newhead != NULL)
+  	    curbuf->b_u_newhead->uh_prev = uhp;
+  
+--- 341,355 ----
+  	uhp->uh_alt_next = old_curhead;
+  	if (old_curhead != NULL)
+  	{
++ 	    uhp->uh_alt_prev = old_curhead->uh_alt_prev;
++ 	    if (uhp->uh_alt_prev != NULL)
++ 		uhp->uh_alt_prev->uh_alt_next = uhp;
+  	    old_curhead->uh_alt_prev = uhp;
+  	    if (curbuf->b_u_oldhead == old_curhead)
+  		curbuf->b_u_oldhead = uhp;
+  	}
+! 	else
+! 	    uhp->uh_alt_prev = NULL;
+  	if (curbuf->b_u_newhead != NULL)
+  	    curbuf->b_u_newhead->uh_prev = uhp;
+  
+***************
+*** 856,861 ****
+--- 860,870 ----
+  	uhp = curbuf->b_u_curhead;
+  	while (uhp != NULL)
+  	{
++ 	    /* Go back to the first branch with a mark. */
++ 	    while (uhp->uh_alt_prev != NULL
++ 					&& uhp->uh_alt_prev->uh_walk == mark)
++ 		uhp = uhp->uh_alt_prev;
++ 
+  	    /* Find the last branch with a mark, that's the one. */
+  	    last = uhp;
+  	    while (last->uh_alt_next != NULL
+***************
+*** 865,870 ****
+--- 874,881 ----
+  	    {
+  		/* Make the used branch the first entry in the list of
+  		 * alternatives to make "u" and CTRL-R take this branch. */
++ 		while (uhp->uh_alt_prev != NULL)
++ 		    uhp = uhp->uh_alt_prev;
+  		if (last->uh_alt_next != NULL)
+  		    last->uh_alt_next->uh_alt_prev = last->uh_alt_prev;
+  		last->uh_alt_prev->uh_alt_next = last->uh_alt_next;
+*** ../vim-7.0.181/src/version.c	Tue Jan  9 15:43:39 2007
+--- src/version.c	Tue Jan  9 20:26:47 2007
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     182,
+  /**/
+
+-- 
+hundred-and-one symptoms of being an internet addict:
+13. You refer to going to the bathroom as downloading.
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.183
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.183?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.183 (added)
+++ trunk/packages/vim/upstream/patches/7.0.183 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,163 @@
+To: vim-dev at vim.org
+Subject: patch 7.0.183
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.183
+Problem:    Crash in ":let" when redirecting to a variable that's being
+	    displayed. (Thomas Link)
+Solution:   When redirecting to a variable only do the assignment when
+	    stopping redirection to avoid that setting the variable causes a
+	    freed string to be accessed.
+Files:	    src/eval.c
+
+
+*** ../vim-7.0.182/src/eval.c	Tue Dec  5 10:33:57 2006
+--- src/eval.c	Sun Jan 14 14:20:49 2007
+***************
+*** 898,903 ****
+--- 898,904 ----
+  }
+  
+  static lval_T	*redir_lval = NULL;
++ static garray_T redir_ga;	/* only valid when redir_lval is not NULL */
+  static char_u	*redir_endp = NULL;
+  static char_u	*redir_varname = NULL;
+  
+***************
+*** 932,937 ****
+--- 933,941 ----
+  	return FAIL;
+      }
+  
++     /* The output is stored in growarray "redir_ga" until redirection ends. */
++     ga_init2(&redir_ga, (int)sizeof(char), 500);
++ 
+      /* Parse the variable name (can be a dict or list entry). */
+      redir_endp = get_lval(redir_varname, NULL, redir_lval, FALSE, FALSE, FALSE,
+  							     FNE_CHECK_START);
+***************
+*** 974,1015 ****
+  }
+  
+  /*
+!  * Append "value[len]" to the variable set by var_redir_start().
+   */
+      void
+! var_redir_str(value, len)
+      char_u	*value;
+!     int		len;
+  {
+!     char_u	*val;
+!     typval_T	tv;
+!     int		save_emsg;
+!     int		err;
+  
+      if (redir_lval == NULL)
+  	return;
+  
+!     if (len == -1)
+! 	/* Append the entire string */
+! 	val = vim_strsave(value);
+!     else
+! 	/* Append only the specified number of characters */
+! 	val = vim_strnsave(value, len);
+!     if (val == NULL)
+! 	return;
+! 
+!     tv.v_type = VAR_STRING;
+!     tv.vval.v_string = val;
+  
+!     save_emsg = did_emsg;
+!     did_emsg = FALSE;
+!     set_var_lval(redir_lval, redir_endp, &tv, FALSE, (char_u *)".");
+!     err = did_emsg;
+!     did_emsg |= save_emsg;
+!     if (err)
+  	var_redir_stop();
+- 
+-     vim_free(tv.vval.v_string);
+  }
+  
+  /*
+--- 978,1013 ----
+  }
+  
+  /*
+!  * Append "value[value_len]" to the variable set by var_redir_start().
+!  * The actual appending is postponed until redirection ends, because the value
+!  * appended may in fact be the string we write to, changing it may cause freed
+!  * memory to be used:
+!  *   :redir => foo
+!  *   :let foo
+!  *   :redir END
+   */
+      void
+! var_redir_str(value, value_len)
+      char_u	*value;
+!     int		value_len;
+  {
+!     size_t	len;
+  
+      if (redir_lval == NULL)
+  	return;
+  
+!     if (value_len == -1)
+! 	len = STRLEN(value);	/* Append the entire string */
+!     else
+! 	len = value_len;	/* Append only "value_len" characters */
+  
+!     if (ga_grow(&redir_ga, (int)len) == OK)
+!     {
+! 	mch_memmove((char *)redir_ga.ga_data + redir_ga.ga_len, value, len);
+! 	redir_ga.ga_len += len;
+!     }
+!     else
+  	var_redir_stop();
+  }
+  
+  /*
+***************
+*** 1018,1025 ****
+--- 1016,1034 ----
+      void
+  var_redir_stop()
+  {
++     typval_T	tv;
++ 
+      if (redir_lval != NULL)
+      {
++ 	/* Append the trailing NUL. */
++ 	ga_append(&redir_ga, NUL);
++ 
++ 	/* Assign the text to the variable. */
++ 	tv.v_type = VAR_STRING;
++ 	tv.vval.v_string = redir_ga.ga_data;
++ 	set_var_lval(redir_lval, redir_endp, &tv, FALSE, (char_u *)".");
++ 	vim_free(tv.vval.v_string);
++ 
+  	clear_lval(redir_lval);
+  	vim_free(redir_lval);
+  	redir_lval = NULL;
+*** ../vim-7.0.182/src/version.c	Tue Jan  9 20:29:55 2007
+--- src/version.c	Sun Jan 14 15:23:23 2007
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     183,
+  /**/
+
+-- 
+How To Keep A Healthy Level Of Insanity:
+16. Have your coworkers address you by your wrestling name, Rock Hard Kim.
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.184
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.184?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.184 (added)
+++ trunk/packages/vim/upstream/patches/7.0.184 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,64 @@
+To: vim-dev at vim.org
+Subject: patch 7.0.184
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.184
+Problem:    When the cscope program is called "mlcscope" the Cscope interface
+	    doesn't work.
+Solution:   Accept "\S*cscope:" instead of "cscope:". (Frodak D. Baksik)
+Files:	    src/if_cscope.c
+
+
+*** ../vim-7.0.183/src/if_cscope.c	Tue Nov 21 11:43:49 2006
+--- src/if_cscope.c	Fri Jan 12 20:02:37 2007
+***************
+*** 627,636 ****
+  	 * If the database is out of date, or there's some other problem,
+  	 * cscope will output error messages before the number-of-lines output.
+  	 * Display/discard any output that doesn't match what we want.
+  	 */
+  	if ((stok = strtok(buf, (const char *)" ")) == NULL)
+  	    continue;
+! 	if (strcmp((const char *)stok, "cscope:"))
+  	    continue;
+  
+  	if ((stok = strtok(NULL, (const char *)" ")) == NULL)
+--- 627,637 ----
+  	 * If the database is out of date, or there's some other problem,
+  	 * cscope will output error messages before the number-of-lines output.
+  	 * Display/discard any output that doesn't match what we want.
++ 	 * Accept "\S*cscope: X lines", also matches "mlcscope".
+  	 */
+  	if ((stok = strtok(buf, (const char *)" ")) == NULL)
+  	    continue;
+! 	if (strstr((const char *)stok, "cscope:") == NULL)
+  	    continue;
+  
+  	if ((stok = strtok(NULL, (const char *)" ")) == NULL)
+*** ../vim-7.0.183/src/version.c	Sun Jan 14 15:27:05 2007
+--- src/version.c	Tue Jan 16 15:16:41 2007
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     184,
+  /**/
+
+-- 
+The technology involved in making anything invisible is so infinitely
+complex that nine hundred and ninety-nine billion, nine hundred and
+ninety-nine million, nine hundred and ninety-nine thousand, nine hundred
+and ninety-nine times out of a trillion it is much simpler and more
+effective just to take the thing away and do without it.
+		-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.185
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.185?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.185 (added)
+++ trunk/packages/vim/upstream/patches/7.0.185 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,105 @@
+To: vim-dev at vim.org
+Subject: patch 7.0.185
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.185
+Problem:    Multi-byte characters in a message are displayed with attributes
+	    from what comes before it.
+Solution:   Don't use the attributes for a multi-byte character.  Do use
+	    attributes for special characters. (Yukihiro Nakadaira)
+Files:	    src/message.c
+
+
+*** ../vim-7.0.184/src/message.c	Sat Oct 14 14:33:21 2006
+--- src/message.c	Sat Jan 13 17:27:31 2007
+***************
+*** 1556,1562 ****
+      int		c_extra = 0;
+      char_u	*p_extra = NULL;	    /* init to make SASC shut up */
+      int		n;
+!     int		attr= 0;
+      char_u	*trail = NULL;
+  #ifdef FEAT_MBYTE
+      int		l;
+--- 1556,1562 ----
+      int		c_extra = 0;
+      char_u	*p_extra = NULL;	    /* init to make SASC shut up */
+      int		n;
+!     int		attr = 0;
+      char_u	*trail = NULL;
+  #ifdef FEAT_MBYTE
+      int		l;
+***************
+*** 1581,1587 ****
+  
+      while (!got_int)
+      {
+! 	if (n_extra)
+  	{
+  	    --n_extra;
+  	    if (c_extra)
+--- 1581,1587 ----
+  
+      while (!got_int)
+      {
+! 	if (n_extra > 0)
+  	{
+  	    --n_extra;
+  	    if (c_extra)
+***************
+*** 1595,1601 ****
+  	    col += (*mb_ptr2cells)(s);
+  	    mch_memmove(buf, s, (size_t)l);
+  	    buf[l] = NUL;
+! 	    msg_puts_attr(buf, attr);
+  	    s += l;
+  	    continue;
+  	}
+--- 1595,1601 ----
+  	    col += (*mb_ptr2cells)(s);
+  	    mch_memmove(buf, s, (size_t)l);
+  	    buf[l] = NUL;
+! 	    msg_puts(buf);
+  	    s += l;
+  	    continue;
+  	}
+***************
+*** 1635,1640 ****
+--- 1635,1643 ----
+  		p_extra = transchar_byte(c);
+  		c_extra = NUL;
+  		c = *p_extra++;
++ 		/* Use special coloring to be able to distinguish <hex> from
++ 		 * the same in plain text. */
++ 		attr = hl_attr(HLF_8);
+  	    }
+  	    else if (c == ' ' && trail != NULL && s > trail)
+  	    {
+*** ../vim-7.0.184/src/version.c	Tue Jan 16 15:17:43 2007
+--- src/version.c	Tue Jan 16 15:43:37 2007
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     185,
+  /**/
+
+-- 
+This planet has -- or rather had -- a problem, which was this: most
+of the people living on it were unhappy for pretty much of the time.
+Many solutions were suggested for this problem, but most of these
+were largely concerned with the movements of small green pieces of
+paper, which is odd because on the whole it wasn't the small green
+pieces of paper that were unhappy.
+		-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.186
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.186?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.186 (added)
+++ trunk/packages/vim/upstream/patches/7.0.186 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,58 @@
+To: vim-dev at vim.org
+Subject: patch 7.0.186
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.186
+Problem:    Get an ml_get error when 'encoding' is "utf-8" and searching for
+	    "/\_s*/e" in an empty buffer.  (Andrew Maykov)
+Solution:   Don't try getting the line just below the last line.
+Files:	    src/search.c
+
+
+*** ../vim-7.0.185/src/search.c	Sat Oct 14 14:33:21 2006
+--- src/search.c	Tue Jan 16 15:31:28 2007
+***************
+*** 812,818 ****
+  #ifdef FEAT_MBYTE
+  			if (has_mbyte)
+  			{
+! 			    ptr = ml_get_buf(buf, pos->lnum, FALSE);
+  			    pos->col -= (*mb_head_off)(ptr, ptr + pos->col);
+  			}
+  #endif
+--- 812,822 ----
+  #ifdef FEAT_MBYTE
+  			if (has_mbyte)
+  			{
+! 			    /* 'e' offset may put us just below the last line */
+! 			    if (pos->lnum > buf->b_ml.ml_line_count)
+! 				ptr = "";
+! 			    else
+! 				ptr = ml_get_buf(buf, pos->lnum, FALSE);
+  			    pos->col -= (*mb_head_off)(ptr, ptr + pos->col);
+  			}
+  #endif
+*** ../vim-7.0.185/src/version.c	Tue Jan 16 15:44:59 2007
+--- src/version.c	Tue Jan 16 15:59:37 2007
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     186,
+  /**/
+
+-- 
+Time is an illusion.  Lunchtime doubly so.
+		-- Ford Prefect, in Douglas Adams'
+		   "The Hitchhiker's Guide to the Galaxy"
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.187
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.187?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.187 (added)
+++ trunk/packages/vim/upstream/patches/7.0.187 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,190 @@
+To: vim-dev at vim.org
+Subject: patch 7.0.187
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.187
+Problem:    Can't source a remote script properly.
+Solution:   Add the SourceCmd event. (Charles Campbell)
+Files:	    runtime/doc/autocmd.txt, src/ex_cmds2.c, src/fileio.c, src/vim.h
+
+
+*** ../vim-7.0.186/runtime/doc/autocmd.txt	Sun May  7 17:07:33 2006
+--- runtime/doc/autocmd.txt	Tue Jan 16 21:29:14 2007
+***************
+*** 1,4 ****
+! *autocmd.txt*   For Vim version 7.0.  Last change: 2006 May 06
+  
+  
+  		  VIM REFERENCE MANUAL    by Bram Moolenaar
+--- 1,4 ----
+! *autocmd.txt*   For Vim version 7.0.  Last change: 2007 Jan 16
+  
+  
+  		  VIM REFERENCE MANUAL    by Bram Moolenaar
+***************
+*** 279,284 ****
+--- 279,285 ----
+  |FuncUndefined|		a user function is used but it isn't defined
+  |SpellFileMissing|	a spell file is used but it can't be found
+  |SourcePre|		before sourcing a Vim script
++ |SourceCmd|		before sourcing a Vim script |Cmd-event|
+  
+  |VimResized|		after the Vim window size changed
+  |FocusGained|		Vim got input focus
+***************
+*** 690,699 ****
+  				Can be used to check for any changed files.
+  							*SourcePre*
+  SourcePre			Before sourcing a Vim script. |:source|
+  							*SpellFileMissing*
+  SpellFileMissing		When trying to load a spell checking file and
+! 				it can't be found.  <amatch> is the language,
+! 				'encoding' also matters.  See
+  				|spell-SpellFileMissing|.
+  							*StdinReadPost*
+  StdinReadPost			After reading from the stdin into the buffer,
+--- 701,717 ----
+  				Can be used to check for any changed files.
+  							*SourcePre*
+  SourcePre			Before sourcing a Vim script. |:source|
++ 				<afile> is the name of the file being sourced.
++ 							*SourceCmd*
++ SourceCmd			When sourcing a Vim script. |:source|
++ 				<afile> is the name of the file being sourced.
++ 				The autocommand must source this file.
++ 				|Cmd-event|
+  							*SpellFileMissing*
+  SpellFileMissing		When trying to load a spell checking file and
+! 				it can't be found.  The pattern is matched
+! 				against the language.  <amatch> is the
+! 				language, 'encoding' also matters.  See
+  				|spell-SpellFileMissing|.
+  							*StdinReadPost*
+  StdinReadPost			After reading from the stdin into the buffer,
+***************
+*** 1219,1226 ****
+  
+  							*Cmd-event*
+  When using one of the "*Cmd" events, the matching autocommands are expected to
+! do the file reading or writing.  This can be used when working with a special
+! kind of file, for example on a remote system.
+  CAREFUL: If you use these events in a wrong way, it may have the effect of
+  making it impossible to read or write the matching files!  Make sure you test
+  your autocommands properly.  Best is to use a pattern that will never match a
+--- 1238,1245 ----
+  
+  							*Cmd-event*
+  When using one of the "*Cmd" events, the matching autocommands are expected to
+! do the file reading, writing or sourcing.  This can be used when working with
+! a special kind of file, for example on a remote system.
+  CAREFUL: If you use these events in a wrong way, it may have the effect of
+  making it impossible to read or write the matching files!  Make sure you test
+  your autocommands properly.  Best is to use a pattern that will never match a
+***************
+*** 1233,1241 ****
+  original file isn't needed for recovery.  You might want to do this only when
+  you expect the file to be modified.
+  
+! The |v:cmdarg| variable holds the "++enc=" and "++ff=" argument that are
+! effective.  These should be used for the command that reads/writes the file.
+! The |v:cmdbang| variable is one when "!" was used, zero otherwise.
+  
+  See the $VIMRUNTIME/plugin/netrw.vim for examples.
+  
+--- 1252,1261 ----
+  original file isn't needed for recovery.  You might want to do this only when
+  you expect the file to be modified.
+  
+! For file read and write commands the |v:cmdarg| variable holds the "++enc="
+! and "++ff=" argument that are effective.  These should be used for the command
+! that reads/writes the file.  The |v:cmdbang| variable is one when "!" was
+! used, zero otherwise.
+  
+  See the $VIMRUNTIME/plugin/netrw.vim for examples.
+  
+*** ../vim-7.0.186/src/ex_cmds2.c	Tue Aug 29 17:28:56 2006
+--- src/ex_cmds2.c	Tue Jan 16 18:30:40 2007
+***************
+*** 2811,2816 ****
+--- 2811,2827 ----
+      }
+  
+  #ifdef FEAT_AUTOCMD
++     /* Apply SourceCmd autocommands, they should get the file and source it. */
++     if (has_autocmd(EVENT_SOURCECMD, fname_exp, NULL)
++ 	    && apply_autocmds(EVENT_SOURCECMD, fname_exp, fname_exp,
++ 							       FALSE, curbuf))
++ # ifdef FEAT_EVAL
++ 	return aborting() ? FAIL : OK;
++ # else
++ 	return OK;
++ # endif
++ 
++     /* Apply SourcePre autocommands, they may get the file. */
+      apply_autocmds(EVENT_SOURCEPRE, fname_exp, fname_exp, FALSE, curbuf);
+  #endif
+  
+*** ../vim-7.0.186/src/fileio.c	Tue Jan  9 15:43:39 2007
+--- src/fileio.c	Tue Jan 16 18:23:35 2007
+***************
+*** 7019,7024 ****
+--- 7020,7026 ----
+      {"ShellCmdPost",	EVENT_SHELLCMDPOST},
+      {"ShellFilterPost",	EVENT_SHELLFILTERPOST},
+      {"SourcePre",	EVENT_SOURCEPRE},
++     {"SourceCmd",	EVENT_SOURCECMD},
+      {"SpellFileMissing",EVENT_SPELLFILEMISSING},
+      {"StdinReadPost",	EVENT_STDINREADPOST},
+      {"StdinReadPre",	EVENT_STDINREADPRE},
+*** ../vim-7.0.186/src/vim.h	Wed Nov  1 15:31:02 2006
+--- src/vim.h	Tue Jan 16 18:22:28 2007
+***************
+*** 1102,1108 ****
+      EVENT_COLORSCHEME,		/* after loading a colorscheme */
+      EVENT_FILEAPPENDPOST,	/* after appending to a file */
+      EVENT_FILEAPPENDPRE,	/* before appending to a file */
+!     EVENT_FILEAPPENDCMD,	/* appende to a file using command */
+      EVENT_FILECHANGEDSHELL,	/* after shell command that changed file */
+      EVENT_FILECHANGEDSHELLPOST,	/* after (not) reloading changed file */
+      EVENT_FILECHANGEDRO,	/* before first change to read-only file */
+--- 1102,1108 ----
+      EVENT_COLORSCHEME,		/* after loading a colorscheme */
+      EVENT_FILEAPPENDPOST,	/* after appending to a file */
+      EVENT_FILEAPPENDPRE,	/* before appending to a file */
+!     EVENT_FILEAPPENDCMD,	/* append to a file using command */
+      EVENT_FILECHANGEDSHELL,	/* after shell command that changed file */
+      EVENT_FILECHANGEDSHELLPOST,	/* after (not) reloading changed file */
+      EVENT_FILECHANGEDRO,	/* before first change to read-only file */
+***************
+*** 1147,1152 ****
+--- 1147,1153 ----
+      EVENT_REMOTEREPLY,		/* upon string reception from a remote vim */
+      EVENT_SWAPEXISTS,		/* found existing swap file */
+      EVENT_SOURCEPRE,		/* before sourcing a Vim script */
++     EVENT_SOURCECMD,		/* sourcing a Vim script using command */
+      EVENT_SPELLFILEMISSING,	/* spell file missing */
+      EVENT_CURSORMOVED,		/* cursor was moved */
+      EVENT_CURSORMOVEDI,		/* cursor was moved in Insert mode */
+*** ../vim-7.0.186/src/version.c	Tue Jan 16 16:00:38 2007
+--- src/version.c	Tue Jan 16 20:37:23 2007
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     187,
+  /**/
+
+-- 
+hundred-and-one symptoms of being an internet addict:
+29. Your phone bill comes to your doorstep in a box.
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Added: trunk/packages/vim/upstream/patches/7.0.188
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/upstream/patches/7.0.188?rev=864&op=file
==============================================================================
--- trunk/packages/vim/upstream/patches/7.0.188 (added)
+++ trunk/packages/vim/upstream/patches/7.0.188 Tue Jan 23 14:17:23 2007
@@ -1,0 +1,51 @@
+To: vim-dev at vim.org
+Subject: patch 7.0.188
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.0.188 (after 7.0.186)
+Problem:    Warning for wrong pointer type.
+Solution:   Add a type cast.
+Files:	    src/search.c
+
+
+*** ../vim-7.0.187/src/search.c	Tue Jan 16 16:00:38 2007
+--- src/search.c	Tue Jan 16 21:16:01 2007
+***************
+*** 814,820 ****
+  			{
+  			    /* 'e' offset may put us just below the last line */
+  			    if (pos->lnum > buf->b_ml.ml_line_count)
+! 				ptr = "";
+  			    else
+  				ptr = ml_get_buf(buf, pos->lnum, FALSE);
+  			    pos->col -= (*mb_head_off)(ptr, ptr + pos->col);
+--- 814,820 ----
+  			{
+  			    /* 'e' offset may put us just below the last line */
+  			    if (pos->lnum > buf->b_ml.ml_line_count)
+! 				ptr = (char_u *)"";
+  			    else
+  				ptr = ml_get_buf(buf, pos->lnum, FALSE);
+  			    pos->col -= (*mb_head_off)(ptr, ptr + pos->col);
+*** ../vim-7.0.187/src/version.c	Tue Jan 16 21:31:38 2007
+--- src/version.c	Tue Jan 16 21:33:05 2007
+***************
+*** 668,669 ****
+--- 668,671 ----
+  {   /* Add new patch number below this line */
++ /**/
++     188,
+  /**/
+
+-- 
+Due knot trussed yore spell chequer two fined awl miss steaks.
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///




More information about the pkg-vim-maintainers mailing list