Repetitive editing

From: Douglas G. Danforth <"Douglas>
Date: Tue, 29 Jul 2003 22:56:53 -0400

----boundary-LibPST-iamunique-265634629_-_-
Content-type: text/plain

Folks,

I frequently (more often than one might suppose) come across situations
where I must convert text from one form to another. For example

        DCOSH (dbl) DOUBLE PRECISION

becomes

        Dcosh = "DCOSH" "(" dbl ")" .

I can not do this in any kind of repetitive way using the BlackBox
editor, that is, at least not to my knowledge.

If I were using TvEdit (an old 1970's editor) I could define a macro
"/z" (Ctrl-z) that would start at the current location and

        DCOSH (dbl) DOUBLE PRECISION
"cw" (copy word)
        DCOSH DCOSH (dbl) DOUBLE PRECISION
"lw" (lower the case of the word)
        dcosh DCOSH (dbl) DOUBLE PRECISION
"uc" (upper case character)
        Dcosh DCOSH (dbl) DOUBLE PRECISION
")" (go to start of next word)
'i= "[ESC]' (insert an equals sign and space, revert back to command
mode by typing the escape key)
        Dcosh = "DCOSH (dbl) DOUBLE PRECISION
".)" (go end of current word)
'i"[ESC]' (insert quote, revert to command mode)
"s(" (search for a left parenthesis on this line)
'i"[ESC]>i" [ESC]' (put double quotes around parenthesis)
        Dcosh = DCOSH "(" dbl) DOUBLE PRECISION
"s)" (search for right parens)
'i "[ESC]>i"[ESC]' (quote right parens)
        Dcosh = DCOSH "(" dbl ")" DOUBLE PRECISION
"$dc" (infinite delete characters to end of line )
        Dcosh = DCOSH "(" dbl ")"
"i .[ESC]" (end expression with a period)

Then any other line of the form
        FUNCTION (arg) type
could be converted by a single keystroke (Ctrl-z, say) to
        Function = "FUNCTION" "(" arg ")" .

My fingers still remember the ease with which one could edit large
passages of repetitive text without having them leave the keyboard to
touch a mouse.

Has anyone implemented a macro capability as an add on to the Blackbox
editor?

-Doug



--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.



----boundary-LibPST-iamunique-265634629_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEZvbGtzLFxwYXINClxwYXINCkkgZnJlcXVlbnRs
eSAobW9yZSBvZnRlbiB0aGFuIG9uZSBtaWdodCBzdXBwb3NlKSBjb21lIGFjcm9zcyBzaXR1YXRp
b25zIFxwYXINCndoZXJlIEkgbXVzdCBjb252ZXJ0IHRleHQgZnJvbSBvbmUgZm9ybSB0byBhbm90
aGVyLiBGb3IgZXhhbXBsZVxwYXINClxwYXINClx0YWIgRENPU0ggKGRibCkgRE9VQkxFIFBSRUNJ
U0lPTlxwYXINClxwYXINCmJlY29tZXNccGFyDQpccGFyDQpcdGFiIERjb3NoID0gIkRDT1NIIiAi
KCIgZGJsICIpIiAuXHBhcg0KXHBhcg0KSSBjYW4gbm90IGRvIHRoaXMgaW4gYW55IGtpbmQgb2Yg
cmVwZXRpdGl2ZSB3YXkgdXNpbmcgdGhlIEJsYWNrQm94IFxwYXINCmVkaXRvciwgdGhhdCBpcywg
YXQ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GVhZC5c
cGFyDQpccGFyDQpiKSBJZiwgZm9yIHNvbWUgcmVhc29uLCB5b3UgY2Fubm90IHBvc3QgZnJvbSB0
aGUgYWRkcmVzcywgYnkgd2hpY2ggeW91IGFyZSBzdWJzY3JpYmVkLCB5b3VyIG1lc3NhZ2Ugd2ls
bCBiZSBtb2RlcmF0ZWQgdG8gYXZvaWQgc3BhbS4gUGxlYXNlIHVuZGVyc3RhbmQgdGhhdCBtb2Rl
cmF0aW9uIHdpbGwgb2Z0ZW4gY2F1c2Ugc29tZSBkZWxheSwgaW4gcGFydGljdWxhciBvdmVyIHdl
ZWtlbmRzIG9yIGhvbHlkYXlzLlxwYXINClxwYXINCn0=


----boundary-LibPST-iamunique-265634629_-_---
Received on Wed Jul 30 2003 - 04:56:53 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:29:07 UTC