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