jed-users mailing list

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

Re: pop_spot(0)


Joerg Sommer <joerg@xxxxxxxxxxxx> wrote:
>how to pop a spot, but don't go there. I will write function, that acts
>like search_forward(). If the word is found, go there, if not, stay where
>you are. So I pushed a spot for the case, I don't find the word. But how
>to remove this spot from the stack, if I find the word?

Do not use push/pop_spot.  Use 

   spot = create_user_mark ();
     .
     .
   if (found) goto_user_mark (spot);

--John

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


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