On Jan 12, 1996, Dan Dunfee wrote to Chad Wallace about SHARESPELL
Hello, Dan.
CW>> Well, all of it is possible except for saving the current
CW>> position in the file.
DD> Have the macro iinsert a string such as "xxx" before starting the
DD> shell to run sharespell. Upon return find the string, and
DD> delete, leaving oneself in the last position before starting.
Hey, I never thought of that. That's a good idea, thanks.
And it works, too... So here's the new macro:
* Run ShareSpell on block if cursor is inside block or whole file if * not.
Will not work with a column block. ^S SetScreenOff
SaveSettings
SetInsMode
" CuRsoR__MARKER "
IsCursorInBlock JTrue InBlock:
BegFile MarkBlockBegin
EndFile MarkBlockEnd
InBlock:
WriteBlock "SSTMP_FL.321" Return
DeleteBlock
DOS "C:\UTIL\SS.EXE SSTMP_FL.321" Return Return
ReadBlock "SSTMP_FL.321" Return
UnMarkBlock
Find " CuRsoR__MARKER " Return "G" Return
DelCh 16
EditFile "SSTMP_FL.321" Return
KillFile
Exit "N"
RestoreSettings
Cmdr Walrus
--- GoldED 2.50+
---------------
* Origin: Writing from Kamloops, BC, Canada (1:353/710.16)
|