Re: [Fwd: Re: inserting spaces for a tab from sLisp]
Brought to you by:
set
From: Arnold W. <awi...@te...> - 2005-02-14 17:19:37
|
Thiago F.G. Albuquerque wrote: > On Sat, 12 Feb 2005, Arnold Wiegert wrote: > >>> One possible solution to this would be to create a new sLisp command, >>> e.g. (GetTabSize). But currenlty, there is no such thing. >>> >> Since it appears that lisp functions such as cmcNewLine use smart >> indenting, I expected/hoped that the other 'features' such as tab/space >> replacement etc. should also be taken into account. > > > I agree with you. 'cmcNewLine' is the command assigned to <enter>, but > there is no similar command for <tab> -- and this is the source of the > problem you're facing. The creation of this command is a better solution > than the one I proposed in the other message ((GetTabSize)). > This would involve a lot more code, though, on the macro side than having text entered via these 'macros' obeying the same rules as text entered from the keyboard ;-) > A remark: > > 'cmcNewLine' is not a sLisp function: it's an editor command. > > Even before there was a scripting language in SETEDIT, the user could > record and playback "macros": each command has a name, and as the > commands are executed, they are saved in some sort of buffer, so they > can be undone, recorded, and played back. > > Ok. Then came sLisp. Although sLisp functions are also called "macros", > this is a bad name choice, because this is a completely different > mechanism. > This was long before my time ;-) but it is good to know some of the background and history. Thank you. Arnold |