c1f3258
To: vim-dev@vim.org
c1f3258
Subject: Patch 7.2.061
c1f3258
Fcc: outbox
c1f3258
From: Bram Moolenaar <Bram@moolenaar.net>
c1f3258
Mime-Version: 1.0
c1f3258
Content-Type: text/plain; charset=ISO-8859-1
c1f3258
Content-Transfer-Encoding: 8bit
c1f3258
------------
c1f3258
c1f3258
Patch 7.2.061
c1f3258
Problem:    Can't create a funcref for an autoload function without loading
c1f3258
	    the script first. (Marc Weber)
c1f3258
Solution:   Accept autoload functions that don't exist yet in function().
c1f3258
Files:	    src/eval.c
c1f3258
c1f3258
c1f3258
*** ../vim-7.2.060/src/eval.c	Fri Nov 28 21:26:50 2008
c1f3258
--- src/eval.c	Sat Nov 29 12:28:51 2008
c1f3258
***************
c1f3258
*** 10339,10345 ****
c1f3258
      s = get_tv_string(&argvars[0]);
c1f3258
      if (s == NULL || *s == NUL || VIM_ISDIGIT(*s))
c1f3258
  	EMSG2(_(e_invarg2), s);
c1f3258
!     else if (!function_exists(s))
c1f3258
  	EMSG2(_("E700: Unknown function: %s"), s);
c1f3258
      else
c1f3258
      {
c1f3258
--- 10339,10346 ----
c1f3258
      s = get_tv_string(&argvars[0]);
c1f3258
      if (s == NULL || *s == NUL || VIM_ISDIGIT(*s))
c1f3258
  	EMSG2(_(e_invarg2), s);
c1f3258
!     /* Don't check an autoload name for existence here. */
c1f3258
!     else if (vim_strchr(s, AUTOLOAD_CHAR) == NULL && !function_exists(s))
c1f3258
  	EMSG2(_("E700: Unknown function: %s"), s);
c1f3258
      else
c1f3258
      {
c1f3258
*** ../vim-7.2.060/src/version.c	Sun Nov 30 21:11:54 2008
c1f3258
--- src/version.c	Wed Dec  3 09:49:07 2008
c1f3258
***************
c1f3258
*** 678,679 ****
c1f3258
--- 678,681 ----
c1f3258
  {   /* Add new patch number below this line */
c1f3258
+ /**/
c1f3258
+     61,
c1f3258
  /**/
c1f3258
c1f3258
-- 
c1f3258
There are 2 kinds of people in my world: those who know Unix, Perl, Vim, GNU,
c1f3258
Linux, etc, and those who know COBOL.  It gets very difficult for me at
c1f3258
parties, not knowing which group to socialise with :-)
c1f3258
						Sitaram Chamarty
c1f3258
c1f3258
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
c1f3258
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
c1f3258
\\\        download, build and distribute -- http://www.A-A-P.org        ///
c1f3258
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///