Problem launching tkoutline as an external editor from Xnews newsreader
Not logged in

03/09/2004 Iain Cheyne I use Xnews ( as my Usenet newsreader. It has the option to specify an external text editor. I tried to do this with tkoutline, but received the following error message:

Error in startup script

invalid key "expand" for node "node1"

    while executing

"_get $name $node $key"

    (procedure "::struct::tree::_set" line 28)
    invoked from within

"::struct::tree::_set ::treeconvert::tree1 node1 expand"

    ("_set" body line 1)
    invoked from within

"$tree set $node expand"

    (procedure "getDisplayableDescendents" line 3)
    invoked from within

"getDisplayableDescendents $tree $child"

    (procedure "getDisplayableDescendents" line 6)
    invoked from within

"getDisplayableDescendents $tree $node"

    (procedure "showDescendents" line 2)
    invoked from within

"showDescendents $win $tree $tree rootname"

    (procedure "showTree" line 4)
    invoked from within

"showTree $win $tree"

    (procedure "setTreeForDisplay" line 2)
    invoked from within

"setTreeForDisplay $win $tree"

    (procedure "outlinewidget::initializeTreeDisplay" line 14)
    invoked from within

"outlinewidget::initializeTreeDisplay self set text] self set origTree]"

    (procedure "_setTree" line 11)
    invoked from wi ...


I realise this is an obscure bug, but no other text editors I have tried have had similar problems, so fixing this might fix other more general problems.

Brian Theado - The problem is that tkoutline is not an editor for text files. It edits specially formatted outline files. It has the ability to import and export text files, but right now it doesn't do it automatically. See Autoimport-export of files based on extension for more information and especially at the bottom of the page the idea of automatically detecting whether a file is in tkoutline format and import it from text if it isn't.

03/09/2004 Iain Cheyne Thanks for the explanation. In that case autoimport-export is definitely something that would be very useful to me.