.
D 2002-10-18T12:08:59
J assignee nobody
J cmimetype text/plain
J comment On\sunix\sthere\sis\sa\sconcept\sof\sa\s'whatis'\sdatabase\sthat\nis\sbuilt\susing\seither\smkwhatis\sor\scatman.\s\sThis\ndatabase\sallows\sone\sto\ssearch\squickly\sthrough\sman\spages\nto\sfind\sappropriate\sman\spages.\n\nIn\strying\sto\sbuild\sthe\swhatis\sfor\sthe\stcl/tk\sman\spages,\nI\sgot\sthe\sfollowing\swarning/errors.\s\sSome\sof\sthese\nreflect\sa\sformatting\sproblem\s(at\sleast\son\nSPARC/Solaris).\s\sSome\sindicate\sa\slimitation\sin\sdata\s.\s\nJust\sthought\sthat\sperhaps\sif\ssomeone\sis\sgoing\sthrough\nthe\sman\spages\sthey\smight\sconsider\sslightly\sreformatting\nto\smake\sthe\sinfo\smore\suseful.\n\n$\scatman\s-w\s-M\s.\nmakewhatis:\sprocessing\sman\stree\n/osfiles6/tcl84binsol/man/....\nTcl_FSLoadFile.3:\struncating\scmdlist\sfrom\s783\sto\s300\nbytes\sfor\sDBM's\ssake\nTcl_ChannelInputProc.3:\struncating\scmdlist\sfrom\s738\sto\n300\sbytes\sfor\sDBM's\ssake\nTk_X.3:\struncating\scmdlist\sfrom\s385\sto\s300\sbytes\sfor\nDBM's\ssake\nTcl_MakeFileChannel.3:\struncating\scmdlist\sfrom\s490\sto\n300\sbytes\sfor\sDBM's\ssake\nTcl_AttemptSetObjLength.3:\struncating\scmdlist\sfrom\s366\nto\s300\sbytes\sfor\sDBM's\ssake\nTcl_UtfToExternalDString.3:\struncating\scmdlist\sfrom\s301\nto\s300\sbytes\sfor\sDBM's\ssake\nTcl_UtfToUniChar.3:\struncating\scmdlist\sfrom\s326\sto\s300\nbytes\sfor\sDBM's\ssake\nTk_NameOf3DBorder.3:\struncating\scmdlist\sfrom\s301\sto\s300\nbytes\sfor\sDBM's\ssake\nTcl_FSReadlink.3:\struncating\scmdlist\sfrom\s697\sto\s300\nbytes\sfor\sDBM's\ssake\nTk_CreatePhotoImageFormat.3:\sno\sseparated\sdash\sin\n"formatPtr->name\sprovides\sa\sname\sfor\sthe\simage\stype.\nOnce\sTk_CreatePhotoImageFormat\sreturns,\sthis\sname\smay\nbe\sused\sin\sthe\s-format\sphoto\simage\sconfiguration\sand\nsubcommand\soption.\sThe\smanual\spage\sfor\sthe\sphoto\simage\n(photo(n))\sdescribes\show\simage\sfile\sformats\sare\schosen\nbased\son\stheir\snames\sand\sthe\svalue\sgiven\sto\sthe\s-format\noption.\sFor\snew\sformat\shandlers,\sthe\sname\sshould\sbe\sin\nlower\scase.\sPre-8.3\sformat\shandlers\sare\sassumed\sto\sbe\nin\supper\scase."\nTcl_InitNotifier.3:\struncating\scmdlist\sfrom\s325\sto\s300\nbytes\sfor\sDBM's\ssake\nTk_GetImageMasterData.3:\sno\sseparated\sdash\sin\n"typePtr->name\sprovides\sa\sname\sfor\sthe\simage\stype.\sOnce\nTk_CreateImageType\sreturns,\sthis\sname\smay\sbe\sused\sin\nimage\screate\scommands\sto\screate\simages\sof\sthe\snew\stype.\nIf\sthere\salready\sexisted\san\simage\stype\sby\sthis\sname\nthen\sthe\snew\simage\stype\sreplaces\sthe\sold\sone."\nTk_CreateItemType.3:\sno\sseparated\sdash\sin\s"This\ssection\nand\sthe\sones\sthat\sfollow\sdescribe\seach\sof\sthe\sfields\sin\na\sTk_ItemType\sstructure\sin\sdetail.\sThe\sname\sfield\nprovides\sa\sstring\sname\sfor\sthe\sitem\stype.\sOnce\nTk_CreateImageType\sreturns,\sthis\sname\smay\sbe\sused\sin\ncreate\swidget\scommands\sto\screate\sitems\sof\sthe\snew\stype.\nIf\sthere\salready\sexisted\san\sitem\stype\sby\sthis\sname\sthen\nthe\snew\sitem\stype\sreplaces\sthe\sold\sone."\nmsgcat.n:\sno\sseparated\sdash\sin\s"Strings\sstored\sin\sthe\nmessage\scatalog\sare\sstored\srelative\sto\sthe\snamespace\nfrom\swhich\sthey\swere\sadded.\s\sThis\sallows\smultiple\npackages\sto\suse\sthe\ssame\sstrings\swithout\sfear\sof\ncollisions\swith\sother\spackages.\s\sIt\salso\sallows\sthe\nsource\sstring\sto\sbe\sshorter\sand\sless\sprone\sto\ntypographical\serror.\sFor\sexample,\sexecuting\sthe\scode\nmcset\sen\shello\s"hello\sfrom\s::"\snamespace\seval\sfoo\n{mcset\sen\shello\s"hello\sfrom\s::foo"}\sputs\s[mc\shello]\nnamespace\seval\sfoo\s{puts\s[mc\shello]}\swill\sprint\shello\nfrom\s::\shello\sfrom\s::foo\sWhen\ssearching\sfor\sa\ntranslation\sof\sa\smessage,\sthe\smessage\scatalog\swill\nsearch\sfirst\sthe\scurrent\snamespace,\sthen\sthe\sparent\sof\nthe\scurrent\snamespace,\sand\sso\son\suntil\sthe\sglobal\nnamespace\sis\sreached.\s\sThis\sallows\schild\snamespaces\sto\n"inherit"\smessages\sfrom\stheir\sparent\snamespace.\sFor\nexample,\sexecuting\s(in\sthe\s``en''\slocale)\sthe\scode\s\nmcset\sen\sm1\s"::\smessage1"\smcset\sen\sm2\s"::\smessage2"\nmcset\sen\sm3\s"::\smessage3"\snamespace\seval\s::foo\s{\s\s\s\s\nmcset\sen\sm2\s"::foo\smessage2"\s\s\s\s\smcset\sen\sm3\s"::foo\nmessage3"\s}\snamespace\seval\s::foo::bar\s{\s\s\s\s\smcset\sen\sm3\n"::foo::bar\smessage3"\s}\sputs\s"[mc\sm1];\s[mc\sm2];\s[mc\nm3]"\snamespace\seval\s::foo\s{puts\s"[mc\sm1];\s[mc\sm2];\s[mc\nm3]"}\snamespace\seval\s::foo::bar\s{puts\s"[mc\sm1];\s[mc\nm2];\s[mc\sm3]"}\swill\sprint\s::\smessage1;\s::\smessage2;\s::\nmessage3\s::\smessage1;\s::foo\smessage2;\s::foo\smessage3\s::\nmessage1;\s::foo\smessage2;\s::foo::bar\smessage3"\ncan't\sstore\smsgcat.n\s--\swould\sbreak\sDBM\nnamespace.n:\sno\sseparated\sdash\sin\s"In\sgeneral,\sall\sTcl\ncommands\sthat\stake\svariable\sand\scommand\snames\ssupport\nqualified\snames.\sThis\smeans\syou\scan\sgive\squalified\nnames\sto\ssuch\scommands\sas\sset,\sproc,\srename,\sand\sinterp\nalias.\sIf\syou\sprovide\sa\sfully-qualified\sname\sthat\nstarts\swith\sa\s::,\sthere\sis\sno\squestion\sabout\swhat\ncommand,\svariable,\sor\snamespace\syou\smean.\sHowever,\sif\nthe\sname\sdoes\snot\sstart\swith\sa\s::\s(i.e.,\sis\srelative),\n\sTcl\sfollows\sa\sfixed\srule\sfor\slooking\sit\sup:\sCommand\nand\svariable\snames\sare\salways\sresolved\sby\slooking\sfirst\nin\sthe\scurrent\snamespace,\sand\sthen\sin\sthe\sglobal\nnamespace.\sNamespace\snames,\son\sthe\sother\shand,\sare\nalways\sresolved\sby\slooking\sin\sonly\sthe\scurrent\nnamespace.\sIn\sthe\sfollowing\sexample,\sset\straceLevel\s0\nnamespace\seval\sDebug\s{\s\s\s\s\sprintTrace\s$traceLevel\s}\sTcl\nlooks\sfor\straceLevel\sin\sthe\snamespace\sDebug\sand\sthen\sin\nthe\sglobal\snamespace.\sIt\slooks\sup\sthe\scommand\nprintTrace\sin\sthe\ssame\sway.\sIf\sa\svariable\sor\scommand\nname\sis\snot\sfound\sin\seither\scontext,\sthe\sname\sis\nundefined.\sTo\smake\sthis\spoint\sabsolutely\sclear,\nconsider\sthe\sfollowing\sexample:\sset\straceLevel\s0\nnamespace\seval\sFoo\s{\s\s\s\s\svariable\straceLevel\s3"\nusual.n:\sno\sseparated\sdash\sin\s"\sfor\sa\smega-widget\ncomponent"\nitcl.n:\sno\sseparated\sdash\sin\s"[incr\sTcl]\snow\sincludes\sa\ncomplete\snamespace\sfacility.\sA\snamespace\sis\sa\ncollection\sof\scommands\sand\sglobal\svariables\sthat\sis\nkept\sapart\sfrom\sthe\susual\sglobal\sscope.\s\sThis\sallows\nTcl\scode\slibraries\sto\sbe\spackaged\sin\sa\swell-defined\nmanner,\sand\sprevents\sunwanted\sinteractions\swith\sother\nlibraries.\s\sA\snamespace\scan\salso\shave\schild\snamespaces\nwithin\sit,\sso\sone\slibrary\scan\scontain\sits\sown\sprivate\ncopy\sof\smany\sother\slibraries.\s\sA\snamespace\scan\salso\sbe\nused\sto\swrap\sup\sa\sgroup\sof\srelated\sclasses.\s\sThe\sglobal\nscope\s(named\s"fC::")\sis\sthe\sroot\snamespace\sfor\san\ninterpreter;\sall\sother\snamespaces\sare\scontained\swithin\nit.\sSee\sthe\snamespace\scommand\sfor\sdetails\son\screating\nand\susing\snamespaces."\nmakewhatis:\s/osfiles6/tcl84binsol/man/.:\sfound\s1624\nentries\sin\s640\sfiles
J foundin obsolete:\s8.4.1
J priority 5\sMedium
J resolution None
J status Open
J submitter lvirden
J subsystem 69.\sOther
J title Tcl/Tk\sman\spage\sformatting\snote
J type Bug
K 625166ffffffffffffffffffffffffffffffffff
U lvirden
Z 8c1c7dc4c7d10c2d11e56d5e3f869761