tcl 8.5 workaround
Brought to you by:
phelps
A workaround patch is attached. On Fedora 9, TkMan gives the following error.
tab stop "-13" is not at a positive distance
tab stop "-13" is not at a positive distance
while executing
"$t tag configure info -tabs [list 0.3i $rm right]"
(procedure "manManTabSet" line 10)
invoked from within
"manManTabSet .man"
(command bound to event)
workaround to prevent negative numbers
A better fix:
Tested with tcl/tk 8.5 & 8.6
$ echo $MANPATH
/home/ben/local/man:/usr/local/share/man:/usr/local/man:/usr/share/man
$ uname -n
habit
$ cat /etc/fedora-release
Fedora release 9 (Sulphur)
$ rpm -q tcl tk rman xorg-x11-server-Xorg
tcl-8.5.2-2.fc9.i386
tk-8.5.2-1.fc9.i386
rman-3.2-8.fc9.i386
xorg-x11-server-Xorg-1.5.0-2.fc9.i386
Tk 8.5 make a couple changes that are incompatible with TkMan. The window manager reports a negative window size at startup, as reported above, and the text widget changed how text are formatted and tags are attached, so the text looks bad. For now, simply stick with Tcl/Tk 8.4.
I made a patch that addresses the most severe Tk 8.5 issues, because apparently I do that. Also added yet another place to look for the index database. 6 tcl files were changed.
Actually I see I've skipped right over Tk 8.5., and used Tk 8.6. Should work for both, but I'll see if I can compile Tk 8.5 and test it.
I tried to apply this patch. First i had to convert the files from DOS to Unix style line endings.
Last edit: Ben Collver 2023-10-03
I ended up forking as a new project, tkreadman. See if https://sourceforge.net/projects/tkreadman/ works for you. That has the lineends converted, and the Makefile changed to make retkman, and things like that. You can file a bug over there if I blew it :-)
TkMan still works great with the version of Tcl/Tk listed in its requirements. You initiated a hostile takeover to get your 5 lines of patches accepted -- WTF? I see you also changed the license, which is illegal. Please delete tkreadman so I don't have to make formal complaints.
Oh, OK I'm sorry. I didn't mean to do a hostile takeover. I was just trying to be useful. I'll take it down.
Thank you for being cooperative.