packages: vim/vim.spec, vim/7.2.331 (NEW), vim/7.2.332 (NEW), vim/7.2.333 (...

glen glen at pld-linux.org
Thu Jan 21 20:17:34 CET 2010


Author: glen                         Date: Thu Jan 21 19:17:34 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 7.2.344

---- Files affected:
packages/vim:
   vim.spec (1.491 -> 1.492) , 7.2.331 (NONE -> 1.1)  (NEW), 7.2.332 (NONE -> 1.1)  (NEW), 7.2.333 (NONE -> 1.1)  (NEW), 7.2.334 (NONE -> 1.1)  (NEW), 7.2.335 (NONE -> 1.1)  (NEW), 7.2.336 (NONE -> 1.1)  (NEW), 7.2.337 (NONE -> 1.1)  (NEW), 7.2.338 (NONE -> 1.1)  (NEW), 7.2.339 (NONE -> 1.1)  (NEW), 7.2.340 (NONE -> 1.1)  (NEW), 7.2.341 (NONE -> 1.1)  (NEW), 7.2.342 (NONE -> 1.1)  (NEW), 7.2.343 (NONE -> 1.1)  (NEW), 7.2.344 (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/vim/vim.spec
diff -u packages/vim/vim.spec:1.491 packages/vim/vim.spec:1.492
--- packages/vim/vim.spec:1.491	Mon Jan 18 21:02:09 2010
+++ packages/vim/vim.spec	Thu Jan 21 20:17:28 2010
@@ -14,7 +14,7 @@
 %bcond_without	home_etc	# without home_etc support
 
 %define		ver		7.2
-%define		patchlevel	330
+%define		patchlevel	344
 Summary:	Vi IMproved - a Vi clone
 Summary(de.UTF-8):	VIsual editor iMproved
 Summary(es.UTF-8):	Editor visual incrementado
@@ -1347,6 +1347,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.492  2010/01/21 19:17:28  glen
+- up to 7.2.344
+
 Revision 1.491  2010/01/18 20:02:09  glen
 - install just vim.png to pixmaps dir, kills hicolor icon theme dependency
 

================================================================
Index: packages/vim/7.2.331
diff -u /dev/null packages/vim/7.2.331:1.1
--- /dev/null	Thu Jan 21 20:17:34 2010
+++ packages/vim/7.2.331	Thu Jan 21 20:17:28 2010
@@ -0,0 +1,47 @@
+To: vim-dev at vim.org
+Subject: Patch 7.2.331
+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.2.331
+Problem:    Can't interrupt "echo list" for a very long list.
+Solution:   Call line_breakcheck() in list_join().
+Files:	    src/eval.c
+
+
+*** ../vim-7.2.330/src/eval.c	2010-01-12 12:48:40.000000000 +0100
+--- src/eval.c	2010-01-12 15:59:28.000000000 +0100
+***************
+*** 6475,6480 ****
+--- 6475,6481 ----
+  	vim_free(tofree);
+  	if (s == NULL)
+  	    return FAIL;
++ 	line_breakcheck();
+      }
+      return OK;
+  }
+*** ../vim-7.2.330/src/version.c	2010-01-12 19:48:57.000000000 +0100
+--- src/version.c	2010-01-19 12:44:02.000000000 +0100
+***************
+*** 683,684 ****
+--- 683,686 ----
+  {   /* Add new patch number below this line */
++ /**/
++     331,
+  /**/
+
+
+-- 
+hundred-and-one symptoms of being an internet addict:
+116. You are living with your boyfriend who networks your respective
+     computers so you can sit in separate rooms and email each other
+
+ /// 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    ///

================================================================
Index: packages/vim/7.2.332
diff -u /dev/null packages/vim/7.2.332:1.1
--- /dev/null	Thu Jan 21 20:17:34 2010
+++ packages/vim/7.2.332	Thu Jan 21 20:17:28 2010
@@ -0,0 +1,101 @@
+To: vim-dev at vim.org
+Subject: Patch 7.2.332
+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.2.332
+Problem:    Crash when spell correcting triggers an autocommand that reloads
+	    the buffer.
+Solution:   Make a copy of the line to be modified. (Dominique Pelle)
+Files:	    src/spell.c
+
+
+*** ../vim-7.2.331/src/spell.c	2009-07-22 11:03:38.000000000 +0200
+--- src/spell.c	2010-01-19 12:44:42.000000000 +0100
+***************
+*** 10306,10312 ****
+      /* Figure out if the word should be capitalised. */
+      need_cap = check_need_cap(curwin->w_cursor.lnum, curwin->w_cursor.col);
+  
+!     line = ml_get_curline();
+  
+      /* Get the list of suggestions.  Limit to 'lines' - 2 or the number in
+       * 'spellsuggest', whatever is smaller. */
+--- 10306,10315 ----
+      /* Figure out if the word should be capitalised. */
+      need_cap = check_need_cap(curwin->w_cursor.lnum, curwin->w_cursor.col);
+  
+!     /* Make a copy of current line since autocommands may free the line. */
+!     line = vim_strsave(ml_get_curline());
+!     if (line == NULL)
+! 	goto skip;
+  
+      /* Get the list of suggestions.  Limit to 'lines' - 2 or the number in
+       * 'spellsuggest', whatever is smaller. */
+***************
+*** 10470,10475 ****
+--- 10473,10480 ----
+  	curwin->w_cursor = prev_cursor;
+  
+      spell_find_cleanup(&sug);
++ skip:
++     vim_free(line);
+  }
+  
+  /*
+***************
+*** 10931,10937 ****
+  	    rescore_suggestions(su);
+  
+  	/*
+! 	 * While going throught the soundfold tree "su_maxscore" is the score
+  	 * for the soundfold word, limits the changes that are being tried,
+  	 * and "su_sfmaxscore" the rescored score, which is set by
+  	 * cleanup_suggestions().
+--- 10936,10942 ----
+  	    rescore_suggestions(su);
+  
+  	/*
+! 	 * While going through the soundfold tree "su_maxscore" is the score
+  	 * for the soundfold word, limits the changes that are being tried,
+  	 * and "su_sfmaxscore" the rescored score, which is set by
+  	 * cleanup_suggestions().
+***************
+*** 11415,11421 ****
+      char_u	tword[MAXWLEN];	    /* good word collected so far */
+      trystate_T	stack[MAXWLEN];
+      char_u	preword[MAXWLEN * 3]; /* word found with proper case;
+! 				       * concatanation of prefix compound
+  				       * words and split word.  NUL terminated
+  				       * when going deeper but not when coming
+  				       * back. */
+--- 11420,11426 ----
+      char_u	tword[MAXWLEN];	    /* good word collected so far */
+      trystate_T	stack[MAXWLEN];
+      char_u	preword[MAXWLEN * 3]; /* word found with proper case;
+! 				       * concatenation of prefix compound
+  				       * words and split word.  NUL terminated
+  				       * when going deeper but not when coming
+  				       * back. */
+*** ../vim-7.2.331/src/version.c	2010-01-19 12:46:51.000000000 +0100
+--- src/version.c	2010-01-19 13:05:32.000000000 +0100
+***************
+*** 683,684 ****
+--- 683,686 ----
+  {   /* Add new patch number below this line */
++ /**/
++     332,
+  /**/
+
+-- 
+hundred-and-one symptoms of being an internet addict:
+117. You are more comfortable typing 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    ///

================================================================
Index: packages/vim/7.2.333
diff -u /dev/null packages/vim/7.2.333:1.1
--- /dev/null	Thu Jan 21 20:17:34 2010
+++ packages/vim/7.2.333	Thu Jan 21 20:17:28 2010
@@ -0,0 +1,371 @@
+To: vim-dev at vim.org
+Subject: Patch 7.2.333
+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.2.333
+Problem:    Warnings from static code analysis.
+Solution:   Small changes to various lines. (Dominique Pelle)
+Files:	    src/buffer.c, src/edit.c, src/ex_getln.c, src/fileio.c,
+	    src/if_cscope.c, src/netbeans.c, src/ops.c, src/quickfix.c,
+	    src/syntax.c, src/ui.c
+
+
+*** ../vim-7.2.332/src/buffer.c	2009-05-17 13:30:58.000000000 +0200
+--- src/buffer.c	2010-01-19 12:50:24.000000000 +0100
+***************
+*** 315,321 ****
+  {
+  #ifdef FEAT_AUTOCMD
+      int		is_curbuf;
+!     int		nwindows = buf->b_nwindows;
+  #endif
+      int		unload_buf = (action != 0);
+      int		del_buf = (action == DOBUF_DEL || action == DOBUF_WIPE);
+--- 315,321 ----
+  {
+  #ifdef FEAT_AUTOCMD
+      int		is_curbuf;
+!     int		nwindows;
+  #endif
+      int		unload_buf = (action != 0);
+      int		del_buf = (action == DOBUF_DEL || action == DOBUF_WIPE);
+*** ../vim-7.2.332/src/edit.c	2009-12-24 15:45:53.000000000 +0100
+--- src/edit.c	2010-01-19 12:53:18.000000000 +0100
+***************
+*** 4048,4054 ****
+  	    save_p_ic = p_ic;
+  	    p_ic = ignorecase(compl_pattern);
+  
+! 	    /* Find up to TAG_MANY matches.  Avoids that an enourmous number
+  	     * of matches is found when compl_pattern is empty */
+  	    if (find_tags(compl_pattern, &num_matches, &matches,
+  		    TAG_REGEXP | TAG_NAMES | TAG_NOIC |
+--- 4048,4054 ----
+  	    save_p_ic = p_ic;
+  	    p_ic = ignorecase(compl_pattern);
+  
+! 	    /* Find up to TAG_MANY matches.  Avoids that an enormous number
+  	     * of matches is found when compl_pattern is empty */
+  	    if (find_tags(compl_pattern, &num_matches, &matches,
+  		    TAG_REGEXP | TAG_NAMES | TAG_NOIC |
+***************
+*** 4219,4225 ****
+  						 || IObuff[len - 2] == '!'))))
+  					IObuff[len++] = ' ';
+  				}
+! 				/* copy as much as posible of the new word */
+  				if (tmp_ptr - ptr >= IOSIZE - len)
+  				    tmp_ptr = ptr + IOSIZE - len - 1;
+  				STRNCPY(IObuff + len, ptr, tmp_ptr - ptr);
+--- 4219,4225 ----
+  						 || IObuff[len - 2] == '!'))))
+  					IObuff[len++] = ' ';
+  				}
+! 				/* copy as much as possible of the new word */
+  				if (tmp_ptr - ptr >= IOSIZE - len)
+  				    tmp_ptr = ptr + IOSIZE - len - 1;
+  				STRNCPY(IObuff + len, ptr, tmp_ptr - ptr);
+***************
+*** 5827,5836 ****
+  #endif
+  		&& !has_format_option(FO_WRAP))
+  
+- 	{
+- 	    textwidth = 0;
+  	    break;
+- 	}
+  	if ((startcol = curwin->w_cursor.col) == 0)
+  	    break;
+  
+--- 5827,5833 ----
+*** ../vim-7.2.332/src/ex_getln.c	2009-12-02 17:15:04.000000000 +0100
+--- src/ex_getln.c	2010-01-19 12:54:47.000000000 +0100
+***************
+*** 2193,2199 ****
+      {
+  	if (ga_grow(&line_ga, 40) == FAIL)
+  	    break;
+- 	pend = (char_u *)line_ga.ga_data + line_ga.ga_len;
+  
+  	/* Get one character at a time.  Don't use inchar(), it can't handle
+  	 * special characters. */
+--- 2193,2198 ----
+***************
+*** 3314,3320 ****
+  		    WILD_HOME_REPLACE|WILD_ADD_SLASH|WILD_SILENT|WILD_ESCAPE
+  							      |options, type);
+  	    vim_free(p1);
+! 	    /* longest match: make sure it is not shorter (happens with :help */
+  	    if (p2 != NULL && type == WILD_LONGEST)
+  	    {
+  		for (j = 0; j < xp->xp_pattern_len; ++j)
+--- 3313,3319 ----
+  		    WILD_HOME_REPLACE|WILD_ADD_SLASH|WILD_SILENT|WILD_ESCAPE
+  							      |options, type);
+  	    vim_free(p1);
+! 	    /* longest match: make sure it is not shorter, happens with :help */
+  	    if (p2 != NULL && type == WILD_LONGEST)
+  	    {
+  		for (j = 0; j < xp->xp_pattern_len; ++j)
+*** ../vim-7.2.332/src/fileio.c	2009-12-31 14:52:48.000000000 +0100
+--- src/fileio.c	2010-01-19 12:56:59.000000000 +0100
+***************
+*** 7072,7079 ****
+  	 */
+  	for (i = 0; i < (int)(sizeof(tempdirs) / sizeof(char *)); ++i)
+  	{
+- 	    size_t	itmplen;
+  # ifndef HAVE_MKDTEMP
+  	    long	nr;
+  	    long	off;
+  # endif
+--- 7072,7079 ----
+  	 */
+  	for (i = 0; i < (int)(sizeof(tempdirs) / sizeof(char *)); ++i)
+  	{
+  # ifndef HAVE_MKDTEMP
++ 	    size_t	itmplen;
+  	    long	nr;
+  	    long	off;
+  # endif
+***************
+*** 7091,7097 ****
+  		else
+  # endif
+  		    add_pathsep(itmp);
+- 		itmplen = STRLEN(itmp);
+  
+  # ifdef HAVE_MKDTEMP
+  		/* Leave room for filename */
+--- 7091,7096 ----
+***************
+*** 7104,7109 ****
+--- 7103,7109 ----
+  		 * otherwise it doesn't matter.  The use of mkdir() avoids any
+  		 * security problems because of the predictable number. */
+  		nr = (mch_get_pid() + (long)time(NULL)) % 1000000L;
++ 		itmplen = STRLEN(itmp);
+  
+  		/* Try up to 10000 different values until we find a name that
+  		 * doesn't exist. */
+*** ../vim-7.2.332/src/if_cscope.c	2009-07-09 21:22:36.000000000 +0200
+--- src/if_cscope.c	2010-01-19 12:57:58.000000000 +0100
+***************
+*** 2069,2075 ****
+  	    continue;
+  	(void)strcpy(tbuf, matches[idx]);
+  
+! 	if ((fname = strtok(tbuf, (const char *)"\t")) == NULL)
+  	    continue;
+  	if ((fname = strtok(NULL, (const char *)"\t")) == NULL)
+  	    continue;
+--- 2069,2075 ----
+  	    continue;
+  	(void)strcpy(tbuf, matches[idx]);
+  
+! 	if (strtok(tbuf, (const char *)"\t") == NULL)
+  	    continue;
+  	if ((fname = strtok(NULL, (const char *)"\t")) == NULL)
+  	    continue;
+*** ../vim-7.2.332/src/netbeans.c	2009-09-11 14:19:41.000000000 +0200
+--- src/netbeans.c	2010-01-19 13:57:11.000000000 +0100
+***************
+*** 873,879 ****
+      {
+  #ifdef NBDEBUG
+  	/*
+! 	 * This happens because the ExtEd can send a cammand or 2 after
+  	 * doing a stopDocumentListen command. It doesn't harm anything
+  	 * so I'm disabling it except for debugging.
+  	 */
+--- 883,889 ----
+      {
+  #ifdef NBDEBUG
+  	/*
+! 	 * This happens because the ExtEd can send a command or 2 after
+  	 * doing a stopDocumentListen command. It doesn't harm anything
+  	 * so I'm disabling it except for debugging.
+  	 */
+***************
+*** 1174,1180 ****
+  		break;
+  	}
+      }
+!     *q++ = '\0';
+  
+      return buf;
+  }
+--- 1184,1190 ----
+  		break;
+  	}
+      }
+!     *q = '\0';
+  
+      return buf;
+  }
+***************
+*** 3070,3076 ****
+  }
+  
+  /*
+!  * Send netbeans an unmodufied command.
+   */
+      void
+  netbeans_unmodified(buf_T *bufp UNUSED)
+--- 3080,3086 ----
+  }
+  
+  /*
+!  * Send netbeans an unmodified command.
+   */
+      void
+  netbeans_unmodified(buf_T *bufp UNUSED)
+***************
+*** 3366,3372 ****
+  
+  
+  /*
+!  * Add a sign of the reqested type at the requested location.
+   *
+   * Reverse engineering:
+   * Apparently an annotation is defined the first time it is used in a buffer.
+--- 3380,3386 ----
+  
+  
+  /*
+!  * Add a sign of the requested type at the requested location.
+   *
+   * Reverse engineering:
+   * Apparently an annotation is defined the first time it is used in a buffer.
+*** ../vim-7.2.332/src/ops.c	2009-11-25 12:38:49.000000000 +0100
+--- src/ops.c	2010-01-19 13:04:46.000000000 +0100
+***************
+*** 5591,5603 ****
+  	 */
+  	if (has_mbyte)
+  	{
+- 	    char_u	*conv_str = str;
+  	    vimconv_T	vc;
+  
+  	    vc.vc_type = CONV_NONE;
+  	    if (convert_setup(&vc, p_enc, (char_u *)"latin1") == OK)
+  	    {
+! 	        int intlen = len;
+  
+  		conv_str = string_convert(&vc, str, &intlen);
+  		len = intlen;
+--- 5598,5610 ----
+  	 */
+  	if (has_mbyte)
+  	{
+  	    vimconv_T	vc;
+  
+  	    vc.vc_type = CONV_NONE;
+  	    if (convert_setup(&vc, p_enc, (char_u *)"latin1") == OK)
+  	    {
+! 		int	intlen = len;
+! 		char_u	*conv_str;
+  
+  		conv_str = string_convert(&vc, str, &intlen);
+  		len = intlen;
+*** ../vim-7.2.332/src/quickfix.c	2009-06-24 17:31:27.000000000 +0200
+--- src/quickfix.c	2010-01-19 13:12:29.000000000 +0100
+***************
+*** 1899,1905 ****
+      int		i;
+      int		idx1 = 1;
+      int		idx2 = -1;
+-     int		need_return = TRUE;
+      char_u	*arg = eap->arg;
+      int		all = eap->forceit;	/* if not :cl!, only show
+  						   recognised errors */
+--- 1899,1904 ----
+***************
+*** 1939,1951 ****
+      {
+  	if ((qfp->qf_valid || all) && idx1 <= i && i <= idx2)
+  	{
+! 	    if (need_return)
+! 	    {
+! 		msg_putchar('\n');
+! 		if (got_int)
+! 		    break;
+! 		need_return = FALSE;
+! 	    }
+  
+  	    fname = NULL;
+  	    if (qfp->qf_fnum != 0
+--- 1938,1946 ----
+      {
+  	if ((qfp->qf_valid || all) && idx1 <= i && i <= idx2)
+  	{
+! 	    msg_putchar('\n');
+! 	    if (got_int)
+! 		break;
+  
+  	    fname = NULL;
+  	    if (qfp->qf_fnum != 0
+***************
+*** 1988,1994 ****
+  							      IObuff, IOSIZE);
+  	    msg_prt_line(IObuff, FALSE);
+  	    out_flush();		/* show one line at a time */
+- 	    need_return = TRUE;
+  	}
+  
+  	qfp = qfp->qf_next;
+--- 1983,1988 ----
+*** ../vim-7.2.332/src/syntax.c	2009-12-16 18:13:04.000000000 +0100
+--- src/syntax.c	2010-01-19 13:12:56.000000000 +0100
+***************
+*** 4167,4173 ****
+  	if (!HASHITEM_EMPTY(hi))
+  	{
+  	    --todo;
+- 	    kp = HI2KE(hi);
+  	    for (kp = HI2KE(hi); kp != NULL; kp = kp_next)
+  	    {
+  		kp_next = kp->ke_next;
+--- 4167,4172 ----
+*** ../vim-7.2.332/src/ui.c	2009-09-11 16:48:06.000000000 +0200
+--- src/ui.c	2010-01-19 13:14:04.000000000 +0100
+***************
+*** 2383,2389 ****
+  	 * 'enc' anyway. */
+  	if (has_mbyte)
+  	{
+! 	    char_u	*conv_buf = buffer;
+  	    vimconv_T	vc;
+  
+  	    vc.vc_type = CONV_NONE;
+--- 2383,2389 ----
+  	 * 'enc' anyway. */
+  	if (has_mbyte)
+  	{
+! 	    char_u	*conv_buf;
+  	    vimconv_T	vc;
+  
+  	    vc.vc_type = CONV_NONE;
+*** ../vim-7.2.332/src/version.c	2010-01-19 13:06:42.000000000 +0100
+--- src/version.c	2010-01-19 14:55:50.000000000 +0100
+***************
+*** 683,684 ****
+--- 683,686 ----
+  {   /* Add new patch number below this line */
++ /**/
++     333,
+  /**/
+
+-- 
+An actual excerpt from a classified section of a city newspaper:
+"Illiterate?  Write today for free help!"
+
+ /// 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    ///

================================================================
Index: packages/vim/7.2.334
diff -u /dev/null packages/vim/7.2.334:1.1
--- /dev/null	Thu Jan 21 20:17:34 2010
+++ packages/vim/7.2.334	Thu Jan 21 20:17:28 2010
@@ -0,0 +1,347 @@
+To: vim-dev at vim.org
+Subject: Patch 7.2.334
+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.2.334
+Problem:    Postponing keys in Netbeans interface does not work properly.
+Solution:   Store the key string instead of the number.  Avoid an infinite
+	    loop. (Mostly by Xavier de Gaye)
+Files:	    src/netbeans.c, src/proto/netbeans.pro
+
+
+*** ../vim-7.2.333/src/netbeans.c	2010-01-19 14:59:14.000000000 +0100
+--- src/netbeans.c	2010-01-19 15:12:17.000000000 +0100
+***************
+*** 70,76 ****
+  static pos_T *off2pos __ARGS((buf_T *, long));
+  static pos_T *get_off_or_lnum __ARGS((buf_T *buf, char_u **argp));
+  static long get_buf_size __ARGS((buf_T *));
+! static void netbeans_keystring __ARGS((int key, char *keystr));
+  static void special_keys __ARGS((char_u *args));
+  
+  static void netbeans_connect __ARGS((void));
+--- 70,77 ----
+  static pos_T *off2pos __ARGS((buf_T *, long));
+  static pos_T *get_off_or_lnum __ARGS((buf_T *buf, char_u **argp));
<<Diff was trimmed, longer than 597 lines>>

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



More information about the pld-cvs-commit mailing list