0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.0740: minor message mistakes

Problem:    Minor message mistakes.
Solution:   Change vim to Vim and other fixes.
This commit is contained in:
Bram Moolenaar 2020-05-11 23:14:04 +02:00
parent b415168a98
commit 86181df9f5
4 changed files with 19 additions and 17 deletions

View File

@ -652,7 +652,7 @@ VimTryEnd(void)
} }
else if (!did_throw) else if (!did_throw)
return (PyErr_Occurred() ? -1 : 0); return (PyErr_Occurred() ? -1 : 0);
// Python exception is preferred over vim one; unlikely to occur though // Python exception is preferred over Vim one; unlikely to occur though
else if (PyErr_Occurred()) else if (PyErr_Occurred())
{ {
discard_current_exception(); discard_current_exception();
@ -1406,7 +1406,7 @@ static struct PyMethodDef VimMethods[] = {
// name, function, calling, documentation // name, function, calling, documentation
{"command", VimCommand, METH_O, "Execute a Vim ex-mode command" }, {"command", VimCommand, METH_O, "Execute a Vim ex-mode command" },
{"eval", VimEval, METH_VARARGS, "Evaluate an expression using Vim evaluator" }, {"eval", VimEval, METH_VARARGS, "Evaluate an expression using Vim evaluator" },
{"bindeval", VimEvalPy, METH_O, "Like eval(), but returns objects attached to vim ones"}, {"bindeval", VimEvalPy, METH_O, "Like eval(), but returns objects attached to Vim ones"},
{"strwidth", VimStrwidth, METH_O, "Screen string width, counts <Tab> as having width 1"}, {"strwidth", VimStrwidth, METH_O, "Screen string width, counts <Tab> as having width 1"},
{"chdir", (PyCFunction)VimChdir, METH_VARARGS|METH_KEYWORDS, "Change directory"}, {"chdir", (PyCFunction)VimChdir, METH_VARARGS|METH_KEYWORDS, "Change directory"},
{"fchdir", (PyCFunction)VimFchdir, METH_VARARGS|METH_KEYWORDS, "Change directory"}, {"fchdir", (PyCFunction)VimFchdir, METH_VARARGS|METH_KEYWORDS, "Change directory"},
@ -2393,7 +2393,7 @@ ListIndex(ListObject *self, Py_ssize_t index)
if (li == NULL) if (li == NULL)
{ {
// No more suitable format specifications in python-2.3 // No more suitable format specifications in python-2.3
PyErr_VIM_FORMAT(N_("internal error: failed to get vim list item %d"), PyErr_VIM_FORMAT(N_("internal error: failed to get Vim list item %d"),
(int) index); (int) index);
return NULL; return NULL;
} }
@ -2555,7 +2555,7 @@ ListAssSlice(ListObject *self, Py_ssize_t first,
li = list_find(l, (long) first); li = list_find(l, (long) first);
if (li == NULL) if (li == NULL)
{ {
PyErr_VIM_FORMAT(N_("internal error: no vim list item %d"), PyErr_VIM_FORMAT(N_("internal error: no Vim list item %d"),
(int)first); (int)first);
if (obj != NULL) if (obj != NULL)
PyMem_Free(lis); PyMem_Free(lis);
@ -4267,7 +4267,7 @@ StringToLine(PyObject *obj)
/* /*
* Create a copy of the string, with internal nulls replaced by * Create a copy of the string, with internal nulls replaced by
* newline characters, as is the vim convention. * newline characters, as is the Vim convention.
*/ */
save = alloc(len+1); save = alloc(len+1);
if (save == NULL) if (save == NULL)
@ -4614,7 +4614,7 @@ SetBufferLineList(
// Now we may need to insert the remaining new old_len. If we do, we // Now we may need to insert the remaining new old_len. If we do, we
// must free the strings as we finish with them (we can't pass the // must free the strings as we finish with them (we can't pass the
// responsibility to vim in this case). // responsibility to Vim in this case).
if (!PyErr_Occurred()) if (!PyErr_Occurred())
{ {
while (i < new_len) while (i < new_len)
@ -5825,7 +5825,7 @@ run_eval(const char *cmd, typval_T *rettv
else else
{ {
if (ConvertFromPyObject(run_ret, rettv) == -1) if (ConvertFromPyObject(run_ret, rettv) == -1)
emsg(_("E859: Failed to convert returned python object to vim value")); emsg(_("E859: Failed to convert returned python object to a Vim value"));
Py_DECREF(run_ret); Py_DECREF(run_ret);
} }
PyErr_Clear(); PyErr_Clear();
@ -6159,7 +6159,7 @@ ConvertFromPyMapping(PyObject *obj, typval_T *tv)
else else
{ {
PyErr_FORMAT(PyExc_TypeError, PyErr_FORMAT(PyExc_TypeError,
N_("unable to convert %s to vim dictionary"), N_("unable to convert %s to a Vim dictionary"),
Py_TYPE_NAME(obj)); Py_TYPE_NAME(obj));
ret = -1; ret = -1;
} }
@ -6188,7 +6188,7 @@ ConvertFromPySequence(PyObject *obj, typval_T *tv)
else else
{ {
PyErr_FORMAT(PyExc_TypeError, PyErr_FORMAT(PyExc_TypeError,
N_("unable to convert %s to vim list"), N_("unable to convert %s to a Vim list"),
Py_TYPE_NAME(obj)); Py_TYPE_NAME(obj));
ret = -1; ret = -1;
} }
@ -6333,7 +6333,7 @@ _ConvertFromPyObject(PyObject *obj, typval_T *tv, PyObject *lookup_dict)
else else
{ {
PyErr_FORMAT(PyExc_TypeError, PyErr_FORMAT(PyExc_TypeError,
N_("unable to convert %s to vim structure"), N_("unable to convert %s to a Vim structure"),
Py_TYPE_NAME(obj)); Py_TYPE_NAME(obj));
return -1; return -1;
} }
@ -6575,7 +6575,7 @@ init_structs(void)
DictionaryType.tp_as_sequence = &DictionaryAsSeq; DictionaryType.tp_as_sequence = &DictionaryAsSeq;
DictionaryType.tp_as_mapping = &DictionaryAsMapping; DictionaryType.tp_as_mapping = &DictionaryAsMapping;
DictionaryType.tp_flags = Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE; DictionaryType.tp_flags = Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE;
DictionaryType.tp_doc = "dictionary pushing modifications to vim structure"; DictionaryType.tp_doc = "dictionary pushing modifications to Vim structure";
DictionaryType.tp_methods = DictionaryMethods; DictionaryType.tp_methods = DictionaryMethods;
DictionaryType.tp_iter = (getiterfunc)DictionaryIter; DictionaryType.tp_iter = (getiterfunc)DictionaryIter;
DictionaryType.tp_new = (newfunc)DictionaryConstructor; DictionaryType.tp_new = (newfunc)DictionaryConstructor;
@ -6595,7 +6595,7 @@ init_structs(void)
ListType.tp_as_sequence = &ListAsSeq; ListType.tp_as_sequence = &ListAsSeq;
ListType.tp_as_mapping = &ListAsMapping; ListType.tp_as_mapping = &ListAsMapping;
ListType.tp_flags = Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE; ListType.tp_flags = Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE;
ListType.tp_doc = "list pushing modifications to vim structure"; ListType.tp_doc = "list pushing modifications to Vim structure";
ListType.tp_methods = ListMethods; ListType.tp_methods = ListMethods;
ListType.tp_iter = (getiterfunc)ListIter; ListType.tp_iter = (getiterfunc)ListIter;
ListType.tp_new = (newfunc)ListConstructor; ListType.tp_new = (newfunc)ListConstructor;
@ -6614,7 +6614,7 @@ init_structs(void)
FunctionType.tp_dealloc = (destructor)FunctionDestructor; FunctionType.tp_dealloc = (destructor)FunctionDestructor;
FunctionType.tp_call = (ternaryfunc)FunctionCall; FunctionType.tp_call = (ternaryfunc)FunctionCall;
FunctionType.tp_flags = Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE; FunctionType.tp_flags = Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE;
FunctionType.tp_doc = "object that calls vim function"; FunctionType.tp_doc = "object that calls Vim function";
FunctionType.tp_methods = FunctionMethods; FunctionType.tp_methods = FunctionMethods;
FunctionType.tp_repr = (reprfunc)FunctionRepr; FunctionType.tp_repr = (reprfunc)FunctionRepr;
FunctionType.tp_new = (newfunc)FunctionConstructor; FunctionType.tp_new = (newfunc)FunctionConstructor;

View File

@ -1403,7 +1403,7 @@ vimerror(Tcl_Interp *interp)
} }
else if (did_emsg) else if (did_emsg)
{ {
Tcl_SetResult(interp, _("vim error"), TCL_STATIC); Tcl_SetResult(interp, _("Vim error"), TCL_STATIC);
return TCL_ERROR; return TCL_ERROR;
} }
return TCL_OK; return TCL_OK;

View File

@ -3562,7 +3562,7 @@ usage(void)
#endif #endif
#if (defined(UNIX) || defined(VMS)) && defined(FEAT_X11) #if (defined(UNIX) || defined(VMS)) && defined(FEAT_X11)
# if defined(FEAT_GUI_X11) && !defined(FEAT_GUI_GTK) # if defined(FEAT_GUI_X11) && !defined(FEAT_GUI_GTK)
main_msg(_("-display <display>\tConnect vim to this particular X-server")); main_msg(_("-display <display>\tConnect Vim to this particular X-server"));
# endif # endif
main_msg(_("-X\t\t\tDo not connect to X server")); main_msg(_("-X\t\t\tDo not connect to X server"));
#endif #endif
@ -3599,7 +3599,7 @@ usage(void)
# endif # endif
# endif # endif
# endif # endif
main_msg(_("-display <display>\tRun vim on <display>")); main_msg(_("-display <display>\tRun Vim on <display>"));
main_msg(_("-iconic\t\tStart vim iconified")); main_msg(_("-iconic\t\tStart vim iconified"));
main_msg(_("-background <color>\tUse <color> for the background (also: -bg)")); main_msg(_("-background <color>\tUse <color> for the background (also: -bg)"));
main_msg(_("-foreground <color>\tUse <color> for normal text (also: -fg)")); main_msg(_("-foreground <color>\tUse <color> for normal text (also: -fg)"));
@ -3621,7 +3621,7 @@ usage(void)
main_msg(_("-font <font>\t\tUse <font> for normal text (also: -fn)")); main_msg(_("-font <font>\t\tUse <font> for normal text (also: -fn)"));
main_msg(_("-geometry <geom>\tUse <geom> for initial geometry (also: -geom)")); main_msg(_("-geometry <geom>\tUse <geom> for initial geometry (also: -geom)"));
main_msg(_("-reverse\t\tUse reverse video (also: -rv)")); main_msg(_("-reverse\t\tUse reverse video (also: -rv)"));
main_msg(_("-display <display>\tRun vim on <display> (also: --display)")); main_msg(_("-display <display>\tRun Vim on <display> (also: --display)"));
main_msg(_("--role <role>\tSet a unique role to identify the main window")); main_msg(_("--role <role>\tSet a unique role to identify the main window"));
main_msg(_("--socketid <xid>\tOpen Vim inside another GTK widget")); main_msg(_("--socketid <xid>\tOpen Vim inside another GTK widget"));
main_msg(_("--echo-wid\t\tMake gvim echo the Window ID on stdout")); main_msg(_("--echo-wid\t\tMake gvim echo the Window ID on stdout"));

View File

@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
740,
/**/ /**/
739, 739,
/**/ /**/