summaryrefslogtreecommitdiffstats
path: root/library/tm.tcl
Commit message (Collapse)AuthorAgeFilesLines
* [86ceb4e2b6] Improve reaction when multiple *tm files purport to offer thedgp2013-09-071-0/+9
|\ | | | | | | | | same version of the same package. Prefer the file that comes first on the tm path. Makes TCL*_TM_PATH variables more useful. Thanks to Gustaf Neumann for the suggestion.
| * Use ne instead of [string length] for less shimmer risk.dgp2013-09-051-1/+1
| |
| * Possible improvement in light of [86ceb4e2b6].dgp2013-07-151-0/+9
| |
| * For [package] etc., select modernizations from Patrick Fradin.dgp2013-01-301-6/+4
| |\ | |/ |/|
| * Spacing and style fixesnijtmans2010-06-141-3/+3
| |
| * Undo Jan's needless vandalism.dkf2009-11-191-1/+1
| |
| * Eliminate "then" keywordnijtmans2009-11-181-3/+3
| |
| * Use [try] to replace obscurer uses of [catch].dkf2009-07-261-113/+101
| |
| * * doc/platform_shell.n: Fixed [Bug 2255235], reported by Ulrichandreas_kupries2008-11-101-0/+10
| | | | | | | | | | | | | | | | | | * library/platform/pkgIndex.tcl: Ring <uring@users.sourceforge.net>. * library/platform/shell.tcl: Updated the LOCATE command in the * library/tm.tcl: package 'platform::shell' to handle the new form * unix/Makefile.in: of 'provide' commands generated by tm.tcl. Bumped * win/Makefile.in: package to version 1.1.4. Added cross-references to the relevant parts of the code to avoid future desynchronization.
| * TIP #323 IMPLEMENTATION (partial)dgp2008-09-261-4/+4
| | | | | | | | | | | | * doc/tm.n: Revise [tcl::tm::path add] and * library/tm.tcl: [tcl::tm::path remove] to accept zero paths. * tests/tm.test:
| * * library/tm.tcl: Added a 'package provide' command to theandreas_kupries2008-08-111-1/+2
| | | | | | | | | | | | | | | | | | generated ifneeded scripts of Tcl Modules, for early detection of conflicts between the version specified through the file name and a 'provide' command in the module implementation, if any. Note that this change also now allows Tcl Modules to not provide a 'provide' command at all, and declaring their version only through their filename.
| * * library/tm.tcl: Modified the handling of Tcl Modules and of theandreas_kupries2008-06-251-5/+9
| | | | | | | | | | | | * library/safe.tcl: Safe Base to interact nicely with each other, * library/init.tcl: enabling requiring Tcl Modules in safe * tests/safe.test: interpreters. Fixes [Bug 1999119].
* | For [package] etc., select modernizations from Patrick Fradin.dgp2013-01-301-6/+4
| |
* | * doc/platform_shell.n: Fixed [Bug 2255235], reported by Ulrichandreas_kupries2008-11-101-0/+10
| | | | | | | | | | | | | | | | | | * library/platform/pkgIndex.tcl: Ring <uring@users.sourceforge.net>. * library/platform/shell.tcl: Updated the LOCATE command in the * library/tm.tcl: package 'platform::shell' to handle the new form * unix/Makefile.in: of 'provide' commands generated by tm.tcl. Bumped * win/Makefile.in: package to version 1.1.4. Added cross-references to the relevant parts of the code to avoid future desynchronization.
* | * library/tm.tcl: Added a 'package provide' command to theandreas_kupries2008-08-111-1/+2
| | | | | | | | | | | | | | | | | | generated ifneeded scripts of Tcl Modules, for early detection of conflicts between the version specified through the file name and a 'provide' command in the module implementation, if any. Note that this change also now allows Tcl Modules to not provide a 'provide' command at all, and declaring their version only through their filename.
* | * library/tm.tcl: Modified the handling of Tcl Modules and of theandreas_kupries2008-06-251-5/+9
|/ | | | | | * library/safe.tcl: Safe Base to interact nicely with each other, * library/init.tcl: enabling requiring Tcl Modules in safe interpreters. Fixes [Bug 1999119].
* * library/tm.tcl (::tcl::tm::UnknownHandler): Changed 'source' toandreas_kupries2008-03-181-1/+1
| | | | | | | | | | | | | | 'source -encoding utf-8'. This fixes a portability problem of Tcl Modules pointed out by Don Porter. By using plain 'source' we were at the mercy of 'encoding system', making modules less portable than they could be. The exact scenario: A writes a TM in some weird encoding which is A's system encoding, distributes it, and somewhere else it cannot be read/used because the system encoding is different. Forcing the use of utf-8 makes the module portable. ***INCOMPATIBILITY*** for all Tcl Modules already written in non-utf-8 compatible encodings.
* Fix oops. Use ::list, not list, prevent use of the namespace local command.andreas_kupries2008-03-181-1/+1
|
* * library/tm.tcl (::tcl::tm::Defaults): Modified handling ofandreas_kupries2008-03-181-2/+5
| | | | | | | environment variables. See [Bug 1914604]. Solution slightly different than proposed in the report. Using the underscored form TCLX_y_TM_PATH even if TCLX.y_TM_PATH exists. Also using a loop to cut prevent code replication.
* * doc/ParseCmd.3, doc/Tcl.n, doc/eval.n, doc/exec.n:hobbs2006-11-031-1/+1
| | | | | | | | | | | | | | | | | | * doc/fconfigure.n, doc/interp.n, doc/unknown.n: * library/auto.tcl, library/init.tcl, library/package.tcl: * library/safe.tcl, library/tm.tcl, library/msgcat/msgcat.tcl: * tests/all.tcl, tests/basic.test, tests/cmdInfo.test: * tests/compile.test, tests/encoding.test, tests/execute.test: * tests/fCmd.test, tests/http.test, tests/init.test: * tests/interp.test, tests/io.test, tests/ioUtil.test: * tests/iogt.test, tests/namespace-old.test, tests/namespace.test: * tests/parse.test, tests/pkg.test, tests/pkgMkIndex.test: * tests/proc.test, tests/reg.test, tests/trace.test: * tests/upvar.test, tests/winConsole.test, tests/winFCmd.test: * tools/tclZIC.tcl: * generic/tclParse.c (Tcl_ParseCommand): Replace {expand} with {*} officially (TIP #293). Leave -DALLOW_EXPAND=0|1 option to keep {expand} syntax for transition users. [Bug 1589629]
* * library/tm.tcl: Fixed bug in TIP #189 implementation, nowandreas_kupries2006-10-061-1/+1
| | | | allowing '_' in module names.
* TIP#268 IMPLEMENTATIONandreas_kupries2006-09-221-6/+4
| | | | | | | | | | | | | | | | | | | | * generic/tclDecls.h: Regenerated from tcl.decls. * generic/tclStubInit.c: * doc/PkgRequire.3: Documentation of extended API, * doc/package.n: extended testsuite. * tests/pkg.test: * generic/tcl.decls: Implementation. * generic/tclBasic.c: * generic/tclConfig.c: * generic/tclInt.h: * generic/tclPkg.c: * generic/tclTest.c: * generic/tclTomMathInterface.c: * library/init.tcl: * library/package.tcl: * library/tm.tcl:
* * library/tm.tcl (::tcl::tm::Defaults): Fixed handling ofandreas_kupries2006-03-141-1/+1
| | | | | environment variable TCLX.y_TM_PATH, bad variable reference. See [SF Tcl Bug 1448251]. Thanks to Julian Noble.
* * library/tm.tcl (::tcl::tm::roots): Accepted Don Porter's patchandreas_kupries2005-08-291-1/+1
| | | | | for [Tcl SF Bug 1189657]. Syncs the implementation to the specification (TIP #189).
* * library/init.tcl: Use auto-loading to bring in Tcl Moduledgp2005-04-151-1/+0
| | | | | | * library/tclIndex: support as needed. This reduces startup * library/tm.tcl: time by delaying this initialization to a later time.
* Allow ensembles to rewrite their subcommands' error messages to be moredkf2004-10-291-18/+5
| | | | | | relevant to users. [Patch 1056864] Also patches to core to take advantage of this Also other general cleaning up of Tcl_WrongNumArgs usage
* * tests/tm.test: Expanded on the testsuite entered by Donal.andreas_kupries2004-10-271-18/+29
| | | | * library/tm.tcl: Even found bugs, these have been corrected.
* * library/tm.tcl (::tcl::tm::Defaults): Added a second [fileandreas_kupries2004-10-261-1/+1
| | | | | | dirname] around the location of the executable. This fixes [Tcl SF Bug 1038705]. Instable of a bogus "foo/bin/lib" we now have the correct "foo/lib" as a base path for modules.
* Flesh out tests and transform the TM manager API into an ensembledkf2004-10-251-94/+115
|
* * library/init.tcl: Integrated TIP #189. We source a separate fileandreas_kupries2004-08-181-0/+346
(see below), instead of inlining the contents of that file. This should beeasier to maintain, and easier to backport/install in 8.4 installations. Note: Usage of Tcl Modules is restricted to non-safe interps. It cannot be loaded into a safe interp. * library/tm.tcl: New file, the v2 reference implementation for TIP #189, Tcl Modules.