Re: cmcSmartTab command
Brought to you by:
set
From: Arnold W. <awi...@te...> - 2005-03-02 21:26:37
|
Salvador Eduardo Tropea wrote: > Arnold Wiegert wrote: >> When I use the function cmsSmartTab in my macros file with the latest >> snapshot compiled under MSVC6, I get an error from the lisp interpreter: >> Type of error: syntax >> command expected >> Code: ...(cmcSmartTab<*>)^W ... >> END of SLP > > > :-) That's because cmcSmartTab is an editor command, not sLisp. You have > to send it to the editor using SendCommands as you are doing with the > others. :-( well, that explains why the program didn't do what I expected, but it doesn't explain why I didn't catch that one - must have been a bad day. ;-) After fixing the 'problem, and calling cmcSmartTab, it only seems to insert a single space. In working more with it I've noticed a couple other things - really just nit picking details, though. The only reason I am mentioning them is in case they do have any significance in relation to what else is happening. I'm working with an empty test.c file and after I type a solitary '{' to test my macro expansion, I get an error message in the status line saying: "No match found" - probably from the brace matching code. The other bit, after the macro expansion has run, it looks like a block of text is marked, although when I type any character, the 'mark' simply reverts back to normal and no text is deleted or replaced. More specifically, I type a lone '{' at the top of the file for testing the macro expansion, press my 'expand' key and expect to get { _ } Where the '_' is my expected cursor position. What I do get is only one space on the line with the underscore, with the space and the upper '{' highlighted. If this doesn't make any sense or is not related to the problem, just ignore it. :-) Otherwise, I'm happy to explain or answer any questions that may arise. Arnold |