Restructure Tk's stub library: No longer use Tcl_SetResult() for setting the error message,
but Tcl_ResetResult/Tcl_AppendResult, as all other stub libraries do. This will allow us
to remove Tcl_SetResult() in Tcl 9.0, eventually. More structural improvements, taken
over from Tcl 8.6's tclOOStubLib.c/tclTomMathStubLib.c and from Tk 8.6's tclStubLib.c
Restructure Tk's stub library: No longer use Tcl_SetResult() for setting the error message,
but Tcl_ResetResult/Tcl_AppendResult, as all other stub libraries do. This will allow us
to remove Tcl_SetResult() in Tcl 9.0, eventually. More structural improvements, taken
over from Tcl 8.6's tclOOStubLib.c/tclTomMathStubLib.c and from Tk 8.6's tclStubLib.c
The proposed fix from Bug 3599312, which should make key map handling interact
better with input methods. Note that this does not work on OSX (in X11 mode)
because that handles the Alt key in its own special way.
Eliminate all usage of deprecated Tcl_EvalObj, Tcl_GlobalEval and Tcl_GlobalEvalObj functions. 
Add [file normalize] to pkgIndex.tcl, in order to prevent '..' in file paths. 
Remove unused TCLPATCHL, it should be ".0" for all final releases.
wrong end brace location
add [file normalize] to UNIX pkgIndex.tcl too
Eliminate all usage of deprecated Tcl_EvalObj, Tcl_GlobalEval and Tcl_GlobalEvalObj functions. 
Add [file normalize] to pkgIndex.tcl, in order to prevent '..' in file paths. 
Remove unused TCLPATCHL, it should be ".0" for all final releases. 
Enable tk.h to be used with higher tcl.h versions which might lack _ANSI_ARGS_
More flexible search for win32 tclConfig.sh, backported from TEA.
and ChangeLog as well
Don't use deprecated "case" any more.
Don't do unnecessary Tcl_PkgRequire(..., "Tcl", ...), the preceding Tcl_InitStubs() call already does that, both for dynamic loaded as wel as the static case.
Don't use deprecated "case" any more.
Don't do unnecessary Tcl_PkgRequire(..., "Tcl", ...), the preceding Tcl_InitStubs() call already does that, both for dynamic loaded as wel as the static case. 
Disallow Tk 8.5.x to be loaded in any Tcl 8.5 alpha release.
fix comment
Don't compile Tk with -DTCL_NO_DEPRECATED by default
 any more, it might hurt when we compile Tk 8.x
 against Tcl 8.y with y > x, because new deprecated constructs might be
 added in higher Tcl versions (except for Tk 8.6, for now, because there
 is no higher 8.x yet)
Don't compile Tk with -DTCL_NO_DEPRECATED by default any more, it might hurt when we compile Tk 8.x against Tcl 8.y with y > x, because new deprecated constructs might be added in higher Tcl versions (except for Tk 8.6, for now, because there is no higher 8.x yet)
some formatting (backported from 8.6)
Bug [3601782]: Produce a nice error-message when the first Tcl_InitStubs() fails, in stead of simply abort()
Bug [3601782]: Produce a nice error-message when the first Tcl_InitStubs() fails, in stead of simply abort()
make TkBackgroundEvalObjv a static function, and eliminate the use of the deprecated SaveResult API from it.
Tk_CancelIdleCall -> Tcl_CancelIdleCall
Eliminate use of deprecated Tcl_VarEval function from ttk.