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