From: Jorj Strumolo
Eric Stork writes:
ES> proc mToggleTrailingSpace() // mapped to ^9
> [...]
> end ToggleTrailingSpace
The names don't technically match here. And it doesn't take two
presses for me, although another macro once did. Can't remember
how I fixed it. Unrelatedly, this is more compact:
string proc OnOffStr(integer i)
Return(iif(i,"On","Off"))
end
proc mToggleTrailingSpace() // mapped to ^9
Toggle(RemoveTrailingWhite)
Message("RemoveTrailingSpace is "+OnOffStr(Query(RemoveTrailingWhite)))
Sound(iif(Query(RemoveTrailingWhite),800,400)) Delay(9) NoSound()
end
mToggleTrailingSpace()
That's even *with* defining OnOffStr() in the macro. If you put
it in an omnibus macro file that already has that defined for
other uses (I autoload a JORJ.MAC that has about 50 little
macros in it), it's much shorter. Using two different sounds
gives enough audible feedback that you could drop the Message
part altogether.
--
Jorj.Strumolo@chowda.com * Fido 1:323/140 * jorj@wsii.com
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)
|