Hugs editing on Mac.

Hans Aberg haberg@matematik.su.se
Mon, 19 Nov 2001 12:03:59 +0100


At 08:58 +0100 2001/11/19, Julio Rubio Garcia wrote:
>On the other hand I have just tried the :edit stuff from
>http://www.matematik.su.se/~haberg/Computer/Hugs98Feb2001MacBin20011012.sit
>
>The trial was made in an older OS version (MacOS E1-8.6). I have
>not a bomb, but a message "Warning: Editor terminated abnormally".
>I will do the trial on the 9.1 OS too. I'll inform you on the results.

This means that the command launching the file for some reason cannot find
that particular pathname on the computer.

Actually, it turns out to depend on a couple of bugs in the hugs98-Feb2001
sources, in machdep.c, startEdit(), which contains an erroneous line
  #if HUGS_FOR_WINDOWS || 1
always forcing compiling for Windows, plus a couple of lines a little
further down
     else if (*he=='s' && (size_t)n>(strlen(nm)+2)) {
        /* Protect the filename by putting quotes around it */
       *ec++='\"';
assuming that filenames can always be enclosed in quotes, which does not
work with the MacOS function launching the file that I once wrote.

Not difficult to fix, but I am not actively developing this one now, so I
am not sure if I will fix this one.

  Hans Aberg