4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: This gives a #705 error: let X = function('haslocaldir')
12 let X = function('getcwd')
13 Solution: Don't give E705 when the name is found in the hashtab. (Sergey
18 *** ../vim-7.2.401/src/eval.c 2010-03-10 13:43:22.000000000 +0100
19 --- src/eval.c 2010-03-17 19:35:01.000000000 +0100
26 + ht = find_var_ht(name, &varname);
27 + if (ht == NULL || *varname == NUL)
29 + EMSG2(_(e_illvar), name);
32 + v = find_var_in_ht(ht, varname, TRUE);
34 if (tv->v_type == VAR_FUNC)
36 if (!(vim_strchr((char_u *)"wbs", name[0]) != NULL && name[1] == ':')
39 EMSG2(_("E704: Funcref variable name must start with a capital: %s"), name);
42 ! if (function_exists(name))
44 EMSG2(_("E705: Variable name conflicts with existing function: %s"),
47 EMSG2(_("E704: Funcref variable name must start with a capital: %s"), name);
50 ! /* Don't allow hiding a function. When "v" is not NULL we migth be
51 ! * assigning another function to the same var, the type is checked
53 ! if (v == NULL && function_exists(name))
55 EMSG2(_("E705: Variable name conflicts with existing function: %s"),
62 - ht = find_var_ht(name, &varname);
63 - if (ht == NULL || *varname == NUL)
65 - EMSG2(_(e_illvar), name);
69 - v = find_var_in_ht(ht, varname, TRUE);
72 /* existing variable, need to clear the value */
74 *** ../vim-7.2.401/src/version.c 2010-03-17 19:13:19.000000000 +0100
75 --- src/version.c 2010-03-17 19:36:09.000000000 +0100
79 { /* Add new patch number below this line */
85 Michael: There is no such thing as a dump question.
86 Bernard: Sure there is. For example "what is a core dump?"
88 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
89 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
90 \\\ download, build and distribute -- http://www.A-A-P.org ///
91 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///