[Fwd: Re: inserting spaces for a tab from sLisp]
Brought to you by:
set
From: Arnold W. <awi...@te...> - 2005-02-12 20:44:27
|
Sorry, forgot to ensure this went to the list -------- Original Message -------- Subject: Re: inserting spaces for a tab from sLisp Date: Sat, 12 Feb 2005 12:39:29 -0800 From: Arnold Wiegert <awi...@te...> To: Thiago F.G. Albuquerque <tf...@te...> References: <420...@te...> <Pine.LNX.4.61.0502102113070.1120@thiago> Thiago F.G. Albuquerque wrote: > On Thu, 10 Feb 2005, Arnold Wiegert wrote: > >> Hello again, >> >> I've just tried to work some more on my lisp macros - macros.slp - as >> a replacement for pseudo macros and I'm trying to use the InsertText >> function to insert spaces using a "\t" string. > > > (InsertText "\t") inserts a real tab. > >> It works, but I was hoping it would take a hint from the editor setup >> which calls for using spaces in place of tabs to keep things lined up. >> >> Is there (another) way to do this and get spaces - the number of >> spaces set in the Tool&Ops->Options->GlobalEdition->TabSize field? > > > AFAIK, no. > > 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. Arnold > [], > Thiago > |