Re: [Fwd: Re: inserting spaces for a tab from sLisp]
Brought to you by:
set
From: Salvador E. T. <sal...@in...> - 2005-03-02 12:02:56
|
Arnold Wiegert wrote: > > > Salvador Eduardo Tropea wrote: > >> >> I'm back from my vacations and now I'm slowly reading the old mails ... >> Ok, I added "cmcSmartTab" and assigned it to Tab (important!!! people >> using custom keybord bindings will need to add this). >> Then I moved the code inside TCEditor::InsertCharInLine to a new >> function TCEditor::SmartTab(). >> So now if the editor gets a tab from the keyboard (not translated to >> a command) will insert an ASCII 9, but the default is to translate >> tab into cmcSmartTab. This command implements the complex behavior. >> > 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. Regards, SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |