On 12/11/2000 8:02:00 AM, Christian Ziemski wrote:
>Peter:
>
>Here are two macros I wrote on the fly
>to show you some possibilities.
> ....
>2) CHECKPAREN.VDM to check a whole file.
>Please read the inline comments of this
>macro! They are giving more details!
>
>Christian
Christian,
1. I am very enthusiastic about your CHECKPAREN.VDM macro: I do prefer to run macros from a menu versus the keyboard. Having said that, let me compare your original suggestion with your present macro. Your original suggestion was, to run the original Pauli Lindgren macro from the keyboard. This requires memorizing an additional key assignment. In your present
macro this additional key is, essentially, the Ctrl_E key. (Here, essentially, refers
to the fact that certain conditions have to be met.) In other words, I have the gain of one less key assignment to memorize.This is exactly that I was after !
2. At the same time I can use your macro as a personalized tutorial for switching
in and out of Visual Mode. In fact, I just learned that Ctrl-E is, essentially, ESCAPE C. (I do not know the exact conditions)
3. > Peter:
>Here are two macros I wrote on the fly to show you some possibilities.
Yes Christian, there are infinitely many possibilities. Do I have a single favorite
among them? No, I do not. One of my favorites is your present macro. The other favorite
would be the one emulating, as closely as possible, the XEmacs "validate-tex-region" macro.
Oops, TeX is not the subject of this conference. So, I am going to post this question
in the Vedit User Applications conference, under the topic: Match_Paren and TeX syntax.
4. Hair splitting: The Vedit default definition of "parentheses" includes the
"<,>" pair, as per the MATCH_PAREN string. I did not see a redefinition of this string
in your macro. I take that your macro will check for this pair as well. Since I plan
to use your macro for my TeX files, I thought to start it with the line,
Config_String( MATCH_PAREN, "[][()([][{}{") .
I also thought to rename it to CHECKBRACES.VDM, since the XEmacs manual defines braces
, so to speak, as "parentheses minus <". They also "check for unbalanced braces" so I
shall possibly make other stylistic changes as well.
Thanks again for everything,
-peter.
P.S. I wrote this answer on my home pc. I just learned about the new developments.
Thanks for everything gentlemen!
|
|