jed-users mailing list

[2013 Date Index] [2013 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [Jed-users-l] bug in re_looking_at() ?


On Tue 2013-07-02 (16:37), Ulli Horlacher wrote:
> I have a slang function, which inserts "  " at the beginning of each line:
> 
> bob;
> while (not(eobp)) {
>   ifnot (re_looking_at("[ \*] ")) insert("  ");
>   bol;
>   down_1;
> }
> 
> When the buffer has more than 2500 lines, I get a "Stack Overflow Error"

SORRY, my fault!
down_1 leaves a value on the stack, I have to use:

() = down_1;



-- 
Ullrich Horlacher              Informationssysteme und Serverbetrieb
Rechenzentrum IZUS/TIK         E-Mail: horlacher@xxxxxxxxxxxxxxxxxxxx
Universitaet Stuttgart         Tel:    ++49-711-68565868
Allmandring 30a                Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF: <20130702143710.GA13416@xxxxxxxxxxxxxxxxxxxx>
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l


[2013 date index] [2013 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]