jed-users mailing list

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

RE: format_rest_of_paragraph



> John E. Davis said
>
> Here is a variation on that:
>
> define format_rest_of_paragraph ()
> {
>    push_spot ();
>    forward_paragraph ();
>    push_mark ();
>    pop_spot ();
>    narrow ();
>    call ("format_paragraph");
>    widen ();
> }

This didn't quite work because it removed the blank line after the
paragraph. (Why?)

So I have used:

define wps_format_rest_of_para() {
   push_spot ();
   forward_paragraph ();
   push_mark ();
   insert("\n") ;
   pop_spot ();
   narrow ();
   call ("format_paragraph");
   widen ();
}

which appears to work fine!

Thanks for the help,

Nick



--
Nick Tatham
Reading, UK


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


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