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() ?


Ulli Horlacher <framstag@xxxxxxxxxxxxxxxxxxxx> wrote:
> bob;
> while (not(eobp)) {
>   ifnot (re_looking_at("[ \*] ")) insert("  ");

Note that "[ \*]" will be parsed as "[ *]".  Perhaps you meant to use
"[ \\*]"?

>   bol;
>   down_1;
>}
[...]
> I assume this is a bug of re_looking_at() ?

No.  The down_1() function returns an integer that you are not handling.
You should use either

   () = down_1 ();
or
   go_down_1();

Here is another alternative:

   bob ();
   ifnot (eobp ()) do
     {
        ifnot (re_looking_at("[ *] ")) insert("  ");
     }
   while (down_1());

I hope this helps.
--John
_______________________________________________
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]