packages: vim/vim.spec, vim/7.3.290 (NEW), vim/7.3.291 (NEW), vim/7.3.292 (...

arekm arekm at pld-linux.org
Sun Nov 13 11:55:00 CET 2011


Author: arekm                        Date: Sun Nov 13 10:55:00 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 7.3.353

---- Files affected:
packages/vim:
   vim.spec (1.562 -> 1.563) , 7.3.290 (NONE -> 1.1)  (NEW), 7.3.291 (NONE -> 1.1)  (NEW), 7.3.292 (NONE -> 1.1)  (NEW), 7.3.293 (NONE -> 1.1)  (NEW), 7.3.294 (NONE -> 1.1)  (NEW), 7.3.295 (NONE -> 1.1)  (NEW), 7.3.296 (NONE -> 1.1)  (NEW), 7.3.297 (NONE -> 1.1)  (NEW), 7.3.298 (NONE -> 1.1)  (NEW), 7.3.299 (NONE -> 1.1)  (NEW), 7.3.300 (NONE -> 1.1)  (NEW), 7.3.301 (NONE -> 1.1)  (NEW), 7.3.302 (NONE -> 1.1)  (NEW), 7.3.303 (NONE -> 1.1)  (NEW), 7.3.304 (NONE -> 1.1)  (NEW), 7.3.305 (NONE -> 1.1)  (NEW), 7.3.306 (NONE -> 1.1)  (NEW), 7.3.307 (NONE -> 1.1)  (NEW), 7.3.308 (NONE -> 1.1)  (NEW), 7.3.309 (NONE -> 1.1)  (NEW), 7.3.310 (NONE -> 1.1)  (NEW), 7.3.311 (NONE -> 1.1)  (NEW), 7.3.312 (NONE -> 1.1)  (NEW), 7.3.313 (NONE -> 1.1)  (NEW), 7.3.314 (NONE -> 1.1)  (NEW), 7.3.315 (NONE -> 1.1)  (NEW), 7.3.316 (NONE -> 1.1)  (NEW), 7.3.317 (NONE -> 1.1)  (NEW), 7.3.318 (NONE -> 1.1)  (NEW), 7.3.319 (NONE -> 1.1)  (NEW), 7.3.320 (NONE -> 1.1)  (NEW), 7.3.321 (NONE -> 1.1)  (NEW), 7.3.322 (NONE -> 1.1)  (NEW), 7.3.323 (NONE -> 1.1)  (NEW), 7.3.324 (NONE -> 1.1)  (NEW), 7.3.325 (NONE -> 1.1)  (NEW), 7.3.326 (NONE -> 1.1)  (NEW), 7.3.327 (NONE -> 1.1)  (NEW), 7.3.328 (NONE -> 1.1)  (NEW), 7.3.329 (NONE -> 1.1)  (NEW), 7.3.330 (NONE -> 1.1)  (NEW), 7.3.331 (NONE -> 1.1)  (NEW), 7.3.332 (NONE -> 1.1)  (NEW), 7.3.333 (NONE -> 1.1)  (NEW), 7.3.334 (NONE -> 1.1)  (NEW), 7.3.335 (NONE -> 1.1)  (NEW), 7.3.336 (NONE -> 1.1)  (NEW), 7.3.337 (NONE -> 1.1)  (NEW), 7.3.338 (NONE -> 1.1)  (NEW), 7.3.339 (NONE -> 1.1)  (NEW), 7.3.340 (NONE -> 1.1)  (NEW), 7.3.341 (NONE -> 1.1)  (NEW), 7.3.342 (NONE -> 1.1)  (NEW), 7.3.343 (NONE -> 1.1)  (NEW), 7.3.344 (NONE -> 1.1)  (NEW), 7.3.345 (NONE -> 1.1)  (NEW), 7.3.346 (NONE -> 1.1)  (NEW), 7.3.347 (NONE -> 1.1)  (NEW), 7.3.348 (NONE -> 1.1)  (NEW), 7.3.349 (NONE -> 1.1)  (NEW), 7.3.350 (NONE -> 1.1)  (NEW), 7.3.351 (NONE -> 1.1)  (NEW), 7.3.352 (NONE -> 1.1)  (NEW), 7.3.353 (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/vim/vim.spec
diff -u packages/vim/vim.spec:1.562 packages/vim/vim.spec:1.563
--- packages/vim/vim.spec:1.562	Fri Nov  4 09:17:58 2011
+++ packages/vim/vim.spec	Sun Nov 13 11:54:52 2011
@@ -26,8 +26,8 @@
 # curl -s ftp://ftp.vim.org/pub/editors/vim/patches/7.3/MD5SUMS | grep -vF .gz | tail -n1 | awk '{print $2}'
 
 %define		ver		7.3
-%define		patchlevel	289
-%define		rel		4
+%define		patchlevel	353
+%define		rel		1
 Summary:	Vi IMproved - a Vi clone
 Summary(de.UTF-8):	VIsual editor iMproved
 Summary(es.UTF-8):	Editor visual incrementado
@@ -1395,6 +1395,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.563  2011/11/13 10:54:52  arekm
+- up to 7.3.353
+
 Revision 1.562  2011/11/04 08:17:58  hawk
 - reversed logic in %if "%{pld_release}", only AC will keep separate tinfo
 

================================================================
Index: packages/vim/7.3.290
diff -u /dev/null packages/vim/7.3.290:1.1
--- /dev/null	Sun Nov 13 11:55:00 2011
+++ packages/vim/7.3.290	Sun Nov 13 11:54:52 2011
@@ -0,0 +1,75 @@
+To: vim_dev at googlegroups.com
+Subject: Patch 7.3.290
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.3.290
+Problem:    When a BufWriteCmd autocommand resets 'modified' this doesn't
+	    change older buffer states to be marked as 'modified' like
+	    ":write" does.  (Yukihiro Nakadaira)
+Solution:   When the BufWriteCmd resets 'modified' then adjust the undo
+	    information like ":write" does.
+Files:	    src/fileio.c
+
+
+*** ../vim-7.3.289/src/fileio.c	2011-07-20 18:29:33.000000000 +0200
+--- src/fileio.c	2011-08-29 21:49:27.000000000 +0200
+***************
+*** 3342,3349 ****
+  	}
+  	else if (reset_changed && whole)
+  	{
+! 	    if (!(did_cmd = apply_autocmds_exarg(EVENT_BUFWRITECMD,
+! 					 sfname, sfname, FALSE, curbuf, eap)))
+  	    {
+  #ifdef FEAT_QUICKFIX
+  		if (overwriting && bt_nofile(curbuf))
+--- 3342,3363 ----
+  	}
+  	else if (reset_changed && whole)
+  	{
+! 	    int was_changed = curbufIsChanged();
+! 
+! 	    did_cmd = apply_autocmds_exarg(EVENT_BUFWRITECMD,
+! 					  sfname, sfname, FALSE, curbuf, eap);
+! 	    if (did_cmd)
+! 	    {
+! 		if (was_changed && !curbufIsChanged())
+! 		{
+! 		    /* Written everything correctly and BufWriteCmd has reset
+! 		     * 'modified': Correct the undo information so that an
+! 		     * undo now sets 'modified'. */
+! 		    u_unchanged(curbuf);
+! 		    u_update_save_nr(curbuf);
+! 		}
+! 	    }
+! 	    else
+  	    {
+  #ifdef FEAT_QUICKFIX
+  		if (overwriting && bt_nofile(curbuf))
+*** ../vim-7.3.289/src/version.c	2011-08-28 16:02:23.000000000 +0200
+--- src/version.c	2011-09-02 11:37:25.000000000 +0200
+***************
+*** 711,712 ****
+--- 711,714 ----
+  {   /* Add new patch number below this line */
++ /**/
++     290,
+  /**/
+
+-- 
+OLD WOMAN: Well, how did you become king, then?
+ARTHUR: The Lady of the Lake, her arm clad in the purest shimmering samite,
+        held Excalibur aloft from the bosom of the water to signify by Divine
+        Providence ...  that I, Arthur, was to carry Excalibur ...  That is
+        why I am your king!
+                 "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/ \\\
+\\\  an exciting new programming language -- http://www.Zimbu.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

================================================================
Index: packages/vim/7.3.291
diff -u /dev/null packages/vim/7.3.291:1.1
--- /dev/null	Sun Nov 13 11:55:00 2011
+++ packages/vim/7.3.291	Sun Nov 13 11:54:52 2011
@@ -0,0 +1,125 @@
+To: vim_dev at googlegroups.com
+Subject: Patch 7.3.291
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.3.291
+Problem:    Configure doesn't work properly with Python3.
+Solution:   Put -ldl before $LDFLAGS. Add PY3_NO_RTLD_GLOBAL. (Roland
+	    Puntaier)
+Files:	    src/config.h.in, src/auto/configure, src/configure.in
+
+
+*** ../vim-7.3.290/src/config.h.in	2010-10-27 16:49:41.000000000 +0200
+--- src/config.h.in	2011-09-02 11:22:21.000000000 +0200
+***************
+*** 346,351 ****
+--- 346,354 ----
+  /* Define if dynamic python does not require RTLD_GLOBAL */
+  #undef PY_NO_RTLD_GLOBAL
+  
++ /* Define if dynamic python3 does not require RTLD_GLOBAL */
++ #undef PY3_NO_RTLD_GLOBAL
++ 
+  /* Define if you want to include the Ruby interpreter. */
+  #undef FEAT_RUBY
+  
+*** ../vim-7.3.290/src/auto/configure	2011-07-15 13:09:46.000000000 +0200
+--- src/auto/configure	2011-09-02 11:23:15.000000000 +0200
+***************
+*** 5733,5739 ****
+    cflags_save=$CFLAGS
+    CFLAGS="$CFLAGS $PYTHON_CFLAGS"
+    ldflags_save=$LDFLAGS
+!   LDFLAGS="$LDFLAGS -ldl"
+    if test "$cross_compiling" = yes; then :
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+--- 5733,5739 ----
+    cflags_save=$CFLAGS
+    CFLAGS="$CFLAGS $PYTHON_CFLAGS"
+    ldflags_save=$LDFLAGS
+!     LDFLAGS="-ldl $LDFLAGS"
+    if test "$cross_compiling" = yes; then :
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+***************
+*** 5798,5804 ****
+    cflags_save=$CFLAGS
+    CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
+    ldflags_save=$LDFLAGS
+!   LDFLAGS="$LDFLAGS -ldl"
+    if test "$cross_compiling" = yes; then :
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+--- 5798,5804 ----
+    cflags_save=$CFLAGS
+    CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
+    ldflags_save=$LDFLAGS
+!     LDFLAGS="-ldl $LDFLAGS"
+    if test "$cross_compiling" = yes; then :
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+*** ../vim-7.3.290/src/configure.in	2011-07-15 13:09:46.000000000 +0200
+--- src/configure.in	2011-09-02 11:19:51.000000000 +0200
+***************
+*** 1161,1167 ****
+    cflags_save=$CFLAGS
+    CFLAGS="$CFLAGS $PYTHON_CFLAGS"
+    ldflags_save=$LDFLAGS
+!   LDFLAGS="$LDFLAGS -ldl"
+    AC_RUN_IFELSE([
+      #include <dlfcn.h>
+      /* If this program fails, then RTLD_GLOBAL is needed.
+--- 1161,1168 ----
+    cflags_save=$CFLAGS
+    CFLAGS="$CFLAGS $PYTHON_CFLAGS"
+    ldflags_save=$LDFLAGS
+!   dnl -ldl must go first to make this work on Archlinux (Roland Puntaier)
+!   LDFLAGS="-ldl $LDFLAGS"
+    AC_RUN_IFELSE([
+      #include <dlfcn.h>
+      /* If this program fails, then RTLD_GLOBAL is needed.
+***************
+*** 1205,1211 ****
+    cflags_save=$CFLAGS
+    CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
+    ldflags_save=$LDFLAGS
+!   LDFLAGS="$LDFLAGS -ldl"
+    AC_RUN_IFELSE([
+      #include <dlfcn.h>
+      #include <wchar.h>
+--- 1206,1213 ----
+    cflags_save=$CFLAGS
+    CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
+    ldflags_save=$LDFLAGS
+!   dnl -ldl must go first to make this work on Archlinux (Roland Puntaier)
+!   LDFLAGS="-ldl $LDFLAGS"
+    AC_RUN_IFELSE([
+      #include <dlfcn.h>
+      #include <wchar.h>
+*** ../vim-7.3.290/src/version.c	2011-09-02 11:56:15.000000000 +0200
+--- src/version.c	2011-09-02 12:25:13.000000000 +0200
+***************
+*** 711,712 ****
+--- 711,714 ----
+  {   /* Add new patch number below this line */
++ /**/
++     291,
+  /**/
+
+-- 
+DENNIS: Look,  strange women lying on their backs in ponds handing out
+        swords ... that's no basis for a system of government.  Supreme
+        executive power derives from a mandate from the masses, not from some
+        farcical aquatic ceremony.
+                 "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/ \\\
+\\\  an exciting new programming language -- http://www.Zimbu.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

================================================================
Index: packages/vim/7.3.292
diff -u /dev/null packages/vim/7.3.292:1.1
--- /dev/null	Sun Nov 13 11:55:00 2011
+++ packages/vim/7.3.292	Sun Nov 13 11:54:52 2011
@@ -0,0 +1,55 @@
+To: vim_dev at googlegroups.com
+Subject: Patch 7.3.292
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.3.292
+Problem:    Crash when using fold markers and selecting a visual block that
+	    includes a folded line and goes to end of line. (Sam Lidder)
+Solution:   Check for the column to be MAXCOL. (James Vega)
+Files:	    src/screen.c
+
+
+*** ../vim-7.3.291/src/screen.c	2011-08-10 14:32:33.000000000 +0200
+--- src/screen.c	2011-09-02 13:58:18.000000000 +0200
+***************
+*** 2531,2537 ****
+  		/* Visual block mode: highlight the chars part of the block */
+  		if (wp->w_old_cursor_fcol + txtcol < (colnr_T)W_WIDTH(wp))
+  		{
+! 		    if (wp->w_old_cursor_lcol + txtcol < (colnr_T)W_WIDTH(wp))
+  			len = wp->w_old_cursor_lcol;
+  		    else
+  			len = W_WIDTH(wp) - txtcol;
+--- 2531,2539 ----
+  		/* Visual block mode: highlight the chars part of the block */
+  		if (wp->w_old_cursor_fcol + txtcol < (colnr_T)W_WIDTH(wp))
+  		{
+! 		    if (wp->w_old_cursor_lcol != MAXCOL
+! 			     && wp->w_old_cursor_lcol + txtcol
+! 						       < (colnr_T)W_WIDTH(wp))
+  			len = wp->w_old_cursor_lcol;
+  		    else
+  			len = W_WIDTH(wp) - txtcol;
+*** ../vim-7.3.291/src/version.c	2011-09-02 12:27:20.000000000 +0200
+--- src/version.c	2011-09-02 14:00:03.000000000 +0200
+***************
+*** 711,712 ****
+--- 711,714 ----
+  {   /* Add new patch number below this line */
++ /**/
++     292,
+  /**/
+
+-- 
+Hacker: Someone skilled in computer programming (good guy).
+Cracker: A hacker that uses his skills to crack software (bad guy).
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\  an exciting new programming language -- http://www.Zimbu.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

================================================================
Index: packages/vim/7.3.293
diff -u /dev/null packages/vim/7.3.293:1.1
--- /dev/null	Sun Nov 13 11:55:01 2011
+++ packages/vim/7.3.293	Sun Nov 13 11:54:52 2011
@@ -0,0 +1,74 @@
+To: vim_dev at googlegroups.com
+Subject: Patch 7.3.293
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.3.293
+Problem:    MSVC compiler has a problem with non-ASCII characters.
+Solution:   Avoid non-ASCII characters. (Hong Xu)
+Files:	    src/ascii.h, src/spell.c
+
+
+*** ../vim-7.3.292/src/ascii.h	2011-05-10 16:41:13.000000000 +0200
+--- src/ascii.h	2011-09-02 14:12:48.000000000 +0200
+***************
+*** 123,129 ****
+  #define DCS		0x90	/* Device Control String */
+  #define STERM		0x9c	/* String Terminator */
+  
+! #define POUND		'£'
+  
+  #define CTRL_F_STR	"\056"
+  #define CTRL_H_STR	"\026"
+--- 123,129 ----
+  #define DCS		0x90	/* Device Control String */
+  #define STERM		0x9c	/* String Terminator */
+  
+! #define POUND		'\xA3'
+  
+  #define CTRL_F_STR	"\056"
+  #define CTRL_H_STR	"\026"
+*** ../vim-7.3.292/src/spell.c	2011-04-11 21:35:03.000000000 +0200
+--- src/spell.c	2011-09-02 14:13:30.000000000 +0200
+***************
+*** 11197,11203 ****
+  	    c = *s++;
+  
+  #ifdef FEAT_MBYTE
+! 	/* We only change ß to SS when we are certain latin1 is used.  It
+  	 * would cause weird errors in other 8-bit encodings. */
+  	if (enc_latin1like && c == 0xdf)
+  	{
+--- 11197,11203 ----
+  	    c = *s++;
+  
+  #ifdef FEAT_MBYTE
+! 	/* We only change 0xdf to SS when we are certain latin1 is used.  It
+  	 * would cause weird errors in other 8-bit encodings. */
+  	if (enc_latin1like && c == 0xdf)
+  	{
+*** ../vim-7.3.292/src/version.c	2011-09-02 14:07:31.000000000 +0200
+--- src/version.c	2011-09-02 14:13:57.000000000 +0200
+***************
+*** 711,712 ****
+--- 711,714 ----
+  {   /* Add new patch number below this line */
++ /**/
++     293,
+  /**/
+
+-- 
+   A village.  Sound of chanting of Latin canon, punctuated by short, sharp
+   cracks.  It comes nearer.  We see it is a line of MONKS ala SEVENTH SEAL
+   flagellation scene, chanting and banging themselves on the foreheads with
+   wooden boards.
+                 "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/ \\\
+\\\  an exciting new programming language -- http://www.Zimbu.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

================================================================
Index: packages/vim/7.3.294
diff -u /dev/null packages/vim/7.3.294:1.1
--- /dev/null	Sun Nov 13 11:55:01 2011
+++ packages/vim/7.3.294	Sun Nov 13 11:54:52 2011
@@ -0,0 +1,58 @@
+To: vim_dev at googlegroups.com
+Subject: Patch 7.3.294
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.3.294 (after 7.3.289)
+Problem:    Patch 289 causes more problems than it solves.
+Solution:   Rever the patch untill a better solution is found.
+Files:	    src/edit.c
+
+
+*** ../vim-7.3.293/src/edit.c	2011-08-28 16:02:23.000000000 +0200
+--- src/edit.c	2011-09-05 20:07:49.000000000 +0200
+***************
+*** 3367,3381 ****
+      ins_bytes(compl_leader + ins_compl_len());
+      compl_used_match = FALSE;
+  
+- #ifdef FEAT_COMPL_FUNC
+-     /*
+-      * To call eval 'completefunc' when leader is changed, restart completion
+-      * every time.
+-      */
+-     if (ctrl_x_mode == CTRL_X_FUNCTION || ctrl_x_mode == CTRL_X_OMNI)
+-         ins_compl_restart();
+- #endif
+- 
+      if (compl_started)
+  	ins_compl_set_original_text(compl_leader);
+      else
+--- 3367,3372 ----
+*** ../vim-7.3.293/src/version.c	2011-09-02 14:18:14.000000000 +0200
+--- src/version.c	2011-09-05 20:08:27.000000000 +0200
+***************
+*** 711,712 ****
+--- 711,714 ----
+  {   /* Add new patch number below this line */
++ /**/
++     294,
+  /**/
+
+-- 
+Scientists decoded the first message from an alien civilization:
+        SIMPLY SEND 6 TIMES 10 TO THE 50 ATOMS OF HYDROGEN TO THE STAR
+SYSTEM AT THE TOP OF THE LIST, CROSS OFF THAT STAR SYSTEM, THEN PUT
+YOUR STAR SYSTEM AT THE BOTTOM OF THE LIST AND SEND IT TO 100 OTHER
+STAR SYSTEMS.  WITHIN ONE TENTH GALACTIC ROTATION YOU WILL RECEIVE
+ENOUGH HYDROGREN TO POWER YOUR CIVILIZATION UNTIL ENTROPY REACHES ITS
+MAXIMUM!  IT REALLY WORKS!
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\  an exciting new programming language -- http://www.Zimbu.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

================================================================
Index: packages/vim/7.3.295
diff -u /dev/null packages/vim/7.3.295:1.1
--- /dev/null	Sun Nov 13 11:55:01 2011
+++ packages/vim/7.3.295	Sun Nov 13 11:54:52 2011
@@ -0,0 +1,109 @@
+To: vim_dev at googlegroups.com
+Subject: Patch 7.3.295
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.3.295
+Problem:    When filtering text with an external command Vim may not read all
+	    the output.
+Solution:   When select() is interrupted loop and try again. (James Vega)
+Files:	    src/os_unix.c
+
+
+*** ../vim-7.3.294/src/os_unix.c	2011-08-04 20:31:50.000000000 +0200
+--- src/os_unix.c	2011-09-07 13:34:09.000000000 +0200
+***************
+*** 4819,4825 ****
+  
+  /*
+   * Wait "msec" msec until a character is available from file descriptor "fd".
+!  * Time == -1 will block forever.
+   * When a GUI is being used, this will not be used for input -- webb
+   * Returns also, when a request from Sniff is waiting -- toni.
+   * Or when a Linux GPM mouse event is waiting.
+--- 4819,4826 ----
+  
+  /*
+   * Wait "msec" msec until a character is available from file descriptor "fd".
+!  * "msec" == 0 will check for characters once.
+!  * "msec" == -1 will block until a character is available.
+   * When a GUI is being used, this will not be used for input -- webb
+   * Returns also, when a request from Sniff is waiting -- toni.
+   * Or when a Linux GPM mouse event is waiting.
+***************
+*** 5057,5063 ****
+  	/*
+  	 * Select on ready for reading and exceptional condition (end of file).
+  	 */
+! 	FD_ZERO(&rfds); /* calls bzero() on a sun */
+  	FD_ZERO(&efds);
+  	FD_SET(fd, &rfds);
+  # if !defined(__QNX__) && !defined(__CYGWIN32__)
+--- 5058,5065 ----
+  	/*
+  	 * Select on ready for reading and exceptional condition (end of file).
+  	 */
+! select_eintr:
+! 	FD_ZERO(&rfds);
+  	FD_ZERO(&efds);
+  	FD_SET(fd, &rfds);
+  # if !defined(__QNX__) && !defined(__CYGWIN32__)
+***************
+*** 5117,5122 ****
+--- 5119,5132 ----
+  # else
+  	ret = select(maxfd + 1, &rfds, NULL, &efds, tvp);
+  # endif
++ # ifdef EINTR
++ 	if (ret == -1 && errno == EINTR)
++ 	    /* Interrupted by a signal, need to try again.  We ignore msec
++ 	     * here, because we do want to check even after a timeout if
++ 	     * characters are available.  Needed for reading output of an
++ 	     * external command after the process has finished. */
++ 	    goto select_eintr;
++ # endif
+  # ifdef __TANDEM
+  	if (ret == -1 && errno == ENOTSUP)
+  	{
+***************
+*** 5124,5130 ****
+  	    FD_ZERO(&efds);
+  	    ret = 0;
+  	}
+! #endif
+  # ifdef FEAT_MZSCHEME
+  	if (ret == 0 && mzquantum_used)
+  	    /* loop if MzThreads must be scheduled and timeout occurred */
+--- 5134,5140 ----
+  	    FD_ZERO(&efds);
+  	    ret = 0;
+  	}
+! # endif
+  # ifdef FEAT_MZSCHEME
+  	if (ret == 0 && mzquantum_used)
+  	    /* loop if MzThreads must be scheduled and timeout occurred */
+*** ../vim-7.3.294/src/version.c	2011-09-05 20:13:37.000000000 +0200
+--- src/version.c	2011-09-07 14:05:05.000000000 +0200
+***************
+*** 711,712 ****
+--- 711,714 ----
+  {   /* Add new patch number below this line */
++ /**/
++     295,
+  /**/
+
+-- 
+"You're fired." (1980)
+"You're laid off." (1985)
+"You're downsized." (1990)
+"You're rightsized." (1992)
+				(Scott Adams - The Dilbert principle)
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\  an exciting new programming language -- http://www.Zimbu.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

================================================================
Index: packages/vim/7.3.296
diff -u /dev/null packages/vim/7.3.296:1.1
--- /dev/null	Sun Nov 13 11:55:01 2011
+++ packages/vim/7.3.296	Sun Nov 13 11:54:52 2011
@@ -0,0 +1,222 @@
+To: vim_dev at googlegroups.com
+Subject: Patch 7.3.296
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.3.296
+Problem:    When writing to an external command a zombie process may be left
+	    behind.
+Solution:   Wait on the process. (James Vega)
+Files:	    src/os_unix.c
+
+
+*** ../vim-7.3.295/src/os_unix.c	2011-09-07 14:06:38.000000000 +0200
+--- src/os_unix.c	2011-09-07 14:54:11.000000000 +0200
+***************
+*** 154,159 ****
+--- 154,166 ----
+  
+  static void may_core_dump __ARGS((void));
+  
++ #ifdef HAVE_UNION_WAIT
++ typedef union wait waitstatus;
++ #else
++ typedef int waitstatus;
++ #endif
++ static int  wait4pid __ARGS((pid_t, waitstatus *));
++ 
+  static int  WaitForChar __ARGS((long));
+  #if defined(__BEOS__)
<<Diff was trimmed, longer than 597 lines>>

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/vim/vim.spec?r1=1.562&r2=1.563&f=u



More information about the pld-cvs-commit mailing list