jed-users mailing list

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

Re: pop_spot(0)


Klaus Schmid <klaus.schmid@xxxxxx> wrote:
>% buffer position
>static define pos_cur() %                                              %{{{
>{
>   return [what_line(),_get_point()];
>}
>%}}}
>static define pos_set( p) %                                            %{{{
>{
>   goto_line( p[0]);
>   _set_point( p[1]);
>}
>%}}}
>static define pos_cmp( a, b) %                                         %{{{
>{
>   if ( a[0] == b[0]) return ( a[1] -b[1]);
>
>   return ( a[0] -b[0]);
>}
>%}}}

It is best to use usermarks for this:

  move_somewhere ();
  m1 = create_user_mark ();
  move_somewhere_else ();
  m2 = create_user_mark ();
     .
     .
  if (m1 > m2)
    .
    .

Note, only the relational operators ==, >=, etc are defined for
user-marks.

Thanks,
--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]