home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff254.lzh
/
Etale
/
rdr.txed
< prev
next >
Wrap
Text File
|
1989-10-19
|
1KB
|
34 lines
/* rdr.txed -- TxEd macro to open file reader on document being */
/* edited without leaving TxEd */
/* Suggestion: Put 'mac +0 rdr' in your "Startup.txed" file to */
/* run THIS macro off the "0" key on the numeric pad. */
/* Place this file and "Startup.txed" in your "rexx:" */
/* directory. You need "full" ARexx and TxEd Plus, v 2.02 */
'lock 1'
'write' /* We do want to see all the changes */
options results
'status D'
dir = result
'status F'
file = result
dire = right(dir, 1)
ndir = dir
if dire ~= ":" then ndir = dir||"/"
full = ndir||file
'status R'
curpos = result
parse var curpos "row " line " col " cln
'backward 0'
'status R'
curpos = result
parse var curpos "row " rown " col " coln
taga = "echo > env:efrline "||"22"x||rown||"22"x
address command taga
tagb = "efr <env:efrline >NULL: g "||"22"x||full||"22"x
address command tagb
tagc = "'jump "||line||" "||cln||"'"
interpret tagc
'lock 0'
msg file
exit