home *** CD-ROM | disk | FTP | other *** search
- /* Now we try to determine the error location */
- /* and visit it. */
- OPTIONS FAILAT 5
- OPTIONS results
-
- STATUS P
- TEXport = result
- parse var TEXport "TxEd Plus"TEXport"/c"
- TEXport = "Port"TEXport
-
- STATUS D
- directory = result
- if directory = "" then directory = ":"
-
- rowno = 0
- charno = 0
- ADDRESS 'AmigaTeX' 'ErrorLoc'
-
- errorloc = GETCLIP('AmigaTeX.ErrorLoc')
-
- if errorloc = "" then exit
-
- else parse var errorloc filename linenum charpos
-
- checkforchunk = index(filename,"_Chunk.tex")
-
- if checkforchunk ~= 0 then do
-
- parse var filename "vd0:"rootname"_Chunk.tex"rest
- envvarname = TEXport" vd0:"rootname"_Chunk.data"
- x = getenv(envvarname)
- y = setenv(envvarname)
- interpret x
- filename = origfile
- linenum = linenum + rowno - 1
- charpos = charpos + colno - 1
-
- end
-
- else filename = directory||filename
-
- JUMP linenum charpos
-
- address 'AmigaTeX'
-
- do i=1 to 100
-
- 'Abort'
- if RC=0 then leave i
- address COMMAND 'c:Wait 2'
- end
-
- exit
-