|
Karsten Hopp |
d20078 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
d20078 |
Subject: Patch 7.2.092
|
|
Karsten Hopp |
d20078 |
Fcc: outbox
|
|
Karsten Hopp |
d20078 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
d20078 |
Mime-Version: 1.0
|
|
Karsten Hopp |
d20078 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
d20078 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
d20078 |
------------
|
|
Karsten Hopp |
d20078 |
|
|
Karsten Hopp |
d20078 |
Patch 7.2.092
|
|
Karsten Hopp |
d20078 |
Problem: Some error messages are not translated.
|
|
Karsten Hopp |
d20078 |
Solution: Add _() around the messages. (Dominique Pelle)
|
|
Karsten Hopp |
d20078 |
Files: src/eval.c
|
|
Karsten Hopp |
d20078 |
|
|
Karsten Hopp |
d20078 |
|
|
Karsten Hopp |
d20078 |
*** ../vim-7.2.091/src/eval.c Sun Dec 21 13:02:47 2008
|
|
Karsten Hopp |
d20078 |
--- src/eval.c Sat Jan 24 12:22:47 2009
|
|
Karsten Hopp |
d20078 |
***************
|
|
Karsten Hopp |
d20078 |
*** 7918,7926 ****
|
|
Karsten Hopp |
d20078 |
else if (!aborting())
|
|
Karsten Hopp |
d20078 |
{
|
|
Karsten Hopp |
d20078 |
if (argcount == MAX_FUNC_ARGS)
|
|
Karsten Hopp |
d20078 |
! emsg_funcname("E740: Too many arguments for function %s", name);
|
|
Karsten Hopp |
d20078 |
else
|
|
Karsten Hopp |
d20078 |
! emsg_funcname("E116: Invalid arguments for function %s", name);
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
|
|
Karsten Hopp |
d20078 |
while (--argcount >= 0)
|
|
Karsten Hopp |
d20078 |
--- 7918,7926 ----
|
|
Karsten Hopp |
d20078 |
else if (!aborting())
|
|
Karsten Hopp |
d20078 |
{
|
|
Karsten Hopp |
d20078 |
if (argcount == MAX_FUNC_ARGS)
|
|
Karsten Hopp |
d20078 |
! emsg_funcname(N_("E740: Too many arguments for function %s"), name);
|
|
Karsten Hopp |
d20078 |
else
|
|
Karsten Hopp |
d20078 |
! emsg_funcname(N_("E116: Invalid arguments for function %s"), name);
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
|
|
Karsten Hopp |
d20078 |
while (--argcount >= 0)
|
|
Karsten Hopp |
d20078 |
***************
|
|
Karsten Hopp |
d20078 |
*** 8153,8158 ****
|
|
Karsten Hopp |
d20078 |
--- 8153,8159 ----
|
|
Karsten Hopp |
d20078 |
|
|
Karsten Hopp |
d20078 |
/*
|
|
Karsten Hopp |
d20078 |
* Give an error message with a function name. Handle <SNR> things.
|
|
Karsten Hopp |
d20078 |
+ * "ermsg" is to be passed without translation, use N_() instead of _().
|
|
Karsten Hopp |
d20078 |
*/
|
|
Karsten Hopp |
d20078 |
static void
|
|
Karsten Hopp |
d20078 |
emsg_funcname(ermsg, name)
|
|
Karsten Hopp |
d20078 |
***************
|
|
Karsten Hopp |
d20078 |
*** 19867,19873 ****
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
else
|
|
Karsten Hopp |
d20078 |
! emsg_funcname("E123: Undefined function: %s", name);
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
goto ret_free;
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
--- 19868,19874 ----
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
else
|
|
Karsten Hopp |
d20078 |
! emsg_funcname(N_("E123: Undefined function: %s"), name);
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
goto ret_free;
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
***************
|
|
Karsten Hopp |
d20078 |
*** 19911,19917 ****
|
|
Karsten Hopp |
d20078 |
: eval_isnamec(arg[j])))
|
|
Karsten Hopp |
d20078 |
++j;
|
|
Karsten Hopp |
d20078 |
if (arg[j] != NUL)
|
|
Karsten Hopp |
d20078 |
! emsg_funcname(_(e_invarg2), arg);
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
|
|
Karsten Hopp |
d20078 |
--- 19912,19918 ----
|
|
Karsten Hopp |
d20078 |
: eval_isnamec(arg[j])))
|
|
Karsten Hopp |
d20078 |
++j;
|
|
Karsten Hopp |
d20078 |
if (arg[j] != NUL)
|
|
Karsten Hopp |
d20078 |
! emsg_funcname(e_invarg2, arg);
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
|
|
Karsten Hopp |
d20078 |
***************
|
|
Karsten Hopp |
d20078 |
*** 20183,20189 ****
|
|
Karsten Hopp |
d20078 |
v = find_var(name, &ht;;
|
|
Karsten Hopp |
d20078 |
if (v != NULL && v->di_tv.v_type == VAR_FUNC)
|
|
Karsten Hopp |
d20078 |
{
|
|
Karsten Hopp |
d20078 |
! emsg_funcname("E707: Function name conflicts with variable: %s",
|
|
Karsten Hopp |
d20078 |
name);
|
|
Karsten Hopp |
d20078 |
goto erret;
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
--- 20184,20190 ----
|
|
Karsten Hopp |
d20078 |
v = find_var(name, &ht;;
|
|
Karsten Hopp |
d20078 |
if (v != NULL && v->di_tv.v_type == VAR_FUNC)
|
|
Karsten Hopp |
d20078 |
{
|
|
Karsten Hopp |
d20078 |
! emsg_funcname(N_("E707: Function name conflicts with variable: %s"),
|
|
Karsten Hopp |
d20078 |
name);
|
|
Karsten Hopp |
d20078 |
goto erret;
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
***************
|
|
Karsten Hopp |
d20078 |
*** 20198,20204 ****
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
if (fp->uf_calls > 0)
|
|
Karsten Hopp |
d20078 |
{
|
|
Karsten Hopp |
d20078 |
! emsg_funcname("E127: Cannot redefine function %s: It is in use",
|
|
Karsten Hopp |
d20078 |
name);
|
|
Karsten Hopp |
d20078 |
goto erret;
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
--- 20199,20205 ----
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
if (fp->uf_calls > 0)
|
|
Karsten Hopp |
d20078 |
{
|
|
Karsten Hopp |
d20078 |
! emsg_funcname(N_("E127: Cannot redefine function %s: It is in use"),
|
|
Karsten Hopp |
d20078 |
name);
|
|
Karsten Hopp |
d20078 |
goto erret;
|
|
Karsten Hopp |
d20078 |
}
|
|
Karsten Hopp |
d20078 |
***************
|
|
Karsten Hopp |
d20078 |
*** 21477,21483 ****
|
|
Karsten Hopp |
d20078 |
|
|
Karsten Hopp |
d20078 |
/*
|
|
Karsten Hopp |
d20078 |
* Return TRUE if items in "fc" do not have "copyID". That means they are not
|
|
Karsten Hopp |
d20078 |
! * referenced from anywyere.
|
|
Karsten Hopp |
d20078 |
*/
|
|
Karsten Hopp |
d20078 |
static int
|
|
Karsten Hopp |
d20078 |
can_free_funccal(fc, copyID)
|
|
Karsten Hopp |
d20078 |
--- 21478,21484 ----
|
|
Karsten Hopp |
d20078 |
|
|
Karsten Hopp |
d20078 |
/*
|
|
Karsten Hopp |
d20078 |
* Return TRUE if items in "fc" do not have "copyID". That means they are not
|
|
Karsten Hopp |
d20078 |
! * referenced from anywhere.
|
|
Karsten Hopp |
d20078 |
*/
|
|
Karsten Hopp |
d20078 |
static int
|
|
Karsten Hopp |
d20078 |
can_free_funccal(fc, copyID)
|
|
Karsten Hopp |
d20078 |
*** ../vim-7.2.091/src/version.c Wed Jan 28 16:03:51 2009
|
|
Karsten Hopp |
d20078 |
--- src/version.c Wed Jan 28 19:05:47 2009
|
|
Karsten Hopp |
d20078 |
***************
|
|
Karsten Hopp |
d20078 |
*** 678,679 ****
|
|
Karsten Hopp |
d20078 |
--- 678,681 ----
|
|
Karsten Hopp |
d20078 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
d20078 |
+ /**/
|
|
Karsten Hopp |
d20078 |
+ 92,
|
|
Karsten Hopp |
d20078 |
/**/
|
|
Karsten Hopp |
d20078 |
|
|
Karsten Hopp |
d20078 |
|
|
Karsten Hopp |
d20078 |
--
|
|
Karsten Hopp |
d20078 |
Now it is such a bizarrely improbable coincidence that anything as
|
|
Karsten Hopp |
d20078 |
mind-bogglingly useful as the Babel fish could have evolved purely by chance
|
|
Karsten Hopp |
d20078 |
that some thinkers have chosen to see it as a final and clinching proof of the
|
|
Karsten Hopp |
d20078 |
NON-existence of God.
|
|
Karsten Hopp |
d20078 |
The argument goes something like this: 'I refuse to prove that I exist,' says
|
|
Karsten Hopp |
d20078 |
God, 'for proof denies faith, and without faith I am nothing.'
|
|
Karsten Hopp |
d20078 |
'But,' says Man, 'the Babel fish is a dead giveaway, isn't it? It could not
|
|
Karsten Hopp |
d20078 |
have evolved by chance. It proves you exist, and so therefore, by your own
|
|
Karsten Hopp |
d20078 |
arguments, you don't. QED.'
|
|
Karsten Hopp |
d20078 |
'Oh dear,' says God, 'I hadn't thought of that,' and promptly vanishes in a
|
|
Karsten Hopp |
d20078 |
puff of logic.
|
|
Karsten Hopp |
d20078 |
'Oh, that was easy,' says Man, and for an encore goes on to prove that black
|
|
Karsten Hopp |
d20078 |
is white and gets himself killed on the next pedestrian crossing.
|
|
Karsten Hopp |
d20078 |
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
|
|
Karsten Hopp |
d20078 |
|
|
Karsten Hopp |
d20078 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
d20078 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
d20078 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
d20078 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|