home *** CD-ROM | disk | FTP | other *** search
- /*RX Skip to next TeX-error */
- /* Idea: Take the filename and line-number of the current view, */
- /* replace .tex with .log. Go the the logfile and search the first */
- /* ^Jl. with a number greater than the current line number. */
- /* */
- /* Georg Hessmann (hes) 26-jul-91 */
-
- options results
-
- trace all
-
- status 19 /* full filename */
- fullname=RESULT
-
- basename = LEFT(fullname, LENGTH(fullname)-4)
- extension = translate(RIGHT(fullname, 4) , xrange('a','z'), xrange('A','Z'))
-
- IF extension ~= ".tex" THEN DO
- okay1 "I need a '.tex' file!"
- exit 5
- END
-
- logname = basename".log"
-
- status 47
- currentline = RESULT+1
-
- 'jump to file' "'"logname"'"
- IF 0 = RESULT THEN DO
- open new
- open '"'logname'"'
- END
- 'beg of file'
-
- number = 0
- found = 1
- DO WHILE(found & number <= currentline)
- 'Search for' "
- l."
- found = RESULT
- IF found THEN DO
- 'Right'
- options results
- 'Status 55' /* take the current line from CED */
- parse var RESULT "l." number .
- END
-
- END
-
- 'jump to file' "'"fullname"'"
- IF 0~= number & number > currentline THEN DO
- jumpto number
- beg of line
- END
- ELSE DO
- okay1 "No more errors."
- END
-
-