jed-users mailing list

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

Re: Paragraph reformatting functionality


Paul Boekholt <p.boekholt@xxxxxxxxx> wrote:
>> I am not sure what you mean.  Do you have a simple example?
>
>What he means is that in JED there is only a paragraph separator, while
>Emacs has a paragraph_separator and a paragraph_start:

jed also supports a hook called "mark_paragraph", that will be called
instead of the "par_sep" hook.  For example,

   private define mark_paragraph_hook ()
   {
      code_to_find_start_of_paragraph ();
      push_mark ();
      code_to_find_end_of_paragraph ();
   }

   define some_mode ()
   {
      .
      .
     set_buffer_hook ("mark_paragraph", &mark_paragraph_hook);
      .
      .
   }

It looks like the set_buffer_hook documentation needs updated for the
release.

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>.


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