- Subject: Re: pop_spot(0)
- From: Joerg Sommer <joerg@xxxxxxxxxxxx>
- Date: Thu, 3 Jul 2003 15:04:28 +0000 (UTC)
begin "John E. Davis" <davis@xxxxxxxxxxxxx> wrote:
> 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);
Is creating and going to such a mark as fast like push/pop spot?
And is there a function to search between the current position and a mark?
Joerg.
--------------------------
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]